Skip to main content
POST
/
api
/
tradingeconomics
/
calendar
/tradingeconomics/calendar
curl --request POST \
  --url https://api.anysite.io/api/tradingeconomics/calendar \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "country": "united-states"
}
'
[
  {
    "event": "<string>",
    "@type": "@trading_economics_calendar_event",
    "id": 123,
    "date": "<string>",
    "time": "<string>",
    "country": "<string>",
    "country_slug": "<string>",
    "category": "<string>",
    "reference": "<string>",
    "actual": 123,
    "previous": 123,
    "consensus": 123,
    "forecast": 123,
    "importance": "<string>",
    "symbol": "<string>",
    "url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of events to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
country
string | null

Restrict to a single country by its slug

Example:

"united-states"

importance
enum<string> | null

Restrict to events of at least this importance level

Available options:
low,
medium,
high

Response

Successful Response

event
string
required
@type
string
default:@trading_economics_calendar_event
id
integer | null
date
string | null
time
string | null
country
string | null
country_slug
string | null
category
string | null
reference
string | null
actual
number | null
previous
number | null
consensus
number | null
forecast
number | null
importance
string | null
symbol
string | null
url
string | null