/v1/country
A country's GHG emissions for a year
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/climatetrace-api/v1/country" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/climatetrace-api/v1/country", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/climatetrace-api/v1/country");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/climatetrace-api/v1/country",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"year": 2022,
"count": 1,
"countries": [
{
"rank": 2,
"country": "USA",
"continent": null,
"emissions": {
"ch4_t": 37690016,
"co2_t": 5403442404,
"n2o_t": 677321,
"co2e_20yr_t": 9096074557,
"co2e_100yr_t": 6911308569
},
"asset_count": null,
"previous_rank": 2,
"world_share_co2e_percent": 11.8
}
]
},
"meta": {
"timestamp": "2026-06-01T16:23:00.197Z",
"request_id": "7df7f2fb-7ab2-4ae4-addc-ebdcf3e2d9ea"
},
"status": "ok",
"message": "Country emissions retrieved",
"success": true
}