This API allows you to get emissions by country
Open endpoints require no Authentication.
GET /api/country-emissions
To fetch result, you need to specified at least the country params
- http://localhost:3000/api/country-emissions?country=Zimbabwe
If country parameters is not provided, an error is return :
{ "error": "country filter is required" }
You can filter your results by specifying filters such as 'date' or 'gas_name' filter the date by given date in format YYYY (ex: 1903) filter by gas_name with gas_name parameter in the query ex:
list of filter available (to be improved) :
- date
- gas_name