---
title: "Default ONS query API"
method: GET
path: "/search"
tags: ["public"]
---

# Default ONS query API

`GET /search`

Default ONS query API which combines the content with type counts

## Query parameters

- `q` string, required
- `content_type` string[]
- `topics` string[]
- `population_types` string[]
- `dimensions` string[]
- `cdids` string[]
- `dataset_ids` string[]
- `highlight` boolean
- `sort` string
- `limit` integer
- `offset` integer
- `fromDate` string
- `toDate` string
- `nlp_weighting` boolean
- `uri_prefix` string

## Response `200`

OK

## Other responses

- `400` — Query term not specified
- `500` — Internal server error

---

[API](https://skmtc.net/office-of-national-statistics/apis/search-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/search-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/search-api/revisions/33e6751db807/schema)
