The data API
Search the library, fetch any statistic by id, or construct an exact statistic from a source's dimensions.
Search
Search returns matching statistics with their ids. Search is per source; source defaults to worldbank. The source ids come from the registry.
Fetch a statistic
A statistic id is stable: the same id always resolves to the same selection, with the data refreshed live from the source.
The same shape for every source: a period axis, a value series, and enough metadata to cite it.
Construct an exact statistic
Search covers the common statistics. For anything else a source measures, construct the exact statistic from the source's dimensions: pass one value per dimension and the API mints a stable id for that selection and resolves it.
An omitted dimension falls back to the source's default where one exists (the World Bank default country is World); otherwise the response is 422 missing_dimension naming what to add.
The source registry
GET /v1/sources lists every connected source with its publisher, cadence, coverage, and license. GET /v1/sources/{source} describes one source's dimensions, and GET /v1/sources/{source}/dimensions/{dim} browses a dimension's values.