Send the same natural-language risk questions users ask inside PAP.EARTH and receive the same live-source forecast payload the dashboard paints from.
curl -X POST https://www.pap.earth/api/v1/risk \
-H "Content-Type: application/json" \
-d '{
"prompt": "Assess flood and heat risk for a logistics warehouse in Lagos over the next month",
"horizon": "30d",
"decisionLens": "business-setup",
"alert": {
"enabled": true,
"metric": "severity",
"threshold": 50,
"channels": [{ "type": "webhook", "target": "https://example.com/pap-alerts" }]
}
}'promptRequiredA place-based risk question, exactly like the app's search box.
hazardOptionalearthquake, flood, wildfire, heat, storm, air-quality, drought, food-insecurity, conflict.
horizonOptional7d, 30d, 1y, 10y, 30y. Short windows recommended for operational use.
decisionLensOptionalcommunity-planning, family-relocation, business-setup, travel, investment.
alert.*OptionalCreate a scheduled watch on the same forecast engine — thresholds, correlated hazards, webhook/Slack/Telegram/email channels.
Every short-horizon, verifiable forecast is logged and scored against observed outcomes — USGS for earthquakes, NASA EONET for floods, fires, and storms. GET /api/v1/track-record is open, no key required. Audit us.
Anonymous calls work out of the box. Add an X-PAP-API-Key header for higher tiers — usage headers return on every response, quotas reset daily at 00:00 UTC.
No key. Rate-limited per IP. Trials and demos.
pap_live_ key. Prototypes and low-volume apps.
Production dashboards and products.
High-volume quota. Contact for provisioning.
Drop an auto-updating risk badge onto any page with one <img> tag. SVG, edge-cached 15 minutes.
<img src="https://www.pap.earth/api/v1/embed?lat=6.45 &lng=3.40&hazard=flood&horizon=30d&label=Lagos" width="320" height="120" />
pap.earth exposes live risk intelligence via MCP at https://www.pap.earth/mcp. Tools: get_risk, get_track_record, create_watch.
// Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pap-earth": {
"url": "https://www.pap.earth/mcp"
}
}
}
// Cursor — MCP settings
{
"mcpServers": {
"pap-earth": {
"url": "https://www.pap.earth/mcp"
}
}
}