Currently, when making API calls, the data I get back is not in JSON format. I test it against a validator and I get invalid json. Is this call correct? https:api.weatherbit.iov2.0forecast3hourly?ip=

Category: API


John says:
April, Monday, 2018 at 7:38PM

The callback parameter returns data wrapped in a JSON-P callback. Which will not be JSON, but rather a JSON-P callback.

Just remove the callback parameter from the API request, and you should be good to go.

John at Weatherbit

Leave A Reply

What is two plus 0?