GET /sites

Sites are locations where trees are planted or other units are placed. They are the physical location of the work.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string(uuid)
    • name string Required
    • location string Required
    • url string(url) Required
    • species array[object] Required

      Different types of units.

      Hide species attributes Show species attributes object
      • id string(uuid) Required
      • name string Required
    • work array[object] Required

      Array of work completed on this site, grouped by product type

      Hide work attributes Show work attributes object
      • units integer(int64) Required

        Number of units for this product type

      • productType string Required

        Name of the product type

      • label string Required

        Display label for the product type

    • coordinates object Required
      Hide coordinates attributes Show coordinates attributes object
      • latitude number(double) Required
      • longitude number(double) Required
GET /sites
curl \
 --request GET 'https://api.protect.earth/sites'
Response examples (200)
[
  {
    "id": "string",
    "name": "Bourton on the Water",
    "location": "Cheltenham, England",
    "url": "https://www.protect.earth/projects/bourton-on-the-water",
    "species": [
      {
        "id": "string",
        "name": "Wild Cherry"
      }
    ],
    "work": [
      {
        "units": 350,
        "productType": "Ancient Woodland Restoration",
        "label": "square meters"
      }
    ],
    "coordinates": {
      "latitude": 51.87351,
      "longitude": -1.90973
    }
  }
]