Waste Data Platform API
The Waste Data Platform API is an Azure Functions HTTP service that delivers waste-management reporting data — service records, weights, and environmental metrics — to subscribed accounts. It lets a team pull its waste data for any date range and consume it however its workflow requires: custom sustainability reports, BI dashboards, emissions tracking by location, and automated compliance reporting. No manual exports, no data re-entry.
https://wgpfapimprod.azure-api.net/api (managed by the wgpfapimprod API Management service)
Construct requests, toggle pagination, apply filters, and preview realistic JSON responses in a fully client-side simulation (synthetic demo data only, no network calls).
▶ Try the interactive API Explorer
Endpoints at a glance
| Endpoint | Methods | Purpose |
|---|---|---|
/get_report_data | GET, POST | Date-range detail report — one row per service event. Optional filters and keyset pagination. |
/get_report_summary | GET, POST | Pre-aggregated rollups grouped by month, material, disposal type, and service type. |
The full 28-field detail record is documented on the Response Fields reference page.
Authentication
Every request requires an APIM subscription key issued by Wasteology, passed as a request header:
| Header | Value |
|---|---|
Ocp-Apim-Subscription-Key | Your API subscription key |
The subscription key is scoped to exactly one account. The API resolves the key to that account and automatically filters every response to that organization's data — callers never pass an account identifier for scoping.
Environments
Both environments share a single codebase; runtime environment variables select the database and behaviour.
| Environment | Function App | API gateway |
|---|---|---|
| Production | wg-pathfinder-api-prod | wgpfapimprod.azure-api.net |
| Development | wg-pathfinder-api-dev | wg-pathfinder-api-dev |
Request flow
- The caller supplies
Ocp-Apim-Subscription-Keyin the request header. - APIM forwards the request to the Azure Function; the function validates the key and resolves it to the caller's account scope.
- The function builds a parameterised SQL query (date range + any optional filters) and runs it.
- Results are serialised to JSON and returned.
Dates
All date parameters and date fields use ISO 8601 (YYYY-MM-DD). Requested date windows are
capped at 366 days — narrow your range for larger histories, or use
/get_report_summary for a compact monthly rollup.
Guides
- Detail endpoint —
/get_report_data: parameters, filtering, and pagination. - Summary endpoint —
/get_report_summary: monthly aggregates. - Response fields: the 28-field detail record reference.
For access or support, contact the Wasteology data team.