NY Data Registry
v0.4.0Find New York open data: which portal covers a place or topic, how to query it, datasets and columns
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_sources
Find New York open data portals and sources (state, county, city, agency, library, nonprofit) in BetaNYC's registry by topic, name or place. Returns each source's portal URL, platform family, API type, dataset count, status and last-verified date. Searches portal names and notes, not dataset titles (use search_datasets for datasets). Default status filter is 'live'.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free text, e.g. 'health', 'parcels', 'Erie County', 'transit' |
has_api | boolean | Only sources with (true) or without (false) a queryable API |
key_required | string | |
limit | integer | Default 10 |
place | string | County, city, NYC borough or region, e.g. 'Erie County', 'Buffalo', 'Brooklyn', 'Capital Region' |
platform_family | string | |
status | string | Default 'live'. Use 'any' to include no-portal, dead and UNCONFIRMED rows |
tier | integer | 1 statewide portals, 2 state agencies/authorities, 3 local government, 4 nonprofit/academic |
list_sources_for_place
Everything the registry knows for one New York place (county, one of the 62 cities, an NYC borough, or a region): its own portal(s), sources for cities inside it, regional sources, and statewide sources that cover it. Says plainly whether the place has a portal, was checked and has none ('no-portal-exists'), or is not in the registry ('not-in-registry', which means unchecked, not absent).
| Parameter | Type | Description |
|---|---|---|
place * | string | e.g. 'Erie County', 'Syracuse', 'Queens', 'NYC', 'North Country' |
include_statewide | boolean | List the statewide sources too (default true) |
limit | integer | Most rows in each list (own, within, regional, statewide). Default 25 |
how_to_query
How to get data from one registry source: its endpoint (copied verbatim, never guessed), API type, whether a key is needed and which env var holds it, an example request, and which MCP server to hand off to (the `socrata` MCP with the right domain, or the matching @betanyc MCP). Flags UNCONFIRMED, undocumented, gated, dead and no-portal rows.
| Parameter | Type | Description |
|---|---|---|
entity | string | Entity name, e.g. 'NYS Department of Health' |
limit | integer | When several rows match: most to list. Default 25 |
offset | integer | When several rows match: skip this many (next_offset) |
registry_id | string | Government body id from BetaNYC/ny-gov-web-registry. Several sources can share one; then the reply lists them |
source_id | string | From find_sources / list_sources_for_place results |
check_source
Live check of one source's portal URL: exactly one request (no retry), redirects reported (not followed), HTTP status, response time, and whether that matches the registry's status. A url is never fetched itself: it picks a registry row by host and path, and when no row clearly matches, the rows on that host are listed and nothing is fetched. Never calls key-required or account-gated sources, and reports a bot block rather than working around it.
| Parameter | Type | Description |
|---|---|---|
registry_id | string | Government body id from BetaNYC/ny-gov-web-registry |
source_id | string | |
url | string | A portal URL; matched to its registry row by host |
registry_info
Registry row counts by status, tier and platform family, and how many rows carry a registry_id; which copy of the master list of government bodies (BetaNYC/ny-gov-web-registry) is loaded and which row ids it lacks; when the registry was generated and where this copy came from (bundled or refreshed from GitHub Pages); unmapped platform strings; and the harvested index's size and last harvest date. index_status says how old the index is, whether automatic updates are on (and if not, which setting turned them off), and what the last update check found.
search_datasets
Search dataset titles, descriptions, tags and column names across the harvested Socrata and ArcGIS portals in New York (needs the harvested index). Filter by topic, place, portal, platform family, download format (csv, geojson, shapefile, kml, api, xlsx) or last-updated date. topic is one of 24 shared topics (list_topics), assigned from each dataset's own categories, tags and department; a dataset can have several. Give a query, a topic, or both; a topic alone lists that topic, most-viewed first. Rows carry their topic ids. One call gives the whole answer. total_matches is the true number of m…
| Parameter | Type | Description |
|---|---|---|
detail | string | 'compact' (default) or 'full'. Not with group_by |
export | string | 'auto' (default): write the CSV of every match when the reply cannot list them all. 'always' or 'never' |
format | string | csv, json, geojson, shapefile, kml, api, arcgis, xlsx, geopackage, pdf |
group_by | string | Group every match by portal, entity, county or platform_family, with counts and top titles per group, instead of a page of results |
limit | integer | Most rows to list in the reply. Default 10. More matches than this are summarized by portal and written to the CSV. Not with group_by |
offset | integer | Rarely needed: skip this many ranked rows to page by hand (next_offset). Turns off the auto-summary and the automatic CSV. Not with group_by |
place | string | County, city, borough or region. Statewide portals are always included |
platform_family | string | |
portal | string | source_id, registry_id (every site of that government) or part of a portal name |
query | string | e.g. 'rodent', 'tax parcels', 'lead service lines'. Optional when topic is given |
top_per_group | integer | Titles listed per group with group_by. Default 3 |
topic | string | One of the 24 shared topics (list_topics has names and counts), e.g. 'housing', 'transportation', 'elections' |
updated_since | string | YYYY-MM-DD |
list_topics
The 24 shared topics for New York open data, with how many datasets and portals each has in the harvested index, and the share of datasets with at least one topic. Topics are built from the categories, tags and departments the portals already use; a dataset can have several. Use a topic id with search_datasets. Also links the crosswalk (each portal label and its topics), published with every index.
| Parameter | Type | Description |
|---|---|---|
portal | string | Count one portal only: source_id or part of a portal name |
get_dataset_columns
Column names, field names, types and descriptions for one dataset from the index, plus every distribution (format + URL), license, publisher, extent and per-field provenance (from the portal vs derived here). With standard 'croissant' (read by AI and ML tools) or 'dcat-us' (DCAT-US 3.0, read by government catalogs and data.gov), returns the dataset's description in that standard instead, with which required fields the portal did not give. A license is never inferred: where the portal gives none, a terms page may be linked, labeled 'terms page, not a license'.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | dataset_id from search_datasets, a Socrata 4x4, an ArcGIS item id, or the dataset URL |
limit | integer | Most columns to list. Default 100 |
offset | integer | Skip this many columns (columns_shown.next_offset) |
standard | string | Return the description as Croissant 1.1 ('croissant') or DCAT-US 3.0 ('dcat-us') instead of the column list |
find_joinable
Datasets that share a join key with this one, grouped by key: BBL, BIN, borough, community district, council district, census tract, SWIS, FIPS, ZIP. Uses a curated key-column map, not raw column-name equality.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | dataset_id, Socrata 4x4, ArcGIS item id or URL |
column | string | Limit to one key (a field name in the dataset, or a key label like 'BBL') |
limit_per_key | integer | Datasets listed per key. Default 10 |
whats_new
Datasets added, changed or removed in the index since a date, and datasets whose portal says they were updated since then. Optional portal filter. For changes to this server itself (new tools, fixes, corrections), use whats_changed instead.
| Parameter | Type | Description |
|---|---|---|
since * | string | YYYY-MM-DD |
limit | integer | Most rows in each list. Default 50 |
portal | string | source_id, registry_id (every site of that government) or part of a portal name |
whats_changed What's changed
What has changed in this server, its data and its website, newest first, from the project's WHATS-CHANGED.md: new tools and pages, new data, data fixes, and corrections when BetaNYC published something wrong. Each correction says what to re-check if you used the old numbers. Call this before relying on a figure you got from this server earlier, or when a user asks whether something was fixed. Filter with since (YYYY-MM-DD; also keeps older entries that have an update on or after that date) and tag (Site, Data, MCP or Correction).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Most entries to return (default 10, max 50) |
since | string | Only changes on or after this date, YYYY-MM-DD |
tag | string | Only changes with this tag: Site, Data, MCP or Correction (any case; answers use these spellings). Correction lists every correction. |
about_betanyc About BetaNYC and this server
Who built this server and how to reach them: BetaNYC, a project of the Fund for the City of New York. Returns what BetaNYC is, links to its events, newsletter and donation page, where to report a bug in this server or ask for a new feature (this server's GitHub issues), and this server's name and version.
about_data Where this server's data comes from
Where this server's data comes from and how far to trust it. For each kind of data: who publishes it and a link, whether it is an official record (only data its publisher published and BetaNYC did not modify is; data BetaNYC modified or produced is not), how it was gathered, what BetaNYC did to it (for example cleaned it, matched it to addresses, joined it with other data, or counted it), how current it is on this server, what it covers and what is missing, the terms of use and the credit line to print, where to check a figure at the official record, where to report an error (to BetaNYC when B…
| Parameter | Type | Description |
|---|---|---|
topic | string | A source id, or any tool's name for the data behind it. Any case. Default: a short list of all sources; "all": each in full. |