NYC Open Data
Open data portalsUSdata.cityofnewyork.us
New York City's open data: property, permits, 311, transport, health and everything else the city publishes.
Capabilities (7)
GET /v1/data/nycopendata/aggregate1 creditReturns aggregated rows computed server-side by a SoQL $select with a $group clause, for example a count per complaint type.
GET /v1/data/nycopendata/columns1 creditReturns just the column definitions for a dataset: display name, API field name, data type and per-column description.
GET /v1/data/nycopendata/dataset-metadata1 creditReturns one dataset's full Socrata view record: name, description, owning agency, category, tags, licence, update frequency, row count, creation and last-update timestamps and its column definitions.
GET /v1/data/nycopendata/datasets1 creditReturns catalog entries for NYC Open Data assets matching a query, each with its 4x4 id, name, description, owning agency, category, tags, column names and update timestamps.
GET /v1/data/nycopendata/query1 creditReturns dataset rows matching a SoQL $where expression, in a chosen sort order.
GET /v1/data/nycopendata/rows1 creditReturns raw rows from a dataset in stable :id order, as an array of JSON objects keyed by the dataset's field names.
GET /v1/data/nycopendata/search-rows1 creditReturns rows from one dataset whose text columns match a free-text query, using Socrata's $q full-text index.
Response example
The shape of data from nycopendata/aggregate (Grouped totals). A sample, not live data.
[
{
"complaint_type": "Illegal Parking",
"n": "2980356"
},
{
"complaint_type": "Noise - Residential",
"n": "2590401"
},
"… 8 more items"
]Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Grouped totals
Use NYC Open Data (nycopendata) from fastCRW Pergamon, capability "Grouped totals" (aggregate). You want counts, sums or averages over a whole dataset instead of downloading its rows. Example options: dataset=erm2-nwe9, select=complaint_type,count(*) AS n, group=complaint_type. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nycopendata" and capability "aggregate". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset columns
Use NYC Open Data (nycopendata) from fastCRW Pergamon, capability "Dataset columns" (columns). You are about to write a $where or $select and need the exact field names and types. Example options: dataset=erm2-nwe9. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nycopendata" and capability "columns". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset metadata
Use NYC Open Data (nycopendata) from fastCRW Pergamon, capability "Dataset metadata" (dataset-metadata). You have a 4x4 id and want to know what the dataset is, who maintains it and how fresh it is. Example options: dataset=erm2-nwe9. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nycopendata" and capability "dataset-metadata". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Search the data catalog
Use NYC Open Data (nycopendata) from fastCRW Pergamon, capability "Search the data catalog" (datasets). You need to find which NYC dataset covers a topic, or you need its 4x4 id before querying rows. Example options: q=parking, only=dataset, limit=5. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nycopendata" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
NYC Open Data terms of use: the data is public and may be used for any purpose, including commercial.
https://www.nyc.gov/html/data/terms.htmlAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: NYC Open Data
Cache: up to 3600s
