List economic calendar countries
curl --request GET \
--url https://api.darvas.app/v1/macro/economic-calendar/countries \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/economic-calendar/countries"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/economic-calendar/countries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"countries": [
{
"country_code": 840,
"country_iso2": "US",
"country_name": "United States",
"release_count": 1450,
"currencies": [
"USD"
]
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Economic Calendar
Economic Calendar Countries & ISO Codes API
List every country code and region filter supported by the Global Economic Calendar API before querying scheduled macroeconomic event releases.
List economic calendar countries
curl --request GET \
--url https://api.darvas.app/v1/macro/economic-calendar/countries \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/economic-calendar/countries"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/economic-calendar/countries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"countries": [
{
"country_code": 840,
"country_iso2": "US",
"country_name": "United States",
"release_count": 1450,
"currencies": [
"USD"
]
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint lists the countries the Economic Calendar covers, in order of numeric country code, each with the currencies its releases affect and how many releases Darvas holds for it. Read it once to see coverage and to build thecurrencies filter for a country.
| Coverage | Details |
|---|---|
| Countries | Every country with at least one stored release |
| Fields | country_code (numeric ISO code, such as 840 for the United States), country_name, release_count, currencies |
| Release count | Stored past and scheduled releases together |
| Parameters | None; one response holds every country |
| MCP tool | list_economic_calendar_countries on the data API MCP server |
Usage
Pass a country’s numericcountry_code, ISO alpha-2 code or name as country, or pass its currencies as currencies on /macro/economic-calendar. Countries that share a currency, such as euro area members, all match a currencies filter, while each calendar row carries its own country_code, country_iso2 and country_name.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
base = "https://api.darvas.app/v1/macro"
countries = requests.get(f"{base}/economic-calendar/countries", headers=headers).json()["countries"]
for c in sorted(countries, key=lambda c: c["release_count"], reverse=True)[:10]:
print(c["country_code"], c["country_name"], c["release_count"], c["currencies"])
# Japan (ISO 392) releases in the default window, 7 days back to 14 days ahead.
japan = next(c for c in countries if c["country_code"] == 392)
releases = requests.get(
f"{base}/economic-calendar",
headers=headers,
params={"currencies": ",".join(japan["currencies"]), "importance": "high,medium"},
).json()["economic_calendar"]
print([(r["release_at"], r["event_name"]) for r in releases if r["country_code"] == japan["country_code"]])
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/macro/economic-calendar/countries"
Authorizations
apiKeybearerKey