← clify home · catalogue · Open government data APIs for AI agents

data-cityofnewyork API for agents (unofficial) — JSON over curl

NYC Open Data (Socrata catalog at data.cityofnewyork.us). The CLI searches the dataset catalog by keyword, tag, category and sort order; reads dataset metadata and columns; runs SoQL queries against rows; exports CSV; and lists change history and attachments. It needs no login.

Host: data.cityofnewyork.us. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Start with San Francisco and U.S. agent tasks: events, startup jobs, BART and Muni departures, Craigslist listings, local news, public datasets and prediction markets. Example: curl 'https://clify-dev.netlify.app/search?q=SF+tech+events'. Responses are one JSON object. The hosted MCP and GitHub repo are also available.

Machine-readable command schema · Source website

Commands

search-datasets

Search the NYC Open Data catalog by keyword, tag, category or asset type, with sorting and offset paging Params: q, tags, categories, only, order, api_limit, offset Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/search-datasets?q=restaurant&tags=food'

suggest-dataset-titles

Autocomplete dataset titles that match a partial keyword Params: q*, api_limit Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/suggest-dataset-titles?q=taxi'

list-catalog-facets

List the catalog's browse facets: domain categories and custom facets such as Data Collection, with their options Params: none Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/list-catalog-facets'

get-dataset

Get full metadata for a dataset by its 4x4 id: name, description, agency, category, view and download counts, update times and column definitions Params: id* Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/get-dataset?id=8meu-9t5y'

query-dataset

Run a SoQL query against a dataset's rows: select, filter, aggregate, count, or page with LIMIT/OFFSET Params: id*, query* Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/query-dataset?id=8meu-9t5y&query=SELECT+%60zone%60%2C+%60locationid%60%2C+%60borough%60+LIMIT+10'

export-dataset-csv

Download the entire dataset as CSV text (this can be very large for big datasets) Params: id* Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/export-dataset-csv?id=8meu-9t5y'

list-dataset-changes

List a dataset's update/version history (archive entries with version number and timestamp), using cursor paging Params: id*, api_limit, cursor Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/list-dataset-changes?id=43nn-pn8j'

list-dataset-attachments

List the file ids of a dataset's attachments (data dictionaries, user guides) with their scan state Params: id* Read-only

curl 'https://clify-dev.netlify.app/data-cityofnewyork/list-dataset-attachments?id=43nn-pn8j'

Related task guides and sites

Continue with Open government data APIs for AI agents or explore related sources:

data-gov

data.gov.uk

data.gov.uk (National Data Library): the UK government's open data directory. The CLI searches and reads dataset metadata through the public CKAN JSON API, lists data files and previews from dataset pages, and browses the curated theme collections and their chart data.

Machine-readable commands · 9 verified commands

data-cdc

data.cdc.gov

data.cdc.gov is the CDC's open-data portal (Socrata). This CLI searches the dataset catalog, lists categories and tags, reads dataset metadata, and queries or exports dataset rows through the public Socrata Discovery, SODA and views APIs.

Machine-readable commands · 10 verified commands

data-europa

data.europa.eu

data.europa.eu (the official EU open data portal): search EU and national open datasets, catalogues and data services, read dataset and catalogue metadata, find similar datasets, and export DCAT metadata.

Machine-readable commands · 10 verified commands