# Fetch Data from URL

**URL:** <https://discuss.jsonapi.org/t/fetch-data-from-url/879>\
**Category:** Uncategorized\
**Created:** [January 12, 2017, 8:19pm UTC](https://discuss.jsonapi.org/t/fetch-data-from-url/879 "2017-01-12T20:19:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee2121](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@lee2121](https://discuss.jsonapi.org/u/lee2121)\
**Post date:** [January 12, 2017, 8:19pm UTC](https://discuss.jsonapi.org/t/fetch-data-from-url/879/1 "2017-01-12T20:19:24Z")

</div>

Hello, I’m new to JSON and have just come across this as i need to send data to URL and then read the response sent back.

If i click on the URL from my site it loads in a browser and displays the correct response. I have tried many different methods from the net and i can’t seem to get one to work.

I need to be able to read the response on my website.

The details of the url can be seen below;

Example Test URL Request

[https://test.httpapi.com/api/domains/available.json?auth-userid=0&api-key=key&domain-name=domain1&domain-name=domain2&tlds=com&tlds=net](https://test.httpapi.com/api/domains/available.json?auth-userid=0&api-key=key&domain-name=domain1&domain-name=domain2&tlds=com&tlds=net) Response

the response back is:

{“[domain2.net](http://domain2.net)”:{“classkey”:“dotnet”,“status”:“regthroughothers”},“[domain1.net](http://domain1.net)”:{“classkey”:“dotnet”,“status”:“regthroughothers”},“[domain2.com](http://domain2.com)”:{“classkey”:“domcno”,“status”:“regthroughothers”},“[domain1.com](http://domain1.com)”:{“classkey”:“domcno”,“status”:“regthroughothers”}}

This is what i need to be able to read on my webpage.

Thank you

---

<div class="post-metadata">

**Author:** ![zachaysan](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/zachaysan/32/324_2.png) [@zachaysan](https://discuss.jsonapi.org/u/zachaysan)\
**Post date:** [January 13, 2017, 9:41pm UTC](https://discuss.jsonapi.org/t/fetch-data-from-url/879/2 "2017-01-13T21:41:49Z")

</div>

Lee this isn’t a great question or a great place to ask this question. Make a Stackoverflow account and follow this advice in order to structure you question in a way that will be more helpful to the person that wants to help you:

> **[How do I ask a good question? - Help Center](https://stackoverflow.com/help/how-to-ask)**
>
> Stack Overflow | The World’s Largest Online Community for Developers

Hope this helps. Don’t get discouraged, we were all new at some point.
