curl --request GET \
--url https://api-v2.hayinsights.com/openapi/v1/calendar/events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api-v2.hayinsights.com/openapi/v1/calendar/events"
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-v2.hayinsights.com/openapi/v1/calendar/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.hayinsights.com/openapi/v1/calendar/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-v2.hayinsights.com/openapi/v1/calendar/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-v2.hayinsights.com/openapi/v1/calendar/events")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-v2.hayinsights.com/openapi/v1/calendar/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"data": {
"total": 150,
"returned": 2,
"offset": 0,
"items": [
{
"id": "48213",
"date": "2026-09-17",
"time": "14:30:00",
"timezone": "America/New_York",
"timezoneLabel": "ET",
"country": "us",
"category": "economic",
"assetClass": null,
"title": "CPI (YoY)",
"titleLocal": null,
"description": "Consumer price index, year over year.",
"impact": "high",
"actual": null,
"forecast": 3.1,
"previous": 3.2,
"unit": "percent",
"actualText": null,
"forecastText": "3.1%",
"previousText": "3.2%",
"symbols": [],
"subgroup": null,
"source": "investing.com",
"sourceUrl": "https://www.investing.com/economic-calendar/cpi-733"
},
{
"id": "48377",
"date": "2026-09-21",
"time": null,
"timezone": "Asia/Tokyo",
"timezoneLabel": "JST",
"country": "jp",
"category": "holiday",
"assetClass": null,
"title": "Respect for the Aged Day",
"titleLocal": "敬老の日",
"description": null,
"impact": "low",
"actual": null,
"forecast": null,
"previous": null,
"unit": null,
"actualText": null,
"forecastText": null,
"previousText": null,
"symbols": [],
"subgroup": null,
"source": "jpx",
"sourceUrl": null
}
]
},
"meta": {
"timestamp": "2026-09-16T08:50:42.507Z"
}
}{
"success": false,
"statusCode": 400,
"error": {
"code": "INTERNAL_ERROR",
"message": [
"Invalid type parameter. Must be \"gdp\", \"cpi\", \"pce\", or \"import-export\"",
"Type parameter is required"
]
},
"meta": {
"error": "Bad Request",
"statusCode": 400,
"timestamp": "2026-06-19T08:34:08.081Z"
}
}{
"success": false,
"statusCode": 401,
"error": {
"code": "API_KEY_INVALID",
"message": "Invalid API key"
},
"meta": {
"timestamp": "2026-06-19T08:34:08.023Z"
}
}{
"success": false,
"statusCode": 403,
"error": {
"code": "FEATURE_NOT_IN_PLAN",
"message": "Your plan does not include this feature"
},
"meta": {
"timestamp": "2026-06-19T08:34:08.100Z"
}
}{
"success": false,
"statusCode": 429,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded"
},
"meta": {
"timestamp": "2026-06-19T08:34:09.000Z"
}
}{
"success": false,
"statusCode": 500,
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
},
"meta": {
"timestamp": "2026-06-19T08:34:10.000Z"
}
}Economic calendar events
Scheduled economic events in a date range — rate decisions, CPI and GDP releases,
holidays. Defaults to the next 30 days when from / to are omitted. Filter by
country (us, jp, vn, …) and impact (high, medium, low) to keep a daily briefing
to the events that move markets. Filters accept a comma-separated list. The
response reports total, so page with offset when there is more than one page.
curl --request GET \
--url https://api-v2.hayinsights.com/openapi/v1/calendar/events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api-v2.hayinsights.com/openapi/v1/calendar/events"
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-v2.hayinsights.com/openapi/v1/calendar/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.hayinsights.com/openapi/v1/calendar/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-v2.hayinsights.com/openapi/v1/calendar/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-v2.hayinsights.com/openapi/v1/calendar/events")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-v2.hayinsights.com/openapi/v1/calendar/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"data": {
"total": 150,
"returned": 2,
"offset": 0,
"items": [
{
"id": "48213",
"date": "2026-09-17",
"time": "14:30:00",
"timezone": "America/New_York",
"timezoneLabel": "ET",
"country": "us",
"category": "economic",
"assetClass": null,
"title": "CPI (YoY)",
"titleLocal": null,
"description": "Consumer price index, year over year.",
"impact": "high",
"actual": null,
"forecast": 3.1,
"previous": 3.2,
"unit": "percent",
"actualText": null,
"forecastText": "3.1%",
"previousText": "3.2%",
"symbols": [],
"subgroup": null,
"source": "investing.com",
"sourceUrl": "https://www.investing.com/economic-calendar/cpi-733"
},
{
"id": "48377",
"date": "2026-09-21",
"time": null,
"timezone": "Asia/Tokyo",
"timezoneLabel": "JST",
"country": "jp",
"category": "holiday",
"assetClass": null,
"title": "Respect for the Aged Day",
"titleLocal": "敬老の日",
"description": null,
"impact": "low",
"actual": null,
"forecast": null,
"previous": null,
"unit": null,
"actualText": null,
"forecastText": null,
"previousText": null,
"symbols": [],
"subgroup": null,
"source": "jpx",
"sourceUrl": null
}
]
},
"meta": {
"timestamp": "2026-09-16T08:50:42.507Z"
}
}{
"success": false,
"statusCode": 400,
"error": {
"code": "INTERNAL_ERROR",
"message": [
"Invalid type parameter. Must be \"gdp\", \"cpi\", \"pce\", or \"import-export\"",
"Type parameter is required"
]
},
"meta": {
"error": "Bad Request",
"statusCode": 400,
"timestamp": "2026-06-19T08:34:08.081Z"
}
}{
"success": false,
"statusCode": 401,
"error": {
"code": "API_KEY_INVALID",
"message": "Invalid API key"
},
"meta": {
"timestamp": "2026-06-19T08:34:08.023Z"
}
}{
"success": false,
"statusCode": 403,
"error": {
"code": "FEATURE_NOT_IN_PLAN",
"message": "Your plan does not include this feature"
},
"meta": {
"timestamp": "2026-06-19T08:34:08.100Z"
}
}{
"success": false,
"statusCode": 429,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded"
},
"meta": {
"timestamp": "2026-06-19T08:34:09.000Z"
}
}{
"success": false,
"statusCode": 500,
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
},
"meta": {
"timestamp": "2026-06-19T08:34:10.000Z"
}
}Authorizations
Your HayInsights API key (prefixed apk_). Create and manage keys in the
HayInsights dashboard (Account → API keys).
Send it in the X-API-Key header on every request to /openapi/v1/*.
Which data domains you may access and your request quota are both governed by
the subscription plan attached to the key — see the Plans & features and
Rate limits guides.
Query Parameters
Start date, YYYY-MM-DD.
"2026-09-01"
End date, YYYY-MM-DD.
"2026-09-30"
Filter by country. Comma-separated, e.g. us,jp,vn. An unrecognised value
yields an empty list rather than every event.
global, us, jp, vn, eu, gb, au, ca, nz, cn, ch Filter by event type. Comma-separated.
| Value | Description |
|---|---|
holiday | Market holidays |
economic | Macroeconomic releases |
asset | Asset-level events (dividends, rebalances) |
holiday, economic, asset Filter by asset class. Comma-separated.
stock, etf, bond, crypto, commodity, fx Filter by expected market impact. Comma-separated.
high, medium, low Search the event title, local name, or tag.
"CPI"
Include global events alongside the countries selected.
IANA timezone the event times are rendered in.
"Asia/Tokyo"
Preset filter bundle.
global Events to return.
1 <= x <= 50Events to skip, for paging.
x >= 0Response
One page of calendar events.
Standard success envelope shared by every endpoint. Each operation's response
wrapper extends this (via allOf) and adds a typed data property.
Always true for a successful response.
true
Mirrors the HTTP status code.
200
One page of events. total counts every event matching the filters, so a
caller told "150 events, 20 returned" can reach the rest with offset.
Show child attributes
Show child attributes
Response metadata. Always present; timestamp is the server time the response was generated.
Show child attributes
Show child attributes