---
title: "match queries on the ONS Website to groupings in the ONS taxonomy"
method: GET
path: "/categories"
---

# match queries on the ONS Website to groupings in the ONS taxonomy

`GET /categories`

## Request

- Base URL: `/v1` (relative, and the document’s source URL is not known)
- URL: `/v1/categories`
- Auth: none declared

Returns matches and categorises them into groups with a score based on relevancy

## Query parameters

- `query` string, required
- `snr` integer

## Response `200`

OK

- object[]
  - `s` string
  - `c` string

## Other responses

- `500`: Failed to process the request due to an internal error

---

[API](https://skmtc.dev/office-of-national-statistics/apis/nlp-category-api.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/nlp-category-api/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/nlp-category-api/revisions/f6d5a89a5626?raw)
