Documentation

Everything you need to integrate economic data into your app. Get your first response in under 60 seconds.

Don't have an API key yet? It's free.

Get Free API Key

Quick Start

Sign up on RapidAPI

Create a free account at RapidAPI and subscribe to EconTrack. Your API key will be generated instantly.

Go to RapidAPI →

Make your first request

curl
curl "https://econ.econtrack.xyz/calendar?impact=high" \
  -H "X-API-Key: YOUR_API_KEY"

Parse the response

Returns a clean JSON array of economic events with actual, forecast, and previous values. Build your app.

JSON Response
{
  "events": [
    {
      "id": "us-cpi-2026-06",
      "name": "US CPI (YoY)",
      "country": "United States",
      "currency": "USD",
      "date": "2026-06-12",
      "impact": "high",
      "actual": "2.4%",
      "forecast": "2.3%",
      "previous": "2.5%",
      "source": "BLS",
      "category": "Inflation"
    }
  ],
  "count": 1
}

Authentication

All requests require an API key passed via the X-API-Key header. Subscribe on RapidAPI to get your key.

Header
X-API-Key: YOUR_API_KEY

RapidAPI Header (alternative)

If calling through RapidAPI directly, use their standard headers instead:

Header
X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
X-RapidAPI-Host: econ.econtrack.xyz

Base URL

Base URL
https://econ.econtrack.xyz
GET /calendar

Retrieve economic events with flexible filtering by date range, country, impact level, and category.

Parameters

NameTypeRequiredDefaultExample
startstringNotoday2026-06-01
endstringNotoday + 30d2026-06-30
countrystringNoallUS
impactstringNoallhigh
categorystringNoallInflation
limitintegerNo5010

Example Request

curl
curl "https://econ.econtrack.xyz/calendar?impact=high&country=US&limit=3" \
  -H "X-API-Key: YOUR_API_KEY"
GET /calendar/realtime

Events happening right now or within the next 24 hours that have just received actual data. Ideal for live dashboards and alerts.

NameTypeRequiredDefault
impactstringNoall
GET /calendar/history

Historical economic events with actual vs. forecast data. Useful for backtesting trading strategies and trend analysis.

NameTypeRequiredDefaultExample
daysintegerNo3090
countrystringNoallUS
impactstringNoallhigh
GET /calendar/upcoming

Future scheduled economic events with forecast data. Perfect for event-countdown features and planning tools.

NameTypeRequiredDefault
daysintegerNo14
impactstringNoall
limitintegerNo20
GET /events/{id}

Retrieve a single economic event by its unique ID.

NameTypeRequiredExample
idstringYesus-nfp-2026-06
Example
curl "https://econ.econtrack.xyz/events/us-nfp-2026-06" \
  -H "X-API-Key: YOUR_API_KEY"
GET /countries

List all supported countries with available data sources.

Example
curl "https://econ.econtrack.xyz/countries" \
  -H "X-API-Key: YOUR_API_KEY"

Response Schema

All event objects in API responses follow this structure:

FieldTypeDescriptionExample
idstringUnique event identifierus-cpi-2026-06
namestringHuman-readable event nameUS CPI (YoY)
countrystringCountry nameUnited States
currencystringCurrency codeUSD
datestringEvent date (ISO 8601)2026-06-12
timestringEvent time (if known)08:30
impactstringImpact levelhigh | medium | low
actualstringPublished actual value2.4%
forecaststringMarket forecast2.3%
previousstringPrevious release value2.5%
sourcestringData sourceBLS
categorystringEvent categoryInflation
has_forecastbooleanWhether forecast data existstrue
exact_time_knownbooleanWhether exact time is knowntrue
updated_atstringLast update timestamp (ISO 8601)2026-06-12T08:31:00Z

Error Codes

CodeMeaning
200Success
400Bad request — invalid parameters
401Unauthorized — missing or invalid API key
404Event not found
429Rate limit exceeded
500Server error

Rate Limits

TierRequests/HourDaily Limit
Free10
Basic100
Pro1,000
EnterpriseUnlimited

Rate Limit Headers

Every response includes these headers so you can manage your quota:

HeaderDescriptionExample
X-RateLimit-LimitMax requests allowed per hour100
X-RateLimit-RemainingRequests remaining in current window87
X-RateLimit-ResetUTC epoch time when window resets1750000000

Code Examples

Full working examples for the /calendar endpoint.

curl
Python
JavaScript
PHP
curl
curl "https://econ.econtrack.xyz/calendar?impact=high&limit=10" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://econ.econtrack.xyz/calendar"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {"impact": "high", "limit": 10}

resp = requests.get(url, headers=headers, params=params)
data = resp.json()

for event in data["events"]:
    print(f"{event['date']} | {event['name']} | {event['forecast']}")
JavaScript
const resp = await fetch(
  "https://econ.econtrack.xyz/calendar?impact=high&limit=10",
  { headers: { "X-API-Key": "YOUR_API_KEY" } }
);
const data = await resp.json();

data.events.forEach(e => {
  console.log(`${e.date} | ${e.name} | ${e.forecast}`);
});
PHP
$url = "https://econ.econtrack.xyz/calendar?impact=high&limit=10";
$opts = [
  "http" => [
    "header" => "X-API-Key: YOUR_API_KEY"
  ]
];
$ctx = stream_context_create($opts);
$resp = file_get_contents($url, false, $ctx);
$data = json_decode($resp, true);

foreach ($data["events"] as $e) {
  echo $e["date"] . " | " . $e["name"] . " | " . $e["forecast"] . "\n";
}