reference_data
Countries
The countries endpoint provides a comprehensive list of countries, including their ISO codes, official names, capitals, and currencies. This data is essential for applications requiring accurate country information for tasks such as localization, currency conversion, or geographic analysis.
get/countries
Request
- Base URLhttps://api.twelvedata.com
- Auth
- API key in header Authorization
- or API key in query parameter apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Example response
{
"data": [
{
"iso2": "US",
"iso3": "USA",
"numeric": "840",
"name": "United States",
"official_name": "United States of America",
"capital": "Washington D.C.",
"currency": "USD"
}
]
}Changes
No operation changes recorded.