Public read API

Open, read-only and free. JSON over HTTP, no key needed. Every dataset carries its publisher, a last-updated date and a link to the source (C2 R-07, R-08).

The search and dataset addresses are /api/datasets. The earlier /api/records addresses stay for compatibility and answer the same.

Search

GET https://tdo-prototype.vercel.app/api/datasets?q=weather&country=ESP&from=2022&to=2022&limit=10

The search matches words and meaning. Each word is read as an English stem and as written, without accents, so German and French words meet the original-language titles. The meaning side compares the query with every dataset using gte-small, an embedding model trained on English; datasets are embedded from their English title and description (I14Y descriptions carry English by machine translation), and queries in other languages find their results through words. Datasets found both ways come first. Filters combine with AND.

ParameterMeaning
qWhat to look for, in words. Empty lists everything that passes the filters, newest first.
titleWords that must all start a word in the title, in English or in the original language.
descWords that must all start a word in the description.
publisherPart of the publisher’s name, for example Federal Statistical Office.
sourceOne catalogue by its id, as /api/sources lists them, for example i14y or wmo.
countryAn ISO 3166-1 code (ESP or ES) or a country name in English, French, German or Italian.
country_modecovers (the default): any dataset whose coverage includes the country, global and regional ones included. about: only datasets about that country.
from, toYears the data must cover: a dataset matches when its years overlap the range. One of them alone means one year.
updated_sinceA date, YYYY-MM-DD: datasets last updated on or after it.
frequencyAn update frequency as listed in advanced search, for example Annual or Daily.
licenceA licence family as listed in advanced search, for example CC BY 4.0 or WHO terms of use.
themePart of a theme or a keyword.
has_source, has_access1 for datasets with a link to the publisher’s page, or with a link to the data.
completeKept so earlier calls work: 1 keeps datasets that fill all 17 fields, F1 to F17 (see the fields below). On 3 November 2026 none did, so it returns no datasets. Each dataset's missing_fields says what it leaves empty.
include_unlinked1 to include datasets with neither a link to source nor an access URL, left out by default.
group_editions0 to list every yearly edition of a series; by default they are grouped under the latest.
limit, offsetPaging. Up to 100 per call; follow next in the answer.

Each result adds what the TDO derives from the published fields: coverage_scope (country, multi-country, regional, global or unknown), coverage_countries (ISO codes, or every country), coverage_years, licence_family, coverage_summary (the scope in words, such as “multi-country, 38 countries”), matched_by (words, meaning or both), and source_link_type and access_link_type: what each link opens, as a kind (file, api, page, account for a service that needs a free account or an application, subscription for a broker stream), a short label such as CSV file or SDMX REST API, and a one-line note. Countries are read from the coverage text and from bounding boxes, which are rectangles, so a box near a border can count a neighbouring country too.

Strong matches carry every word of the question (a country it names aside), or are very close in meaning; loose matches are related by meaning, or carry some of the words. Strong matches come first, and strong_matches and loose_matches count each; count_note says how the counts are made. Each result says which it is in match_strength. Yearly editions of one series (same catalogue, same title once its years are taken out) are grouped under the latest, with the others in other_editions, and count once.

When the search ranks by a country, the country filter or a country named in q, ranked_by_country names it. Datasets about it come first, then multi-country, regional and global ones; a dataset whose bounding box reaches the country while its publisher names another comes after them. Each result says how it relates to the country in country_match. A country named in the question changes only the order of the results.

query.search_by_meaning says whether the meaning side was used. When a query was given and it was left out (the embedding service or the database did not answer in time), the results match words only and query.search_by_meaning_note says why.

curl "https://tdo-prototype.vercel.app/api/datasets?q=heat%20health"
curl "https://tdo-prototype.vercel.app/api/datasets?q=weather&country=Spain&country_mode=about&from=2022"

One dataset

GET https://tdo-prototype.vercel.app/api/datasets/<tdo_id>

All fields, where each gap-prone value came from (published, machine-translated or derived), the version, and the metadata exactly as the source publishes it. fields lists F1 to F17 and T1 to T4 with the key each one is under, whether the prototype holds it and whether this dataset fills it.

The fields, by number

The TDO MVP Definition v2 (section 4) lists 17 minimum metadata fields, numbered here F1 to F17 in its order. The TDO's own fields beyond them are T1 to T4. A field keeps its number; a field agreed later takes the next free one. Which fields are mandatory is left to the Swiss FSO and the I14Y team, so no answer calls a field mandatory.

No.FieldJSON keyHeld by the prototype
F1TitletitleYes
F2Abstract / DescriptiondescriptionYes
F3Keywords / Thematic TagskeywordsYes
F4Semantic Topic Tag (from a controlled vocabulary)topic_csaYes
F5Unique IdentifieridentifierYes
F6Publisher / Data ProviderpublisherYes
F7Date of Publication / Last Updatelast_updateYes
F8Source or Originsource_or_originYes
F9Access URLaccess_urlYes
F10Contact InformationcontactYes
F11Format / TypeformatsYes
F12Geographical Coveragegeographical_coverageYes
F13Temporal Coveragetemporal_coverageYes
F14Units of measurementunitsYes
F15Variable name/label/short descriptionvariablesYes
F16Update Frequencyupdate_frequencyYes
F17Data Quality Note / Methodology Summaryquality_noteYes
T1Link to sourcesource_urlYes
T2LicencelicenceYes
T3Original produceroriginal_producerYes
T4Original languageoriginal_languageYes

missing_fields names the fields the prototype holds that a dataset leaves empty, such as "F13 Temporal Coverage". missing_mandatory_fields is deprecated: until 3 November 2026 it named the ten fields of an October 2026 proposal; it now carries the same list as missing_fields, so programs reading it keep working. The filter complete=1 keeps datasets whose missing_fields is empty.

Latest figures from the publisher

GET https://tdo-prototype.vercel.app/api/data/<tdo_id>?country=ESP&year_from=2015&year_to=2024&limit=20

The latest figures of one dataset, fetched from its publisher when asked: WHO’s Global Health Observatory, the OECD’s SDMX API, INE’s Tempus API, Statistics Norway’s PxWebApi, the Swiss FSO’s STAT-TAB, a few WMO services (Environment and Climate Change Canada’s climate stations, river gauges and air quality; Singapore’s wet bulb globe temperature) and UNCTADstat once the TDO holds a key. The TDO keeps each answer for a short time to respect the publishers’ limits (the OECD’s for a day) and stores none of it in the catalogue.

ParameterMeaning
countryOptional. An ISO 3166-1 code (ESP or ES) or a country name; World for WHO’s global figures. Without it the TDO picks the publisher’s default view.
countriesOptional. Up to six countries to compare, separated by commas (CHE,DEU or Switzerland,Germany), for WHO, OECD and UNCTADstat datasets. With country as well, that country comes first. One request to the publisher covers every country.
stationOptional, for WMO datasets: a station code from places.
seriesOptional. One of series_options, for another breakdown of the same dataset (sex, age, region, threshold).
year_from, year_toOptional. The years to return.
limitHow many periods, the latest ones. Default 20, at most 50.

The answer’s status is ok (figures in series.rows, oldest first), empty (the publisher has none for this choice), none (the TDO shows no figures for this dataset) or error (the publisher did not answer, HTTP 502). Every answer names the publisher, the licence and the dataset’s source_url; figures add the exact request made to the publisher (query_url) and when it answered (fetched_at). Without figures, route says how to get the data: an API, bulk files, an account or an application.

With two or more countries, the answer adds comparison: the same series for every country, aligned by period. comparison.places lists the countries in the order asked, comparison.rows holds one row per period (oldest first) with a value for each country code in values, null where the publisher has none, and comparison.missing names the countries without figures in that series. The other fields describe the first country with figures, as for one country. compare_max says how many countries a dataset can compare; it is 0 for INE (Spain only), Statistics Norway (Norway only), the Swiss FSO (Switzerland only) and the WMO stations.

curl "https://tdo-prototype.vercel.app/api/data/oecd-335523c3f2?country=ESP"
curl "https://tdo-prototype.vercel.app/api/data/who-d06ad341ea?country=World&year_from=2010"
curl "https://tdo-prototype.vercel.app/api/data/who-d06ad341ea?countries=CHE,DEU"

Catalogues

GET https://tdo-prototype.vercel.app/api/sources

For AI assistants

The same catalogue answers MCP at https://tdo-prototype.vercel.app/api/mcp. See the AI assistants page for how to connect. The tool get_data returns the same figures as /api/data: arguments tdo_id, country, countries (a list of up to six, to compare), year_from, year_to and limit (and series or station from an earlier answer); a short text and a table as structured content, with the publisher, the licence, the request and the time it answered. A comparison comes as one table with a column per country, and as comparison in the structured content, latest period first, ready to draw.

API · TDO prototype