Socrata Dataset Search
socrata.datasets.searchSearch thousands of government open-data portals by keyword, domain, category, or tags to find datasets and get their IDs, hosting domains, licenses, and URLs for metadata lookup or querying.
Instructions
Search the Socrata Discovery API — a single cross-portal catalog covering thousands of independently-hosted government/civic open-data portals worldwide (NYC, HHS, states, counties, and more) — by free-text query, portal domain, category, and/or tags. Returns each dataset's id, name, description, hosting domain, category, tags, license, and URL. Use the returned domain + id with socrata.dataset_metadata or socrata.query_dataset. Data: api.us.socrata.com, no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Asset type to return (default "dataset") | |
| tags | No | Comma-separated tag filter, e.g. "budget,finance" | |
| limit | No | Max results to return, 1-50 (default 10) | |
| query | No | Free-text search across dataset name/description/tags, e.g. "covid" or "budget" | |
| offset | No | Pagination offset (default 0) | |
| domains | No | Comma-separated Socrata portal hostname(s) to scope the search to, e.g. "data.cityofnewyork.us" | |
| category | No | Filter by Socrata domain category, e.g. "Health", "Transportation", "Public Safety" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |