History
All facility-level deforestation metrics โ returns all processing runs for each location.
Equivalent to GET /metrics/facilities/deforestation?without deduplication.
Append a commodity for filtered history: /metrics/facilities/deforestation/palm/history.
โถSorting
Accepts the same compliance-ranking sort keys as the latest route โ ?sort=-noncompliance_plot_count and ?sort=plot_count (leading - = descending). On /history (all runs, no per-facility dedup) the order is per-row, tie-broken by the metric row's key for stable pagination. Any other key returns 400. See Query Parameters โ Client-controlled sort.
โถGeometry
Geometry is opt-in โ pass ?include_geometries=true to include the geo
attribute (the location's geometry) on JSON / NDJSON responses (GeoJSON
formats always include it). See
Query Parameters โ Geometry.
Required scope:
metrics:read