Search a records dataset
/v1/records/{slug}/search10¢ per callSearch a records dataset by words (q) and/or exact filters (where), or page through every record in key order; a page at a time.
One route for every dataset of this kind: the slug picks the dataset, and its fields, caveats and an example call are at /v1/datasets/{slug}.
Authorization
Request
The only values you send. Fields under Responses below are what comes back — you never pass those.
Path parameters
slugstringrequiredDataset slug, from `/v1/datasets` (filter by `kind` and `level`) or the endpoint search. A slug this route does not serve is a 404 and is not billed.
Required — set a value before sending.
Query parameters
qstringoptionalWords to find (prefix match, all must appear) in the dataset's search fields.
wherearrayoptionalExact-match filter `field:value`, repeatable (`where=region:North&where=site:Kent`); text matches any case. The filter fields are listed at `/v1/datasets/{slug}`.
fieldsstringoptionalComma-separated field slugs (listed at `/v1/datasets/{slug}`). Omit for all.
limitintegeroptionalRecords per page, 1 to the dataset's maximum (50 unless its docs say otherwise; default 25).
offsetintegeroptionalRecords to skip, for the next page (`next_offset`).
Responses
Successful Response
datasetstringalways returnedDataset slug.
as_ofstring · datealways returnedDate the dataset is current to.
totalintegeralways returnedRecords matching, across every page.
limitintegeralways returnedPage size used.
offsetintegeralways returnedRecords skipped before this page.
next_offsetintegermay be nullOffset of the next page; null on the last page.
recordsarray of DatasetRecordalways returned/v1/records/{slug}/searchslug — set it on the left to send.curl --request GET \
--url 'https://api.microburbs.com.au/v1/records/{slug}/search' \
--header 'Authorization: Bearer test'{}