← clify home · catalogue · Open government data APIs for AI agents
ons API for agents (unofficial) — JSON over curl
Office for National Statistics (ons.gov.uk), the UK's official statistics site. This CLI searches publications and data, reads time series values and metadata, bulletins, datasets and the release calendar, and downloads CSV data. It is read-only and needs no login.
Host: ons.gov.uk. 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
Site-wide keyword search over ONS publications, bulletins, time series and datasets, with content-type and census topic filters, sorting and paging Params: q*, filter, topics, sort, page Read-only
curl 'https://clify-dev.netlify.app/ons/search?q=inflation&filter=time_series'
search-timeseries
Search the time series explorer (58k+ series) by keyword and/or topic path; each result shows the series ID (CDID) and dataset ID Params: q, topic, sort, page Read-only
curl 'https://clify-dev.netlify.app/ons/search-timeseries?q=unemployment'
get-timeseries
Get time series metadata and its latest value (title, CDID, unit, latest period and value, release dates, source dataset) from the ONS content API Params: topic*, series_id*, dataset* Read-only
curl 'https://clify-dev.netlify.app/ons/get-timeseries?topic=economy%2Finflationandpriceindices&series_id=d7g7&dataset=mm23'
get-timeseries-data
Get the monthly observations of a time series as a list of {date, value} (for quarterly or annual-only series use download-timeseries-csv) Params: topic*, series_id*, dataset* Read-only
curl 'https://clify-dev.netlify.app/ons/get-timeseries-data?topic=economy%2Finflationandpriceindices&series_id=l55o&dataset=mm23'
download-timeseries-csv
Download a time series as CSV with all frequencies (annual, quarterly, monthly) plus metadata rows; also works for a previous version Params: uri* Read-only
curl 'https://clify-dev.netlify.app/ons/download-timeseries-csv?uri=%2Feconomy%2Finflationandpriceindices%2Ftimeseries%2Fl55o%2Fmm23'
list-timeseries-versions
List previous (superseded) versions of a time series with update date, label/reason and version uri (pass uri to download-timeseries-csv) Params: topic*, series_id*, dataset* Read-only
curl 'https://clify-dev.netlify.app/ons/list-timeseries-versions?topic=economy%2Finflationandpriceindices&series_id=l55o&dataset=mm23'
get-bulletin
Get a statistical bulletin edition: title, summary, release and next-release dates, and its sections Params: topic*, series*, edition* Read-only
curl 'https://clify-dev.netlify.app/ons/get-bulletin?topic=economy%2Finflationandpriceindices&series=consumerpriceinflation&edition=august2026'
list-bulletin-releases
List all past editions of a bulletin series, newest first Params: topic*, series*, page Read-only
curl 'https://clify-dev.netlify.app/ons/list-bulletin-releases?topic=economy%2Finflationandpriceindices&series=consumerpriceinflation'
List the datasets and data related to a bulletin edition Params: topic*, series*, edition* Read-only
curl 'https://clify-dev.netlify.app/ons/list-bulletin-related-data?topic=economy%2Finflationandpriceindices&series=consumerpriceinflation&edition=august2026'
get-dataset
Get a dataset page: title, description, release info, any correction notice and the current edition's file download link Params: topic*, dataset* Read-only
curl 'https://clify-dev.netlify.app/ons/get-dataset?topic=economy%2Finflationandpriceindices&dataset=consumerpriceinflation'
list-topic-data
List all published data (time series, datasets, user-requested data) for a topic, with keyword filter, sorting and paging Params: topic*, filter, q, sort, page Read-only
curl 'https://clify-dev.netlify.app/ons/list-topic-data?topic=economy%2Finflationandpriceindices&filter=datasets&sort=release_date'
list-topic-publications
List all publications (bulletins, articles and so on) for a topic, with keyword filter, sorting and paging Params: topic*, q, sort, page Read-only
curl 'https://clify-dev.netlify.app/ons/list-topic-publications?topic=economy%2Finflationandpriceindices'
list-topic-headline-series
List a topic page's headline (spotlight) time series uris, e.g. CPIH/CPI/RPI for inflation Params: topic* Read-only
curl 'https://clify-dev.netlify.app/ons/list-topic-headline-series?topic=economy%2Finflationandpriceindices'
list-releases
List the release calendar (published, upcoming or cancelled releases) with keyword search, sorting and paging, read from the RSS feed Params: keywords, release_type, sort, api_limit, page Read-only
curl 'https://clify-dev.netlify.app/ons/list-releases?keywords=gdp&release_type=type-upcoming&sort=date-oldest'
get-release
Get a release calendar entry: title, release date and time, publication status and summary Params: slug* Read-only
curl 'https://clify-dev.netlify.app/ons/get-release?slug=gdpmonthlyestimateukaugust2027'
Related task guides and sites
Continue with Open government data APIs for AI agents or explore related sources:
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.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.cityofnewyork.us
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.
Machine-readable commands · 8 verified commands