MacroSignal API Documentation
You need an API key to use the API (Get an API Key),
Quick start
Authenticate using your API key in the Authorization header:
curl -H "Authorization: Bearer <YOUR_KEY>" https://api.macrosignal.com/v1/events/next
API endpoints
GET /v1/events
List events. Query params: country, window_days (default 7).
curl -H "Authorization: Bearer <YOUR_KEY>" \
"https://api.macrosignal.com/v1/events?country=US&window_days=7"
import requests
API_KEY = "<YOUR_KEY>"
resp = requests.get(
"https://api.macrosignal.com/v1/events",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"country": "US", "window_days": 7},
)
resp.raise_for_status()
data = resp.json()
print(data["events_count"], "events returned")
const API_KEY = "<YOUR_KEY>";
const url = new URL("https://api.macrosignal.com/v1/events");
url.searchParams.set("country", "US");
url.searchParams.set("window_days", "7");
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log(`${data.events_count} events returned`);
use reqwest::blocking::Client;
use serde_json::Value;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let api_key = "<YOUR_KEY>";
let data: Value = Client::new()
.get("https://api.macrosignal.com/v1/events")
.header("Authorization", format!("Bearer {}", api_key))
.query(&[("country", "US"), ("window_days", "7")])
.send()?
.error_for_status()?
.json()?;
println!("{} events returned", data["events_count"]);
Ok(())
}
Sample snippet of the response payload. Two releases from the seven-day window are shown, and events_count matches this snippet:
{
"cached": false,
"country": "US",
"window_days": 7,
"generated_at": "2026-11-03T23:04:21.402452+00:00",
"events_count": 2,
"events": [
{
"event_definition_id": "lmi:logistics_managers_index",
"event_definition_name": "LMI Logistics Managers Index",
"event_instance_id": "lmi:logistics_managers_index:2026-10-01",
"event_instance_name": "LMI Logistics Managers Index",
"country": "US",
"category": "supply_chain",
"importance": "medium",
"event_release": "2026-11-03T11:00:00+00:00",
"timezone": "America/New_York",
"reference": "monthly_diffusion_index",
"reference_date": "2026-10-01",
"previous_value": 70.2,
"actual_value": 70.7,
"source": "Logistics Managers' Index",
"status": "released"
},
{
"event_definition_id": "bls:nonfarm_payrolls",
"event_definition_name": "Nonfarm Payrolls",
"event_instance_id": "bls:nonfarm_payrolls:2026-10-01",
"event_instance_name": "Nonfarm Payrolls",
"country": "US",
"currency": "USD",
"category": "labor",
"importance": "high",
"event_release": "2026-11-06T13:30:00+00:00",
"timezone": "America/New_York",
"reference": "Employment Situation",
"reference_date": "2026-10-01",
"previous_value": 29.0,
"actual_value": null,
"source": "Bureau of Labor Statistics release calendar",
"status": "scheduled"
}
]
}
Errors
| Status | Meaning |
|---|---|
200 OK | Events returned successfully. |
400 Bad Request | Malformed request — for example, a non-integer window_days or otherwise invalid query parameters. |
403 Forbidden | No API key was provided in the Authorization: Bearer header (the response message is “Missing API key.”), the key is unknown or revoked, or the free plan has no credits remaining. Upgrade your plan to continue. |
429 Too Many Requests | Rate limit exceeded for your plan. The response includes a Retry-After header and retry_after_seconds field indicating when to retry. |
503 Service Unavailable | Authentication backend is temporarily unreachable. Retry after a short backoff. |
GET /v1/events/next
next_event is the earliest scheduled event of any importance. minutes_until_next_high_impact_event is the minutes until the next high-importance release, which may be a later event. Query param: country (optional).
curl -H "Authorization: Bearer <YOUR_KEY>" \
"https://api.macrosignal.com/v1/events/next?country=US"
import requests
API_KEY = "<YOUR_KEY>"
resp = requests.get(
"https://api.macrosignal.com/v1/events/next",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"country": "US"},
)
resp.raise_for_status()
data = resp.json()
print(data["minutes_until_next_high_impact_event"], "minutes until next high-impact event")
const API_KEY = "<YOUR_KEY>";
const url = new URL("https://api.macrosignal.com/v1/events/next");
url.searchParams.set("country", "US");
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log(`${data.minutes_until_next_high_impact_event} minutes until next high-impact event`);
use reqwest::blocking::Client;
use serde_json::Value;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let api_key = "<YOUR_KEY>";
let data: Value = Client::new()
.get("https://api.macrosignal.com/v1/events/next")
.header("Authorization", format!("Bearer {}", api_key))
.query(&[("country", "US")])
.send()?
.error_for_status()?
.json()?;
println!(
"{} minutes until next high-impact event",
data["minutes_until_next_high_impact_event"]
);
Ok(())
}
Sample response:
{
"country": "US",
"events_count": 2,
"minutes_until_next_high_impact_event": 3745,
"next_event": {
"event_definition_id": "mba:30_year_mortgage_rate",
"event_definition_name": "MBA 30-Year Mortgage Rate",
"event_instance_id": "mba:30_year_mortgage_rate:2026-10-30",
"event_instance_name": "MBA 30-Year Mortgage Rate",
"country": "US",
"category": "housing",
"importance": "medium",
"event_release": "2026-11-04T12:00:00+00:00",
"timezone": "America/New_York",
"reference": "mba_weekly_mortgage_series",
"reference_date": "2026-10-30",
"previous_value": 7.37,
"actual_value": null,
"source": "Mortgage Bankers Association Weekly Applications Survey",
"status": "scheduled"
},
"next_events": [
{
"event_definition_id": "mba:30_year_mortgage_rate",
"event_definition_name": "MBA 30-Year Mortgage Rate",
"event_instance_id": "mba:30_year_mortgage_rate:2026-10-30",
"event_instance_name": "MBA 30-Year Mortgage Rate",
"country": "US",
"category": "housing",
"importance": "medium",
"event_release": "2026-11-04T12:00:00+00:00",
"timezone": "America/New_York",
"reference": "mba_weekly_mortgage_series",
"reference_date": "2026-10-30",
"previous_value": 7.37,
"actual_value": null,
"source": "Mortgage Bankers Association Weekly Applications Survey",
"status": "scheduled"
},
{
"event_definition_id": "mba:mortgage_applications",
"event_definition_name": "MBA Mortgage Applications",
"event_instance_id": "mba:mortgage_applications:2026-10-30",
"event_instance_name": "MBA Mortgage Applications",
"country": "US",
"category": "housing",
"importance": "medium",
"event_release": "2026-11-04T12:00:00+00:00",
"timezone": "America/New_York",
"reference": "mba_weekly_mortgage_series",
"reference_date": "2026-10-30",
"previous_value": 3.4,
"actual_value": null,
"source": "Mortgage Bankers Association Weekly Applications Survey",
"status": "scheduled"
}
]
}
Errors
| Status | Meaning |
|---|---|
200 OK | Earliest scheduled event returned successfully. |
400 Bad Request | Malformed request — for example, an invalid country value or otherwise malformed query parameters. |
403 Forbidden | No API key was provided in the Authorization: Bearer header (the response message is “Missing API key.”), the key is unknown or revoked, or the free plan has no credits remaining. Upgrade your plan to continue. |
429 Too Many Requests | Rate limit exceeded for your plan. The response includes a Retry-After header and retry_after_seconds field indicating when to retry. |
503 Service Unavailable | Authentication backend is temporarily unreachable. Retry after a short backoff. |
GET /v1/events/impact_today
Returns events whose release date is today in UTC.
curl -H "Authorization: Bearer <YOUR_KEY>" \
"https://api.macrosignal.com/v1/events/impact_today?country=US"
import requests
API_KEY = "<YOUR_KEY>"
resp = requests.get(
"https://api.macrosignal.com/v1/events/impact_today",
headers={"Authorization": f"Bearer {API_KEY}"},
params={"country": "US"},
)
resp.raise_for_status()
data = resp.json()
print(len(data["events"]), "events returned")
const API_KEY = "<YOUR_KEY>";
const url = new URL("https://api.macrosignal.com/v1/events/impact_today");
url.searchParams.set("country", "US");
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log(`${data.events.length} events returned`);
use reqwest::blocking::Client;
use serde_json::Value;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let api_key = "<YOUR_KEY>";
let data: Value = Client::new()
.get("https://api.macrosignal.com/v1/events/impact_today")
.header("Authorization", format!("Bearer {}", api_key))
.query(&[("country", "US")])
.send()?
.error_for_status()?
.json()?;
let events = data["events"].as_array().map(|events| events.len()).unwrap_or(0);
println!("{} events returned", events);
Ok(())
}
Sample snippet of the response payload:
{
"country": "US",
"events": [
{
"event_definition_id": "lmi:logistics_managers_index",
"event_definition_name": "LMI Logistics Managers Index",
"event_instance_id": "lmi:logistics_managers_index:2026-10-01",
"event_instance_name": "LMI Logistics Managers Index",
"country": "US",
"category": "supply_chain",
"importance": "medium",
"event_release": "2026-11-03T11:00:00+00:00",
"timezone": "America/New_York",
"reference": "monthly_diffusion_index",
"reference_date": "2026-10-01",
"previous_value": 70.2,
"actual_value": 70.7,
"source": "Logistics Managers' Index",
"status": "released"
},
{
"event_definition_id": "bls:jolts_quits_rate",
"event_definition_name": "JOLTs Quits Rate",
"event_instance_id": "bls:jolts_quits_rate:2026-09-01",
"event_instance_name": "JOLTs Quits Rate 2026M09",
"country": "US",
"currency": "USD",
"category": "labor",
"importance": "medium",
"event_release": "2026-11-03T15:00:00+00:00",
"timezone": "America/New_York",
"reference": "2026M09",
"reference_date": "2026-09-01",
"previous_value": 1.9,
"actual_value": 2.1,
"source": "Bureau of Labor Statistics",
"status": "released"
}
]
}
Errors
| Status | Meaning |
|---|---|
200 OK | Today's releases returned successfully. |
400 Bad Request | Malformed request — for example, an invalid country value or otherwise malformed query parameters. |
403 Forbidden | No API key was provided in the Authorization: Bearer header (the response message is “Missing API key.”), the key is unknown or revoked, or the free plan has no credits remaining. Upgrade your plan to continue. |
429 Too Many Requests | Rate limit exceeded for your plan. The response includes a Retry-After header and retry_after_seconds field indicating when to retry. |
503 Service Unavailable | Authentication backend is temporarily unreachable. Retry after a short backoff. |
OpenAPI spec
The machine-readable OpenAPI spec (YAML) is available here: openapi.yaml