Ir a la app

Build wildfire risk into your own platform with the PASTOR API. Query daily risk scores by municipality, trigger alerts when thresholds are exceeded, automate official PDF exports, and access territorial analysis data across the Iberian Peninsula — all over HTTPS with a single API key.

What you can build

  • Risk dashboards: embed PASTOR risk scores and time series into your own applications.
  • Alert integrations: monitor municipalities and trigger alerts when risk thresholds are exceeded.
  • Automated reporting: generate official PDF exports on a schedule without manual intervention.
  • Territorial analysis: query risk scores and ecosystem data by municipality and compare scenarios.

Get started fast

curl -s "https://api.pastormap.com/api/v3/m1?municipio_id=05001&date_from=2025-07-01&date_to=2025-07-28" \
  -H "Authorization: Bearer $PASTOR_API_KEY"

Detailed walkthrough in Quickstart.

Base URL

https://api.pastormap.com

All endpoints use HTTPS. HTTP requests are rejected.

Response format

Responses are JSON objects. Fields vary by endpoint. A typical daily risk response looks like:

{
  "municipio_id": "05001",
  "date": "2025-07-28",
  "risk_score": 0.23,
  "risk_label": "moderado"
}

risk_score is a float between 0 and 1. risk_label is one of five levels: muy bajo, bajo, moderado, alto, or crítico.

Error responses include an error object. See Errors for the complete error catalog.

Sections in this reference