This forum is now read-only. Please use our new forums at

How to use APIs with JavaScript Forum

View Course » View Exercise

144 points
Submitted by
almost 3 years ago

API requests for JSON data.

When making an actual API call (instead of pulling JSON from a variable in the local script like in the exercise) do we need to specify a Content-Type for the header of the request, like 'text/json' or some such similar to how one would for XML data? I have been struggling with APIs for 2 years now, and I have never come across such an easily understandable explanation of them as offered here. Thank you so much!

0 votes


how do u do 15/19??!!

83 points
Submitted by
almost 2 years ago