Need an API key for yourself or a trusted third-party?
Please get in touch at:
api+new-key@netcopy.co.uk.
If you believe that one of your API keys has been compromised we can revoke it.
Please get in touch at: api+revoke@netcopy.co.uk.
Include your details and the API key you wish to revoke. We will contact you to verify the request.
We take every precaution to ensure your content is safe from scrapers and bots.
As part of this process all requests to the Netcopy API and CDN must include a request authentication token. The benefits to this approach are:
Generating a request token is simple.
Concatenate your API key and request URL and MD5 the result, this will be your request token. You'll probably want to write a helper function to do this. For example:
function generateToken( url )
{
var apiKey = "demo"
var token = md5sum( apiKey + url )
return token
}
var url = "http://demo.content-api.netcopy.co.uk/search?term=test"
var secureURL = url + "&token=" + generateToken( url )
var search = http_decode_json( secureURL )
print "Your search returned " + search.resultCount + " result(s)"
Please note! You must ensure that your token generation is done server-side. You cannot generate tokens in client-side Javascript as it would require exposing your API key.
You can either pass your token as a URL parameter called token or via the X-Netcopy-Token HTTP header.