📜API Reference
A walk through of the prerequisites and contextual knowledge you need to make Plasteax queries.
This guide provides everything you need to access and work with plastic packaging end-of-life data. The Plasteax API offers researchers, sustainability professionals, and developers a powerful way to analyze and integrate plastic waste data into their applications and research. Whether you're building sustainability dashboards, conducting environmental impact assessments, or researching plastic waste flows, this API provides standardised, comprehensive data to support your work.
Requirements
Access to the API endpoint (see section API endpoints for more details).
API endpoints
There are two environments that can be explored using Plasteax API. The production environment provides access to the official Plasteax dataset, which requires an access key available exclusively through a Plasteax subscription. The demo environment which offers unrestricted access to mock data for all Plasteax metrics.
PROD:
DEMO:
All code examples in this documentation use the demo API for illustration. The methods described here can be directly applied to the production environment too.
Important: The demo (testing) API provides fake values. Do not use these values for real-world plastic footprints.
Introduction to plastic waste data concepts
The Plasteax API provides data about plastic packaging at its end-of-life stage. Understanding a few key concepts will help you make effective use of this API:
Datasets
A dataset is the core resource in this API, containing facts about what happens to plastic packaging when it reaches the end of its useful life.
Dimensions
Each dataset is characterised by these four dimensions which you can use as filters:
Country: 3-letter ISO code (e.g., "FRA" for France)
Category: Product category (e.g., "Rigid non-food packaging")
Polymer: Type of plastic (e.g., "PET")
Year: Time period of data collection (e.g., 2020)
Data types
End-of-life data in includes two types of information:
Material quantities: Masses of material expressed in kilo-tonnes (kt). E.g., the total production and import of packaging for a given country.
Ratios: Percentages representing the proportion of materials with specific fates. E.g., the percentage of total production of a material that is leaked into ocean and waterways.
Data dictionary
The API returns the following fields:
Material quantities (in kt)
production_and_import
: Total production and import of packagingexport
: Export of packagingadded_stock
: Material added to existing stockwaste_import
: Import of waste from other countriesreexport_of_waste_import
: Re-export of imported wasterecycling_of_waste_import
: Recycling of imported wasteproper_disposal_of_waste_import
: Proper disposal of imported wasteimproper_disposal_of_waste_import
: Improper disposal of imported wastewaste_produced_in_the_country
: Waste generated domestically
Ratios (in percent)
domestic_recycling_of_collected
: Percentage recycled within the countryexport_of_collected
: Percentage exported for processingincineration_and_energy_recovery
: Percentage incinerated for energysanitary_landfill
: Percentage sent to proper landfillsimproperly_disposed
: Percentage disposed improperlylittering
: Percentage directly littereduncollected_excluding_littering
: Percentage not collected (excluding litter)total
: Overall percentage (should sum to 100%)collected
: Percentage of waste collectedmismanaged_including_littering
: Percentage mismanaged (includes littering)leaked_to_ocean_and_waterways
: Percentage entering oceans and waterways
Dimensions
A dataset is characterised by several dimensions:
country
category
polymer
year
The API allows one to filter datasets along those dimensions to retrieve as specific or as broad a dataset as you require.
API requests
With all of that in mind here are some example requests.
Get datasets
To get all available datasets, run the following command.
You can filter the results by a specific dimension using query parameters.
Or try running requests directly from this page.
3-letter ISO code of a country
FRA
Product category
Rigid non-food packaging
Polymer
PET
Time period
2020
Page index (starting from 0)
0
Example: 2
Page size
100
Example: 100
Get reference data
The reference data include the available countries, product categories, polymers and years. You can fetch it using
Or try running requests directly from this page.
Get metadata
The metadata includes the versions of the various databases as well as a list of reference papers that were used as data sources to build the Plasteax database. A quality score is also given to each reference paper.
Or try running requests directly from this page.
Pagination
When retrieving datasets, you can navigate through results using pagination:
Set the
page_size
parameter to control how many results to return per requestStart with
page=0
for the first page of resultsCheck the
pagination.total-pages
value in the response to know how many pages existIncrement the
page
parameter to navigate to subsequent pages
For additional support or to report issues, please contact the Plasteax team directly.
Last updated
Was this helpful?