NSN API Documentation (v1.0)

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

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


GET /v1/suggest/resource/{query}

Returns a basic array of category suggestions for a search term.

Paramaters

Name Type Sample Example Description
query string dentist /v1/suggest/dentist The term to search for

Response

These values are available at the top level of the API response

Name Type Sample Description
host string (url) https://api.nsn.org.uk The host name of the API you're currently calling.
version string /v1 The version of the API you're currently using, prefixed with a slash as it appears in the URL.
data object An array of objects containing details about the resource found

data

These values are within the data object

Name Type Sample Description
name string Free dry cleaning of interview clothes The name of the resource
href string (url) /resource/11736 A relative path to the resource that contains more information about this resource

Example

{
    "data": [
        {
            "name": "Find emergency dental care in Scotland",
            "href": "/resource/11736"
        },
        {
            "name": "How to find emergency dental care in Wales",
            "href": "/resource/11739"
        }
    ],
    "host": "api.nsn.org.uk",
    "version": "/v1"
}   

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