NSN API Documentation (v1.0)

The API is available at https://api.nsn.org.uk/v1/

Documentation homepage https://docs.api.nsn.org.uk/


Python example

The example below shows you how to authenticate against the API using python, and hit the /areas endpoint.

If you have an API key, enter it here to populate the examples:

/v1/areas

import http.client

conn = http.client.HTTPSConnection("api.nsn.org.uk")
payload = ''
headers = {
  'x-api-key': '{your api key}'
}
conn.request("GET", "/v1/areas", payload, headers)
res = conn.getresponse()
data = json.load(res)
print(data)

Documentation homepage https://docs.api.nsn.org.uk/