StatCite Verify API
The Verify API from StatCite — 1 operation(s) for verify.
The Verify API from StatCite — 1 operation(s) for verify.
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-verify-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 Verify 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: Verify
paths:
/v1/verify:
get:
operationId: verifyStat
summary: Verify a claimed figure against the official series
description: Returns verdict match | close | mismatch | cannot_verify with the official value, difference, diagnostics (wrong year, percent-vs-decimal, unit scaling), and the citation for the correct number.
parameters:
- name: indicator
in: query
required: true
schema:
type: string
description: Registry key or explicit series id
- name: country
in: query
schema:
type: string
- name: period
in: query
required: true
schema:
type: string
description: Usually a year, e.g. 2024
- name: value
in: query
required: false
schema:
type: number
description: The claimed value Required unless claimed_value is sent instead. Send exactly one of value or claimed_value.
- name: claimed_value
in: query
required: false
schema:
type: number
description: Alias of value, the name verify_claims and the verify_stat MCP tool use and the name this endpoint returns. Send exactly one of value or claimed_value.
- name: tolerance_abs
in: query
schema:
type: number
- name: tolerance_pct
in: query
schema:
type: number
- name: strict_source
in: query
required: false
schema:
type: boolean
description: Never verify against a fallback source, and return an error instead. Without strict_source, a verify served from a transient-failure fallback returns cannot_verify, with the fallback value as indicative. A fallback for a series the primary source permanently lacks is judged normally, with disclosure.
- name: as_of
in: query
required: false
schema:
type: string
description: 'Historical IMF-vintage verification: judge the claim against the dated IMF WEO edition resolved from this date (e.g. ''2019-04'', ''2019'') instead of today''s live data. Resolution uses a CONSERVATIVE month calendar (editions flip on 1 May and 1 November), not the IMF''s exact release days. So a date late in a release month resolves to the previous edition even if the new one already existed. The response says so, and offers an exact-pinning escape hatch through get_series dated ids. It always verifies against a dated WEO edition, even for indicators whose live primary is World Bank WDI or the IMF Fiscal Monitor (see as_of.source_changed_for_as_of). Recent editions are served from the IMF''s own dated vintage dataflows (api.imf.org) first, with DBnomics''s dated editions as the deep archive, and the citation names which one served. Only the six WEO-dated registry indicators support it (gdp_growth, current_account_gdp, govt_debt_gdp, fiscal_balance_gdp, govt_revenue_gdp, govt_expenditure_gdp). Any other indicator is rejected with advice. Impossible calendar dates are rejected, never normalised.'
responses:
'200':
description: Verdict with citation
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyResult'
'400':
$ref: '#/components/responses/BadRequest'
'422':
$ref: '#/components/responses/Unprocessable'
'502':
$ref: '#/components/responses/BadGateway'
'405':
$ref: '#/components/responses/MethodNotAllowed'
tags:
- Verify
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.
VerifyResult:
type: object
properties:
verdict:
type: string
enum:
- match
- close
- mismatch
- cannot_verify
claimed_value:
type: number
official_value:
type:
- number
- 'null'
is_projection:
type: boolean
description: True when the matched official observation is an IMF WEO/Fiscal Monitor estimate/projection, or a period the ECCB shades as future data, not a final outturn. Kept for compatibility; observation_status carries the finer-grained classification.
observation_status:
type: string
enum:
- actual
- modeled_estimate
- estimate_or_actual
- projection
- unknown
description: The honest status of the matched observation, as one of five values. 'actual' means a series StatCite classifies as outturn data (registry World Bank indicators not flagged as modelled, and explicit worldbank/ WDI ids), subject to routine revision. 'modeled_estimate' (added 1.4.1) means the registry flags the indicator as a modelled series, such as the World Bank's ILO-modelled unemployment and labour force participation estimates. That is a published figure, but a model output rather than a measured outturn. 'estimate_or_actual' means an IMF WEO/Fiscal Monitor observation before the projection boundary. The IMF's true latest-actual year varies by country and is not exposed by the data path, so recent values may be staff estimates, and this should never be read as a confirmed actual. 'projection' means at or after the heuristic boundary, or a period the ECCB shades as future data, which carries status_method as_published. 'unknown' means no observation matched the period, or the series is an explicit id outside StatCite's classification. Arbitrary DBnomics series can be forecast datasets, so consult the source.
status_method:
type: string
enum:
- horizon_heuristic
- as_published
description: 'How observation_status was determined. ''horizon_heuristic'' applies to IMF WEO/Fiscal Monitor series, where the boundary is derived from the response''s own data: the payload''s projection horizon on the DataMapper channel, and the dataset-code vintage year on the DBnomics channel. It is a heuristic, not IMF per-country metadata. ''as_published'' applies otherwise.'
period:
type: string
difference:
type:
- number
- 'null'
relative_difference_pct:
type:
- number
- 'null'
explanation:
type: string
diagnostics:
type: array
items:
type: string
series:
type: object
country:
type: object
citation:
$ref: '#/components/schemas/Citation'
notes:
type: array
items:
type: string
fallback_used:
type: boolean
description: Present and true when the official value came from a fallback source because the primary failed. A transient primary failure demotes the verdict to cannot_verify with the fallback value reported as indicative (a substitute source can differ by definition or vintage far beyond the verdict bands, and the primary may recover and serve a different number); when the primary permanently lacks the series/country, the fallback is the stable serving source and the verdict is judged normally with disclosure. Absent otherwise.
as_of:
type: object
description: 'Present only when the as_of parameter was used, and absent otherwise. It marks historical IMF-VINTAGE verification: the verdict was checked against a dated IMF WEO edition, not today''s live data.'
properties:
requested:
type: string
description: The as_of date as passed by the caller.
resolved_vintage:
type: string
description: The IMF WEO edition (YYYY-MM) resolved from it.
resolution:
type: string
enum:
- conservative_month_calendar
description: 'How the vintage was resolved: with a conservative month calendar (editions flip on 1 May and 1 November), NOT the IMF''s exact release days. So a date late in a release month resolves to the previous edition even if the new one had already been published. A note discloses this for dates inside release months.'
verification_scope:
type: string
enum:
- imf_weo_historical_vintage
description: 'What was verified against: the IMF WEO historical archive, the only dated-vintage source this server has.'
normal_primary_source:
type: string
description: The source the live (non-as_of) path serves this indicator from first (e.g. 'World Bank WDI', 'IMF Fiscal Monitor (via the DataMapper API)').
source_changed_for_as_of:
type: boolean
description: True when the live primary differs from the WEO archive by source or IMF database. A claim originally made from the live primary can then legitimately differ from the WEO edition for methodological reasons, not only because of revisions.
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'