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

Gifts

This endpoint provides information about gifts.

Gift Information

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

This endpoint will provide an array of gifts by level with all their rewards.

Query Parameters

Name
Type
Description

search

string

Find a specific gift by its name or level (e.g. small or 1)

Headers

Name
Type
Description

Authorization

string

{
  "error": false,
  "message": "The requested gift data was successfully found.",
  "data": [
    {
      "level": 1,
      "name": "small",
      "money": [100, 200],
      "logs": [7, 16],
      "saplings": [1, 2],
      "cutters": [0, 1],
      "plots": [0, 1],
      "vehicles": [0, 1]
    }, 
    {
      "level": 1,
      "name": "medium",
      "money": [300, 600],
      "logs": [15, 24],
      "saplings": [2, 4],
      "cutters": [1, 2],
      "plots": [1, 2],
      "vehicles": [1, 2]
    },
    
    ...
    
  ]
}
{
  "error": true,
  "message": "The requested cutter could not be found with the provided query. Please check the name or ID and try again."
}
PreviousCuttersNextPlots

Last updated 3 years ago

Was this helpful?