Through RealtimeAPI.ai
1,000 calls a month, free, with one key for every feed.
The four Agent Data API slices are the RealtimeAPI.ai feeds griddata, sensordata, weatherdata, newssignals. A free RealtimeAPI key covers 1,000 calls a month across these and every other feed there, served from an edge cache with honest data-age headers. We sell no subscriptions here: pay per request or buy a pass for a job, and use RealtimeAPI for steady use.
Free quota
1,000/mo
across every RealtimeAPI feed, resets on the 1st (UTC)
One key
rta_live_...
energy, sensors, weather, news, macro, crypto, stocks and more
Same paths
https://api.realtimeapi.ai/v1/{feed}/api/v1/...
identical response envelope
Copy this prompt into your agent
Works in Claude Code, Cursor, Windsurf, Codex or any agent that can run commands. The agent adds the MCP server and skill, mints the free key with your email, stores it as an environment variable, and proves it works with a power price, a weather alert and an air quality call. Plain text copy: /realtimeapi/prompt.txt.
Set up RealtimeAPI.ai for me so I can use the AgentDataAPI feeds through it: griddata (power prices and grid data), sensordata (environmental sensors), weatherdata (weather alerts and forecasts), newssignals (news signals and trends). RealtimeAPI gives AI agents real-time data through one API and one key. A free key includes 1,000 calls a month across every feed, including wholesale power prices and carbon intensity, air quality and river gauges, weather alerts and forecasts, and news sentiment and trending signals.
If you can run commands or edit files yourself, do each step. Otherwise walk me through them one at a time and wait for me to confirm each one.
Step 1: Add the MCP server
Claude Code: run claude mcp add --transport http realtimeapi https://mcp.realtimeapi.ai/mcp
Cursor, Windsurf or any JSON config: add {"mcpServers": {"realtimeapi": {"url": "https://mcp.realtimeapi.ai/mcp"}}}
Codex: add [mcp_servers.realtimeapi] with command = "npx" and args = ["-y", "mcp-remote", "https://mcp.realtimeapi.ai/mcp"] to ~/.codex/config.toml
No MCP support? Everything below also works over plain HTTP against https://api.realtimeapi.ai.
Step 2: Add the RealtimeAPI skill
Claude Code: run mkdir -p ~/.claude/skills/realtimeapi && curl -fsSL https://realtimeapi.ai/skills/realtimeapi/SKILL.md -o ~/.claude/skills/realtimeapi/SKILL.md
Other agents: append the contents of https://realtimeapi.ai/skills/realtimeapi/SKILL.md to AGENTS.md or your project rules file.
Step 3: Get access
Ask me for my email, then call the create_free_key tool with it (or POST https://api.realtimeapi.ai/keys/free with {"email": "<my email>"}). It returns a free key worth 1,000 calls a month across every feed. Save it for me: set it as the RTAPI_KEY environment variable and re-add the MCP server with the header X-API-Key: <the key> (Claude Code: claude mcp remove realtimeapi, then claude mcp add --transport http realtimeapi https://mcp.realtimeapi.ai/mcp --header "X-API-Key: <the key>"). Never ask me to paste a key into this chat, and do not repeat the full key back to me.
If I already pay with an x402 wallet (USDC on Base), you can skip the key and pay per call instead: https://realtimeapi.ai/docs#x402
Step 4: Check it works
Call discover with "wholesale electricity price right now" and call_feed on the best match (feed griddata), then discover with "severe weather alerts active" and "air quality near me". Give me a short summary of each answer with its as_of time, status field and how old the cached copy is (the X-RTAPI-Data-Age header, seconds since the gateway fetched it).
Reference: https://realtimeapi.ai/llms.txt (every feed and price), https://agentdataapi.com/llms.txt (endpoints and the response envelope).
Without an agent
# free key, 1,000 calls a month across every feed
curl -X POST https://api.realtimeapi.ai/keys/free -H "Content-Type: application/json" -d '{"email": "you@yourcompany.com"}'
# the same endpoints as this site, under /v1/{feed}
curl https://api.realtimeapi.ai/v1/griddata/api/v1/power/prices/nem/NSW1 -H "X-API-Key: rta_live_..."
curl https://api.realtimeapi.ai/v1/sensordata/api/v1/air/near?lat=-33.87&lon=151.21&radius_km=10 -H "X-API-Key: rta_live_..."
curl https://api.realtimeapi.ai/v1/weatherdata/api/v1/alerts?region=TX -H "X-API-Key: rta_live_..."
curl https://api.realtimeapi.ai/v1/newssignals/api/v1/tickers/NVDA/news-score?window=24h -H "X-API-Key: rta_live_..."
Direct or through RealtimeAPI?
| Direct (this site) | RealtimeAPI.ai | |
|---|---|---|
| Free calls | 5 a day, every slice | 1,000 a month on every endpoint of every feed |
| Paid | Per request in USDC (x402) or a 1 hour, 1 day or 7 day pass | Per request (x402), platform passes, or a plan for every feed |
| Freshness | Served from this service's store, seconds after the publisher | Edge cache with X-RTAPI-Data-Age in seconds and regional copies |
| Best for | One-off calls, history endpoints | Agents that also need macro, crypto, stocks or other feeds, and steady daily use |