StatCite Series API
The Series API from StatCite — 1 operation(s) for series.
The Series API from StatCite — 1 operation(s) for series.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/statcite-com:statcite-com-series-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: StatCite Series API
version: 1.17.0
description: Official economic statistics with full citations, built for AI agents. Every numeric response includes a citation object (source, dataset, series_id, source_url, license, attribution, retrieved_at, citation_text). Free, no auth, read-only. MCP endpoint at https://statcite.com/mcp.
contact:
email: hello@statcite.com
url: https://statcite.com
license:
name: Service terms
url: https://statcite.com/terms
servers:
- url: https://statcite.com
tags:
- name: Series
paths:
/v1/series:
get:
operationId: getSeries
summary: 'Raw series by explicit id: worldbank/…, imf/…, dbnomics/…, or caribstat/… for…'
parameters:
- name: id
in: query
required: true
schema:
type: string
description: 'Explicit series id. Forms: worldbank/NY.GDP.MKTP.KD.ZG, imf/NGDP_RPCH, dbnomics/IMF/WEO:latest/BRB.NGDP_RPCH.pcent_change, caribstat/ECCB/{table}/{ISO3}.{a|q|m}, caribstat/CBB/{table}/{sheet}. CaribStat ids cover the eight ECCU territories, the currency-union aggregate and Barbados, including Anguilla and Montserrat, which are not World Bank reporting economies. Append ''#Row Label'' to select one row of a multi-row table. Where a source repeats a label under different headings, the selector is refused as ambiguous and each occurrence is reachable as ''#Row Label[1]'', ''[2]'' and so on; the served label then reads ''Row Label [2 of 3]'' and can be pasted back in as a selector.'
examples:
worldBank:
value: worldbank/NY.GDP.MKTP.KD.ZG
summary: World Bank, needs country
caribstatEccb:
value: caribstat/ECCB/total-public-sector-debt/AIA.a
summary: ECCB, Anguilla, annual
caribstatEccbRow:
value: caribstat/ECCB/central-government-fiscal-accounts/AIA.a#Domestic[2]
summary: ECCB, second row carrying a repeated label
caribstatCbb:
value: caribstat/CBB/exchange-rates-cbob/e3
summary: Central Bank of Barbados, by sheet
- name: country
in: query
schema:
type: string
description: Required for worldbank/* ids. Not used by caribstat/* ids, which carry their geography in the id.
- name: row
in: query
required: false
schema:
type: string
description: Row of a multi-row caribstat table, given without the '#'. In a URL a raw '#' starts a fragment and never reaches the server, so row=Public Sector Debt is the fragment-free spelling of id=...%23Public%20Sector%20Debt. Sending the row both ways, or sending it with a non-caribstat id, is refused with a 400.
- name: latest_only
in: query
schema:
type: boolean
- name: start_year
in: query
schema:
type: integer
- name: end_year
in: query
schema:
type: integer
- name: transform
in: query
schema:
type: string
enum:
- none
- yoy
- pct_change
- index
- name: strict_source
in: query
required: false
schema:
type: boolean
description: 'Reproducibility mode for registry-key ids: never substitute the fallback source. No effect on explicit source-prefixed ids.'
responses:
'200':
description: Series with citation
content:
application/json:
schema:
$ref: '#/components/schemas/SeriesResult'
'400':
$ref: '#/components/responses/BadRequest'
'422':
$ref: '#/components/responses/Unprocessable'
'502':
$ref: '#/components/responses/BadGateway'
'405':
$ref: '#/components/responses/MethodNotAllowed'
tags:
- Series
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_parameter
- invalid_body
- invalid_request
- unknown_endpoint
- method_not_allowed
- unsupported_media_type
- unknown_indicator
- unknown_country
- no_published_data
- out_of_range
- data_gap
- primary_source_unavailable
- upstream_unavailable
- internal_error
description: Stable machine-readable code. Branch on this, not on the message.
message:
type: string
description: What went wrong and what to do instead, written for a person or an agent.
details:
type: object
additionalProperties: true
description: Structured context, e.g. suggestions, available_range, no_published_data, related_series.
SeriesResult:
type: object
properties:
series_id:
type: string
name:
type: string
country:
type: object
properties:
iso3:
type: string
name:
type: string
unit:
type: string
frequency:
type: string
observations:
type: array
items:
type: object
properties:
period:
type: string
value:
type:
- number
- 'null'
note:
type: string
citation:
$ref: '#/components/schemas/Citation'
notes:
type: array
items:
type: string
fallback_used:
type: boolean
description: True when the primary source failed and a fallback source served this result, in which case the value may reflect a different statistical definition. The field is absent on primary-source responses.
fallback_reason:
type: string
enum:
- transient
- definitive
description: 'Present only alongside fallback_used: ''transient'' means a source ranked above the serving one failed temporarily and may serve a different value for the same query once recovered (verify_stat demotes such verifies to cannot_verify); ''definitive'' means the primary permanently lacks this series/country (e.g. Taiwan in WDI), so the fallback is that combination''s stable serving source and verifies are judged normally with disclosure. It is also set when the primary simply has no value for the requested period.'
stale_primary:
type: boolean
description: True when a latest_only request was answered by the primary source with a value more than 3 years behind the current year while the registry lists other sources for the indicator that StatCite did not query. It describes the primary's own horizon and does not claim that another source is more recent. Absent otherwise.
stale_primary_years:
type: number
description: 'Present with stale_primary: the current year minus the year of the value served.'
stale_primary_unqueried:
type: array
items:
type: string
description: 'Present with stale_primary: the other registry sources StatCite did not query for this request, in precedence order.'
limitations:
type: array
description: 'Codes for what this figure is NOT, each read from a structured field of the result or from the indicator registry: projection (values in the source''s estimate/projection period), fallback_source, stale_primary (the primary answered a latest_only request with an old value and the other registry sources it names were left unqueried), modeled_estimate (a published model output), rounded_source (IMF DataMapper WEO values rounded to one decimal), computed_values (a StatCite transform), stale_latest (a latest_only value more than 3 years older than its retrieval year, with the gap) and outturn_unconfirmed (IMF values before the projection boundary StatCite infers, which the IMF data StatCite reads does not mark as outturns or staff estimates). An empty list means none of these conditions was detected. It is not a warranty.'
items:
type: object
properties:
code:
type: string
enum:
- projection
- fallback_source
- stale_primary
- modeled_estimate
- rounded_source
- computed_values
- stale_latest
- outturn_unconfirmed
detail:
type: string
required:
- code
- detail
additionalProperties: false
Citation:
type: object
description: Every numeric payload carries one of these. Reproduce citation_text when presenting the number.
properties:
source:
type: string
dataset:
type: string
series_id:
type: string
series_name:
type: string
source_url:
type: string
api_url:
type: string
license:
type: string
attribution:
type: string
retrieved_at:
type: string
citation_text:
type: string
notices:
type: array
items:
type: string
export_formats:
type: object
description: Ready-to-paste citation strings derived from this citation's own fields, so they can never disagree with citation_text.
properties:
bibtex:
type: string
apa:
type: string
responses:
BadGateway:
description: An upstream statistical source could not be read. error.code is upstream_unavailable and the failure is usually transient, so retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
MethodNotAllowed:
description: Method not supported on this endpoint. The Allow header lists what is.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unprocessable:
description: The request was well formed but cannot be answered, e.g. the source does not publish this series for this economy.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Malformed, missing, unknown or repeated query parameter. The message names the parameter and lists what the route accepts.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'