AIR API Reference
Public REST API. Build your own dashboards, trading signals, research tools, Discord bots, or chart embeds on top of live AI risk data. All responses are JSON unless noted.
BASE URL: https://air.20k.gg
Authentication
Public read endpoints need no auth. For higher rate limits and pro-gated endpoints, pass your API key in the Authorization header.
curl -H "Authorization: Bearer air_your_key_here" \
https://air.20k.gg/api/timeline
Generate API keys from your Pro account settings. Each Pro subscriber can have up to 5 active keys.
Spectrum
GET/api/spectrumFREE
Current AI risk spectrum position (-100 to +100), confidence, and recent history. Free tier returns last 8 history points.
GET/api/airxFREE
AIRX index (0-100 AI anxiety score) with band, trend, and color. Derived from live spectrum. Updates every minute.
GET/api/spectrum/at/:dateFREE 7DPRO FULL
Snapshot of spectrum position and top events on a specific date. Format: YYYY-MM-DD. Free tier is limited to the last 7 days.
Events and articles
GET/api/timelineFREE 8PRO 100
Scored events with score (-20 to +20), confidence, categories. Pro tier returns up to 100 events with full AI reasoning text.
GET/api/articlesFREE 25PRO 100
Raw ingested articles, most recent first. Includes source, categories, URL.
GET/api/incidentsFREE 5PRO 30
Critical incidents flagged from ingested articles.
GET/api/categoriesFREE TOP 5PRO 17
Per-category spectrum positions. Free shows top 5 by impact, Pro shows all 17.
Labs
GET/api/labsFREE 6PRO 19
AI lab safety ratings, trend, avg score, recent events.
GET/api/labs/:idFREE 30DPRO ALL
Single lab detail with daily score series. Query param ?window=30d|90d|all. Free tier limited to 30 days.
GET/api/labs/vs/:id1/:id2FREE 30D
Head-to-head lab comparison with overlay data for charting.
Daily brief and narratives
GET/api/brief/latestFREE
The latest daily brief (200-word summary of last 24h).
GET/api/brief/:dateFREE
Brief for a specific date. Format: YYYY-MM-DD.
GET/api/narratives/latestFREE
This week's clustered narratives.
GET/api/narratives/:weekKeyFREE
Narratives for a specific ISO week. Format: YYYY-W##.