Unexpected token < in JSON at position 0"

Hey Cemail!

The issue you’re getting is that the api endpont is returning an HTML page, instead of a nice JSON object. That’s what’s triggering the error with “Unexpected token…”, because it’s looking for JSON and finding “<html…”.

What you can do is test the endpoint again, and failing that, use fetch instead of getJSON from wix-fetch. I’ve had that exact same error as you when using getJSON, even with valid apis.

Orrrrrrrrr, the better option by far (in my thinking) is this. You can actually install the md5 NPM package and do the hashing natively on your site, in either backend or front-end code, no requests to a 3rd party needed at all!! Much cleaner, more control and less vague errors to figure out. Backend would be my suggestion