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
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.
| Parameter | Meaning |
|---|---|
| q | What to look for, in words. Empty lists everything that passes the filters, newest first. |
| title | Words that must all start a word in the title, in English or in the original language. |
| desc | Words that must all start a word in the description. |
| publisher | Part of the publisher’s name, for example Federal Statistical Office. |
| source | One catalogue by its id, as /api/sources lists them, for example i14y or wmo. |
| country | An ISO 3166-1 code (ESP or ES) or a country name in English, French, German or Italian. |
| country_mode | covers (the default): any dataset whose coverage includes the country, global and regional ones included. about: only datasets about that country. |
| from, to | Years the data must cover: a dataset matches when its years overlap the range. One of them alone means one year. |
| updated_since | A date, YYYY-MM-DD: datasets last updated on or after it. |
| frequency | An update frequency as listed in advanced search, for example Annual or Daily. |
| licence | A licence family as listed in advanced search, for example CC BY 4.0 or WHO terms of use. |
| theme | Part of a theme or a keyword. |
| has_source, has_access | 1 for datasets with a link to the publisher’s page, or with a link to the data. |
| complete | Kept 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_unlinked | 1 to include datasets with neither a link to source nor an access URL, left out by default. |
| group_editions | 0 to list every yearly edition of a series; by default they are grouped under the latest. |
| limit, offset | Paging. 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
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. | Field | JSON key | Held by the prototype |
|---|---|---|---|
| F1 | Title | title | Yes |
| F2 | Abstract / Description | description | Yes |
| F3 | Keywords / Thematic Tags | keywords | Yes |
| F4 | Semantic Topic Tag (from a controlled vocabulary) | topic_csa | Yes |
| F5 | Unique Identifier | identifier | Yes |
| F6 | Publisher / Data Provider | publisher | Yes |
| F7 | Date of Publication / Last Update | last_update | Yes |
| F8 | Source or Origin | source_or_origin | Yes |
| F9 | Access URL | access_url | Yes |
| F10 | Contact Information | contact | Yes |
| F11 | Format / Type | formats | Yes |
| F12 | Geographical Coverage | geographical_coverage | Yes |
| F13 | Temporal Coverage | temporal_coverage | Yes |
| F14 | Units of measurement | units | Yes |
| F15 | Variable name/label/short description | variables | Yes |
| F16 | Update Frequency | update_frequency | Yes |
| F17 | Data Quality Note / Methodology Summary | quality_note | Yes |
| T1 | Link to source | source_url | Yes |
| T2 | Licence | licence | Yes |
| T3 | Original producer | original_producer | Yes |
| T4 | Original language | original_language | Yes |
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
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.
| Parameter | Meaning |
|---|---|
| country | Optional. 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. |
| countries | Optional. 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. |
| station | Optional, for WMO datasets: a station code from places. |
| series | Optional. One of series_options, for another breakdown of the same dataset (sex, age, region, threshold). |
| year_from, year_to | Optional. The years to return. |
| limit | How 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
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.