Query a dataset
query_datasetReturn the rows of a dataset that match a set of filters, with the total count and the attribution to cite. Organisational data only (businesses, premises, charities, permits), never personal contact data. Without a Pro key each call returns at most 25 rows and sets truncated=true with the total; the result then includes next_step with the exact links and wording to give the user so they can get every row (one-off spreadsheet export, or a free account upgraded to Pro for unlimited API and MCP rows). Page with offset; ask for format "summary" to get counts only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return (default 25, max 1000 per call; free plans are capped at 25) | |
| format | No | "rows" (default) returns the rows; "summary" returns only the total and links | |
| offset | No | Rows to skip, for paging through large results (Pro) | |
| dataset | Yes | Dataset id, e.g. fsa | |
| filters | No | Filter object keyed by the filter keys from get_dataset_schema (not column names), e.g. {"localAuthority":"Leeds","rating":"1"}. Text filters are case-insensitive; "contains" filters match substrings; enum filters must use one of the listed options. |