I feel like a complete noob

I can view the json directly from an url like
But I cannot parse it using jquery with a script such as


Any help, anyone? I suppose I need to authenticate first, but how...
This is based on http://webhole.net/2009/11/28/how-to-read-json-with-javascript/ - and it works nicely using a Twitter url without authentication required.

jamesd jamesd, 6 years ago

Firstly, all API calls require authentication using your Campaign Monitor API key.

It is possible to pass credentials for HTTP basic authentication using jQuery.ajax(), however this is very insecure, as you would need to have your Campaign Monitor API key accessible in your JavaScript, which I would definitely not recommend doing.

This security issue is also the reason we do not currently support jsonp in the API, as we do not want to encourage people to make calls to the API, with their API keys available for all to read. You are much better off making calls to the API on the server side.

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free