# How can i use counterparty API in my java code?

**URL:** <https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235>\
**Category:** Support\
**Created:** [June 19, 2017, 6:25am UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235 "2017-06-19T06:25:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shailesh\_shendkar](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@shailesh\_shendkar](https://forums.counterparty.io/u/shailesh_shendkar)\
**Post date:** [June 19, 2017, 6:25am UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235/1 "2017-06-19T06:25:18Z")

</div>

how can i use counterparty API in my java code?

---

<div class="post-metadata">

**Author:** ![JPJA](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/jpja/32/1324_2.png) [@JPJA](https://forums.counterparty.io/u/JPJA)\
**Post date:** [June 19, 2017, 9:44am UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235/2 "2017-06-19T09:44:35Z")

</div>

[https://coindaddy.io/public-development-servers](https://coindaddy.io/public-development-servers)

---

<div class="post-metadata">

**Author:** ![shailesh\_shendkar](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@shailesh\_shendkar](https://forums.counterparty.io/u/shailesh_shendkar)\
**Post date:** [June 19, 2017, 11:05am UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235/3 "2017-06-19T11:05:50Z")

</div>

they did not given any java code.

---

<div class="post-metadata">

**Author:** ![jdogresorg](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/jdogresorg/32/1349_2.png) [@jdogresorg](https://forums.counterparty.io/u/jdogresorg)\
**Post date:** [June 19, 2017, 6:02pm UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235/4 "2017-06-19T18:02:14Z")

</div>

Please read the page JP referenced.

1.) It links to Counterparty API (How to use the API)  
2.) It links to Counterparty Public Development Server (Server you talk to for free)

This should be all you need to get started. Your ‘java code’ would just be making REST API calls to get information.

---

<div class="post-metadata">

**Author:** ![shailesh\_shendkar](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@shailesh\_shendkar](https://forums.counterparty.io/u/shailesh_shendkar)\
**Post date:** [June 20, 2017, 4:15am UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235/5 "2017-06-20T04:15:13Z")

</div>

i making REST call to “[http://public.coindaddy.io:4000/](http://public.coindaddy.io:4000/)” and it showing “SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data”

---

<div class="post-metadata">

**Author:** ![shailesh\_shendkar](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@shailesh\_shendkar](https://forums.counterparty.io/u/shailesh_shendkar)\
**Post date:** [June 20, 2017, 4:34am UTC](https://forums.counterparty.io/t/how-can-i-use-counterparty-api-in-my-java-code/3235/6 "2017-06-20T04:34:45Z")

</div>

can you provide REST call URLs. i readed counterparty docs. but they given only API functions.
