Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Statistics of the World Pro API
description: REST API for global statistics. Every tier retains the 335-indicator public read catalog for 218 countries. Paid keys add higher request limits; bulk redistribution remains limited to source-cleared datasets, including the 281-indicator reviewed World Bank bundle. See https://statisticsoftheworld.com/pricing.
version: 2.9.0
contact:
name: Statistics of the World
url: https://statisticsoftheworld.com
email: api@statisticsoftheworld.com
servers:
- url: https://statisticsoftheworld.com
description: Production
security:
- {}
- ApiKeyAuth: []
tags:
- name: Pro
paths:
/api/pro/dataset:
get:
operationId: downloadPaidDataset
summary: Reviewed paid bulk downloads and entitlement check
security:
- ApiKeyAuth: []
description: 'A key is required; file downloads require an active eligible paid tier. Forecast CSV contains numeric rows from the stored IMF six-subject scope. Its eight-column schema is source,vintage,country_iso3,indicator_id,target_year,horizon,value,source_unit_code. country_iso3 retains source codes, including non-ISO3 UVK/WBG. horizon is target year minus publication-round year, not observed/forecast status. No numeric scaling is applied. Null-value rows are omitted and counted in a response header. Match the generation identifier when pairing a forecast dictionary with a separate CSV download; it fingerprints the complete chunk manifest, not immutable publisher files or the whole CSV. A later chunk failure aborts the body stream: discard incomplete downloads.'
parameters:
- name: file
in: query
schema:
type: string
enum:
- latest
- dictionary
- countries
- calendar
- license
- forecast-revisions
- forecast-dictionary
- forecast-license
description: Omit to check entitlement.
responses:
'200':
description: Entitlement JSON or selected attachment. Forecast CSV headers carry generation, database-read time and missing-value count. Source terms and attribution apply.
'400':
description: Unknown file.
'401':
description: Missing, invalid or inactive key.
'403':
description: Key lacks an eligible active subscription.
'429':
description: Download limit reached.
'500':
description: Subscription verification or an unexpected download operation failed.
'503':
description: Forecast manifest/first chunk or another required data read failed before streaming began.
tags:
- Pro
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Optional. Without a key, requests are limited to 1,000/day per IP. A free key adds a usage dashboard. Paid keys increase throughput without removing public sources. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-RateLimit-Tier headers.