Security Check when I run my script on my server

I’ve coded a basic price scraper using the API, and I just tried to run it on my digitalocean server, but instead of giving a JSON response, I get an HTML page like so:

The problem is, I can’t run the security check because I need to execute JavaScript, which I can’t do on a headless remote server using Python. What can I do to avoid this response and just get the JSON I requested?

Hi Ethan,

We’ll need to whitelist your IP. Can you please contact api@smarkets.com with your details so we can update it?