cURL
curl --request GET \ --url https://openapi.ainvest.com/open/calendar/economics \ --header 'Authorization: Bearer <token>'
{ "data": { "data": [ { "index": "<string>", "importance": 1, "actual": "<string>", "forecast": "<string>", "previous": "<string>" } ] }, "status_code": 123, "status_msg": "<string>" }
Get economic events (e.g. GDP releases, employment reports) on the specified date.
Bearer authentication header of the form Bearer <token>, where <token> is your key. Get the key here
Bearer <token>
<token>
The date for which to get the data, format YYYY-MM-DD
Successful response in standard envelope
Show child attributes
A list of economic events scheduled on the specified date
Event name, e.g. "EIA Distillate Fuel Production", "Building Permits", etc.
Event importance, from 1 (low) to 3 (high)
1
2
3
Actual value reported
Forecasted value before the release report
Previous value reported
Status code, 0 for success
0
Status message, success for success
success