🏠 back to Observable

JSON from API address

when I go to this API address with my browser I can visualise the JSON file related to it.

I tried to access it by Observable using the cors-anywhere.herokuapp.com but I get a SyntaxError: Unexpected end of JSON input.

here is notebook:

Any chance to make it work?

Thanks

I found a comment on SO which indicates that the bitmex API endpoint you’re targeting “seems to be purposefully blocking requests from frontend JavaScript code”.

The comment afterwards suggests some solutions, including setting up this proxy on a server you control.

2 Likes

Perhaps you can hack together a proxy on glitch.com: https://glitch.com/search?q=proxy