Skip to content

Planting Trees

Plant trees, fetch the total number of trees you’ve planted, and access aggregated verification evidence.

POST https://app.thegoodapi.com/plant/trees

Planting trees is this easy.

NameTypeDescription
Authorization*string<API Key>
NameTypeRequiredDescription
countintegerYesThe number of trees you’d like to plant
attributionstringNoTag an order with a non-unique lookup key for filtering
metadataJSONNoTag an order with arbitrary key/value pairs
idempotency_keystringNoUse this to safely retry requests without double-planting
{
"total_planted_trees": 45,
"tree_details": [
{
"id": "i2SeocFjwNayo7PI7DpI",
"count": 1,
"fractional_count": 0,
"created_at": "2025-07-01T22:07:31.374582-04:00",
"idempotency_key": "",
"metadata": {
"key1": "val1",
"key2": 786
},
"attribution": "saif@thegoodapi.com"
}
],
"total_planted_trees_month": 0
}

GET https://app.thegoodapi.com/plant/trees

NameTypeDescription
Authorization*string<API Key>

All query parameters are optional.

NameTypeDescription
attribution_keystringFetch by attribution key
idstringFetch by Tree ID
created_atstringTrees registered after date (format: YYYY-MM-DD)
end_atstringTrees registered before date (format: YYYY-MM-DD)
metadataJSONJSON filter with AND operations
{
"total_planted_trees": 45,
"tree_details": [
{
"id": "i2SeocFjwNayo7PI7DpI",
"count": 1,
"created_at": "2025-07-02T02:07:31.374582Z",
"idempotency_key": "",
"metadata": {
"key1": "val1",
"key2": 786
},
"attribution": "user1@test.com"
}
]
}

GET https://app.thegoodapi.com/evidence

Returns aggregated planting evidence including photos, videos, and impact metrics from verified projects.

HeaderRequiredDescription
AuthorizationYesBearer token with API key: Bearer <API_KEY>
Terminal window
curl -X GET "https://app.thegoodapi.com/evidence" \
-H "Authorization: Bearer your_api_key"
{
"summary": {
"total_trees": 1847811,
"trees_planted": 330447,
"carbon_offset_tons": 81748.316,
"area_restored_hectares": 190.37407,
"countries": [
"Brazil",
"Canada",
"Haiti",
"Indonesia",
"Kenya",
"Madagascar",
"United States"
]
},
"regions": [
{
"id": "23",
"name": "Kwale",
"country": "Kenya",
"evidence": [
{
"id": "735545",
"type": "image",
"url": "https://d38us48sb13m7f.cloudfront.net/...",
"date": "2025-09-23T14:11:17.000000Z"
}
]
}
]
}
  • Response is cached for 30 days for performance.
  • Evidence items are grouped by geographic region based on coordinates.
  • Media URLs are served via Veritree’s CDN.