Public read-only API for visual pollution reports in Morocco — no authentication required.
tayr.ma · Developers · MCP
GET https://tayr.ma/api/open/reports
No authentication. CORS is open (Access-Control-Allow-Origin: *). Cached for 5 minutes.
Draft reports (status=not_yet) are never included, regardless of query filters.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
limit | integer | 50 | Results per page (1–200) |
category | string | — | Filter by category |
status | string | — | Filter by status (approved, resolved, …) |
format | string | json | json · geojson · csv |
Each item in items includes: id, title, category, status, location, latitude, longitude, severity, createdAt, resolvedAt.
curl "https://tayr.ma/api/open/reports?page=1&limit=10" curl "https://tayr.ma/api/open/reports?format=geojson&limit=200" curl "https://tayr.ma/api/open/reports?format=csv&status=resolved" -o reports.csv
{
"total": 42,
"page": 1,
"limit": 50,
"pages": 1,
"items": [ { "id": 5, "title": "...", ... } ]
}
Data is open for research, journalism, and non-commercial apps with attribution to Tayr (tayr.ma). For commercial use or large-scale integration, reach us via the contact page.