Vextorium Countries API
The countries API from Vextorium — 2 operation(s) for countries.
The countries API from Vextorium — 2 operation(s) for countries.
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/vextorium-com:vextorium-com-countries-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: Vextorium Com Countries API
version: 1.0.0
contact:
email: bru1noia@gmail.com
url: https://vextorium.com
x-guidance: 'Start here by task: crypto prices → /v1/crypto-price, /v1/crypto-convert and /v1/portfolio-valuation; compliance / KYB → /v1/sanctions-screening, /v1/wallet-sanctions-check, /v1/lei-search and /v1/eu-vat-vies; macro → /v1/economic-calendar, /v1/fed-rates, /v1/us-treasury-yield-curve and /v1/ecb-interest-rates; US companies → /v1/company-fundamentals and /v1/company-filings. Full workflows: https://api.vextorium.com/llms.txt. Every operation is a POST with a JSON body (see each requestBody example). The first call returns HTTP 402 with the x402 v2 challenge; pay in USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger and retry the same request. The same 402 response also carries an MPP challenge (WWW-Authenticate: Payment, method="tempo", intent="charge") for the same price in USDC.e or OUSD on Tempo mainnet (chain 4217). Pay with any MPP client, such as the mppx SDK, and retry with Authorization: Payment; the receipt comes in the Payment-Receipt header. Only pull mode (signed transaction) is accepted, and it is broadcast only if the call succeeds. Only successful (200) responses are charged; invalid input (4xx) or an unavailable upstream source (5xx) is never charged. Machine-readable catalog with real example outputs: https://api.vextorium.com/catalog.json. MCP server: https://api.vextorium.com/mcp'
description: 'Operations tagged countries across 2 of this provider''s published API definitions: vextorium-openapi.json, vextorium-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.vextorium.com
tags:
- name: Countries
paths:
/v1/country-rankings:
post:
operationId: v1/country_rankings
summary: World country rankings
description: World ranking of countries by a World Bank indicator (GDP, GDP per capita, growth, inflation, population, unemployment, public debt, life expectancy, CO2 per capita, renewables, FDI...), latest value of each country from the last 5 years.
tags:
- Countries
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
indicator:
type: string
description: gdp_usd, gdp_per_capita_usd, gdp_growth_pct, inflation_pct, population, unemployment_pct, public_debt_pct_gdp, life_expectancy, co2_per_capita_t, renewables_pct_energy...
limit:
type: integer
description: Countries (1-250, default 20)
minimum: 1
maximum: 250
default: 20
order:
type: string
enum:
- largest
- smallest
required: []
example:
indicator: gdp_per_capita_usd
limit: 10
responses:
'200':
description: JSON result (charged only on success). If the data source is down but the data we hold is still current (before the source's next update), the result also carries data_as_of and data_valid_until (ISO 8601, UTC).
content:
application/json:
schema:
type: object
properties:
indicator:
type:
- string
- 'null'
world_bank_code:
type:
- string
- 'null'
countries:
type:
- number
- 'null'
order:
type:
- string
- 'null'
ranking:
type:
- array
- 'null'
items:
type:
- 'null'
- object
properties:
country:
type:
- 'null'
- string
name:
type:
- 'null'
- string
year:
type:
- 'null'
- number
value:
type:
- 'null'
- number
position:
type:
- 'null'
- number
source:
type:
- string
- 'null'
example:
indicator: gdp_per_capita_usd
world_bank_code: NY.GDP.PCAP.CD
countries: 210
order: largest
ranking:
- country: MCO
name: Monaco
year: 2024
value: 288001.575
position: 1
- country: LIE
name: Liechtenstein
year: 2024
value: 220167.225
position: 2
source: World Bank, World Development Indicators (CC BY 4.0)
'402':
description: 'Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header (USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger); MPP challenge (tempo/charge, USDC.e or OUSD on Tempo) in the WWW-Authenticate header'
'404':
description: No data for this query (not charged)
'422':
description: Invalid input (not charged)
'503':
description: Data source unavailable and no current data held; retry later (not charged)
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
'504':
description: Data source too slow; retry later (not charged)
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.004000'
protocols:
- x402:
version: 2
networks:
- Base
- Solana
- XRPL (RLUSD)
- XRPL (XRP)
- Stellar
- Polygon
- Optimism (Circle Gateway)
- Arc (Circle Gateway)
asset: USDC
- mpp:
method: tempo
intent: charge
network: tempo:4217
asset: USDC.e or OUSD
offers:
- amount: '4000'
currency: '0x20C000000000000000000000b9537d11c60E8b50'
description: Vextorium /v1/country-rankings
intent: charge
method: tempo
- amount: '4000'
currency: '0x20c0000000000000000000006a37DA5C996874BE'
description: Vextorium /v1/country-rankings
intent: charge
method: tempo
servers:
- url: https://api.vextorium.com
/v1/country-info:
post:
operationId: v1/country_info
summary: Country profile
description: 'Country profile: name, ISO codes, capital and its coordinates, region, income level, phone prefix, time zones and latest population and GDP per capita. World Bank and libphonenumber data.'
tags:
- Countries
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
country:
type: string
description: ISO 2 or 3-letter code
required:
- country
example:
country: ES
responses:
'200':
description: JSON result (charged only on success). If the data source is down but the data we hold is still current (before the source's next update), the result also carries data_as_of and data_valid_until (ISO 8601, UTC).
content:
application/json:
schema:
type: object
properties:
name:
type:
- string
- 'null'
iso2:
type:
- string
- 'null'
iso3:
type:
- string
- 'null'
capital:
type:
- string
- 'null'
capital_coordinates:
type:
- object
- 'null'
properties:
lat:
type:
- number
- 'null'
lon:
type:
- number
- 'null'
region:
type:
- string
- 'null'
income_level:
type:
- string
- 'null'
phone_prefix:
type:
- string
- 'null'
timezones:
type:
- array
- 'null'
items:
type:
- 'null'
- string
population:
type:
- object
- 'null'
properties:
year:
type:
- number
- 'null'
value:
type:
- number
- 'null'
per_capita_gdp_usd:
type:
- object
- 'null'
properties:
year:
type:
- number
- 'null'
value:
type:
- number
- 'null'
source:
type:
- string
- 'null'
data_as_of:
type:
- string
- 'null'
data_valid_until:
type:
- string
- 'null'
example:
name: Spain
iso2: ES
iso3: ESP
capital: Madrid
capital_coordinates:
lat: 40.4167
lon: -3.70327
region: Europe & Central Asia
income_level: High income
phone_prefix: '+34'
timezones:
- Europe/Madrid
population:
year: 2025
value: 49355143
per_capita_gdp_usd:
year: 2025
value: 38627.25
source: World Bank (CC BY 4.0) and libphonenumber
'402':
description: 'Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header (USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger); MPP challenge (tempo/charge, USDC.e or OUSD on Tempo) in the WWW-Authenticate header'
'404':
description: No data for this query (not charged)
'422':
description: Invalid input (not charged)
'503':
description: Data source unavailable and no current data held; retry later (not charged)
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
'504':
description: Data source too slow; retry later (not charged)
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.005000'
protocols:
- x402:
version: 2
networks:
- Base
- Solana
- XRPL (RLUSD)
- XRPL (XRP)
- Stellar
- Polygon
- Optimism (Circle Gateway)
- Arc (Circle Gateway)
asset: USDC
- mpp:
method: tempo
intent: charge
network: tempo:4217
asset: USDC.e or OUSD
offers:
- amount: '5000'
currency: '0x20C000000000000000000000b9537d11c60E8b50'
description: Vextorium /v1/country-info
intent: charge
method: tempo
- amount: '5000'
currency: '0x20c0000000000000000000006a37DA5C996874BE'
description: Vextorium /v1/country-info
intent: charge
method: tempo
servers:
- url: https://api.vextorium.com
x-refined-from:
- vextorium-openapi.json
- vextorium-com-openapi.json
x-service-info:
docs:
homepage: https://vextorium.com
llms: https://api.vextorium.com/llms.txt
apiReference: https://api.vextorium.com/openapi.json
x-provenance:
method: harvested
publisher: Vextorium
source: https://vextorium.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)