API Documentation
Free, public REST API for recession sentiment data. No API key required.Base URL:
Rate limit: 60 requests per minute per IP address.
Authentication: None required for read endpoints below.
https://api.rwindex.appRate limit: 60 requests per minute per IP address.
Authentication: None required for read endpoints below.
Endpoints
GET
/api/index/currentReturns today's index value, state label, interpretation text, and the AI-scored variant.
GET
/api/index/historyReturns historical index data as a time series. Use the range parameter to control how far back to look.
| Parameter | Type | Description |
|---|---|---|
range | string | Time range: 30d, 90d, 1y, or all. Defaults to 30d. |
GET
/api/methodologyReturns a text summary of how the index is calculated — data sources, scoring formula, and aggregation method.
GET
/api/insights/latestReturns the most recent AI-generated analysis of recession sentiment. The analysis covers the previous day's data.
| Parameter | Type | Description |
|---|---|---|
locale | string | Language code: en, ru, ar, es, zh-Hans, or pt-BR. Defaults to en. |
GET
/api/insights/by-date/{date}Returns the AI analysis for a specific historical date. Used by the /daily archive pages.
| Parameter | Type | Description |
|---|---|---|
date | string (path) | Date in YYYY-MM-DD format. |
locale | string | Language code: en, ru, ar, es, zh-Hans, or pt-BR. Defaults to en. |
Notes
- All endpoints return JSON. Dates are in
YYYY-MM-DDformat. - The
llm_indexandllm_statefields are the AI-scored variants displayed on the public website. The plainindexandstatefields are the keyword-based baseline. - New data is published daily at approximately 08:00 MSK (05:00 UTC). If you request
/insights/latestbefore that time, you may receive a503 DATA_NOT_READYresponse. - Generating new insights requires authentication and is not available publicly.
Attribution
The API is free to use. If you build something with it — a dashboard, a bot, a newsletter — please link back to rwindex.app and credit the R-Word Index. We are a small project and every backlink helps.
Questions or Issues?
Open an issue on GitHub.