Search NYC Open Data catalog
search_datasetsSearch NYC Open Data by keyword to find dataset IDs, names, descriptions, update dates, and column names. Use it first to choose a dataset and columns before querying.
Instructions
Search the NYC Open Data catalog (data.cityofnewyork.us) by keyword. Returns dataset ids, names, short descriptions, last-updated dates and column names. Use this first to find a dataset id and its columns before calling query_dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page (1-25, default 10). | |
| query | Yes | Keywords, e.g. "restaurant inspections", "bike lanes", "rat sightings". | |
| offset | No | Pagination offset; pass next_offset from a previous call. | |
| category | No | Optional NYC Open Data category, e.g. "Health", "Transportation", "Housing & Development". | |
| include_columns | No | Include each dataset's column names and types (needed to write query_dataset filters). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| total | Yes | Total matching datasets. | |
| offset | Yes | ||
| datasets | Yes | ||
| returned | Yes | ||
| next_offset | Yes | Pass as offset for the next page; null when there are no more. |