π¨πHow to fetch data on waste generated in Switzerland
How to query the Plasteax database to obtain the domestic waste generated in Switzerland in 2021.
https://2oqef6q7rg.execute-api.eu-west-3.amazonaws.com/plasteax/datasetsUsing the Command Line
curl -s "https://2oqef6q7rg.execute-api.eu-west-3.amazonaws.com/plasteax/datasets?country=CHE&year=2021&polymer=All%20polymers&category=All%20packaging" | jq .?country=CHE&year=2021&polymer=All%20polymers&category=All%20packaging{
"pagination": {
"total-items": 1
},
"elements": [
{
"country": "CHE",
"category": "All packaging",
"polymer": "All polymers",
"year": 2021,
"production_and_import": {
"amount": 0.1641169957,
"unit": "kt"
},
"export": {
"amount": 0.2541901517,
"unit": "kt"
},
"added_stock": {
"amount": 0.7775922097,
"unit": "kt"
},
"waste_import": {
"amount": 0.8221494483,
"unit": "kt"
},
"reexport_of_waste_import": {
"amount": 0.0227327712,
"unit": "kt"
},
"recycling_of_waste_import": {
"amount": 0.3095788595,
"unit": "kt"
},
"proper_disposal_of_waste_import": {
"amount": 0.080751776,
"unit": "kt"
},
"improper_disposal_of_waste_import": {
"amount": 0.0229187221,
"unit": "kt"
},
"waste_produced_in_the_country": {
"amount": 0.0324434147,
"unit": "kt"
},
"domestic_recycling_of_collected": {
"amount": 0.8705851923,
"unit": "percent"
},
"export_of_collected": {
"amount": 0.2905947668,
"unit": "percent"
},
"incineration_and_energy_recovery": {
"amount": 0.6945896879,
"unit": "percent"
},
"sanitary_landfill": {
"amount": 0.5443557105,
"unit": "percent"
},
"improperly_disposed": {
"amount": 0.2169245555,
"unit": "percent"
},
"littering": {
"amount": 0.5919855952,
"unit": "percent"
},
"uncollected_excluding_littering": {
"amount": 0.7726378055,
"unit": "percent"
},
"total": {
"amount": 0.2947628798,
"unit": "percent"
},
"collected": {
"amount": 0.420612656,
"unit": "percent"
},
"mismanaged_including_littering": {
"amount": 0.0795666505,
"unit": "percent"
},
"leaked_to_ocean_and_waterways": {
"amount": 0.9158901908,
"unit": "percent"
}
}
]
}Using Python
Last updated