The API is available at https://api.nsn.org.uk/v1/
Documentation homepage https://docs.api.nsn.org.uk/
Returns a basic array of category suggestions for a search term.
Name | Type | Sample | Example | Description |
---|---|---|---|---|
query | string | dentist | /v1/suggest/dentist | The term to search for |
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 |
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 |
{
"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/