Tree Farmer
DiscordInviteGitHub
API
API
  • Welcome
  • Endpoints
    • Cutters
    • Gifts
    • Plots
    • Storages
    • Trees
    • Vehicles
  • Other
    • Community Server
    • GitHub
    • Status
Powered by GitBook
On this page

Was this helpful?

  1. Endpoints

Trees

This endpoint provides information about trees.

Tree Information

GET https://api.treefarmer.xyz/trees

This endpoint will provide an array of trees by level with their name, planting region, fun fact, growth time, log count, log value, sapling cost and upgrade cost.

Query Parameters

Name
Type
Description

search

string

Find a specific tree by its name or level (e.g. American Arborvitae or 5)

Headers

Name
Type
Description

Authorization

string

Your Tree Farmer API token

{
  "error": false,
  "message": "The requested tree data successfully found.",
  "data": [
    {
      "name": "African Juniper",
      "funfact": "It is the only juniper to occur south of the equator.",
      "plantingRegion": "Africa",
      "level": 1,
      "growthTime": 60,
      "logCount": 119,
      "logValue": 6,
      "saplingCost": 69,
      "upgradeCost": 0
    },
    {
      "name": "American Arborvitae",
      "funfact": "The specific name, 'Occidentalis', means 'west,' the direction from Sweden where this tree was discovered.",
      "plantingRegion": "North America",
      "level": 2,
      "growthTime": 61,
      "logCount": 124,
      "logValue": 8,
      "saplingCost": 79,
      "upgradeCost": 11500
    },
    
    ...
    
  ]
}
{
  "error": true,
  "message": "The requested tree could not be found with the provided query. Please check the name or ID and try again."
}
PreviousStoragesNextVehicles

Last updated 3 years ago

Was this helpful?