✒️
TheGoodAPI
  • Getting started with TheGoodAPI
  • Planting Trees
  • Rescue Plastic Bottles
  • Widgets and Badges
  • Planting Trees FAQ
Powered by GitBook
On this page
  • Plant Trees
  • Get Total Trees Planted

Was this helpful?

Planting Trees

PreviousGetting started with TheGoodAPINextRescue Plastic Bottles

Last updated 10 months ago

Was this helpful?

Plant Trees

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

Yes, planting trees is really this easy!

Headers

Name
Type
Description

Authorization*

string

<API Key>

Request Body

Name
Type
Description

count

integer

The number of trees you'd like to plant

{
  "total_planted_trees": integer # Total number of trees planted in account lifetime
}

Please make sure to get an To receive your beta_token, email saif@thegoodapi.com and we'll get you sorted

Get Total Trees Planted

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

Headers

Name
Type
Description

Authorization*

String

<API Key>

{
  "total_planted_trees": int
}
API Key from signing up first.