cURL
curl --request GET \ --url https://api.example.com/project-types \ --header 'X-API-KEY: <x-api-key>'
{ "count": 123, "next": "<string>", "previous": "<string>", "results": [ { "id": 123, "name": "<string>", "description": "<string>", "scope_name": "<string>" } ] }
Retrieve carbon project type information
Show Project Type properties
import requests headers = { 'Authorization': 'Bearer YOUR_API_KEY' } # Get forestry-related project types params = { 'name': 'forestry', 'page_size': 50 } response = requests.get( 'https://api.carbonapi.com/project-types', headers=headers, params=params )
{ "count": 25, "next": null, "previous": null, "results": [ { "id": 1, "name": "REDD+", "description": "Reducing emissions from deforestation and forest degradation", "scope_name": "Forestry and Land Use" }, { "id": 2, "name": "Afforestation/Reforestation", "description": "Establishment of forest on previously unforested land", "scope_name": "Forestry and Land Use" } ] }