Skip to content
OSINTtools.io

Global Nature Watch (formerly Global Forest Watch) API

WRI's interactive map of forest cover change, deforestation alerts, fires and land-use layers; the renamed Global Forest Watch.

Base URL
https://data-api.globalforestwatch.org
Sign-in
API key
Format
REST
Endpoints
6

Compiled by OSINTtools.io editors from data-api.globalforestwatch.org · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The GFW Data API is the data service behind Global Forest Watch (now Global Nature Watch). It lists geospatial datasets such as tree cover loss and fire alerts, and runs read-only SQL queries against a dataset version, optionally limited to an area given by a geostore ID. It does not look people up: an investigator uses it to measure land cover change or fire alerts inside an area of interest.

Calls go to the base URL below and return JSON wrapped as {"data": ..., "status": "success"}. The OpenAPI spec lists three ways to authenticate (an OAuth2 password token, or an API key sent as x-api-key in a header or a query parameter); the dataset listing and metadata endpoints shown here declare no authentication in the spec, while the SQL query endpoint does.

Only the read endpoints for datasets, fields, queries and geostores are documented here. The spec also covers writing and administering datasets, assets, tasks and analyses, which are left out.

Quick start

  1. Get a key

    Create an account with Global Nature Watch (formerly Global Forest Watch) and copy your api key. Where to get it

  2. Make your first request

    List all datasets. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://data-api.globalforestwatch.org/datasets' \
      -H 'x-api-key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "status": "success",
      "data": [
        {
          "dataset": "example_dataset",
          "is_downloadable": true,
          "versions": [
            "v1.0"
          ],
          "created_on": "2024-01-01T00:00:00",
          "updated_on": "2024-01-02T00:00:00"
        }
      ]
    }

Authentication

Send your API key in the x-api-key header of every request.

Required by the query endpoint; the spec also allows an OAuth2 bearer token or the key as a query parameter.

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Datasets

List all datasets

GET/datasets

  • Passive: the target is not contacted

Returns the list of datasets. Paginates only when page[size] or page[number] is given; otherwise the whole list is returned.

Query parameters

page[number]integer

The page number

Example: 1
page[size]integer

Datasets per page. Default is 10

Example: 10
Response fields · 6Show

statusstring

success when the call worked

datasetstring

Dataset name

is_downloadableboolean

Whether the dataset can be downloaded

versions[]string

Versions of the dataset

created_onstring

Creation time

updated_onstring

Last update time

curl 'https://data-api.globalforestwatch.org/datasets' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": [
    {
      "dataset": "example_dataset",
      "is_downloadable": true,
      "versions": [
        "v1.0"
      ],
      "created_on": "2024-01-01T00:00:00",
      "updated_on": "2024-01-02T00:00:00"
    }
  ]
}

Basic metadata of one dataset version

GET/dataset/{dataset}/{version}

  • Passive: the target is not contacted

Returns metadata for a version. The assets list includes only saved (non-pending, non-failed) assets, sorted by creation time. The version can be latest.

Path parameters

datasetstringrequired

Dataset name

Example: example_dataset
versionstringrequired

Version such as v1.0, or latest

Example: latest
Response fields · 6Show

statusstring

success when the call worked

datasetstring

Dataset name

versionstring

Version

is_latestboolean

Whether this is the latest version

is_mutableboolean

Whether the version can still change

assets[]object

Saved assets of the version

curl 'https://data-api.globalforestwatch.org/dataset/example_dataset/latest' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": {
    "dataset": "example_dataset",
    "version": "v1.0",
    "is_latest": true,
    "is_mutable": false,
    "assets": [
      {
        "asset_type": "example"
      }
    ]
  }
}

Fields of a dataset version

GET/dataset/{dataset}/{version}/fields

  • Passive: the target is not contacted

Lists the fields you can use in SQL queries. For a vector default asset these are the feature attributes; for a raster they are the raster tile sets on the same grid plus special fields such as area__ha, latitude and longitude.

Path parameters

datasetstringrequired

Dataset name

Example: example_dataset
versionstringrequired

Version such as v1.0, or latest

Example: latest
Response fields · 6Show

statusstring

success when the call worked

namestring

Field name

aliasstring

Alias of the field

descriptionstring

What the field holds

unitstring

Unit of the values

is_filterboolean

Whether the field can be used as a filter

curl 'https://data-api.globalforestwatch.org/dataset/example_dataset/latest/fields' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": [
    {
      "name": "area__ha",
      "alias": "area",
      "description": "Area in hectares",
      "unit": "ha",
      "is_feature_info": false,
      "is_filter": true
    }
  ]
}

Queries

Run a read-only SQL query on a dataset version

GET/dataset/{dataset}/{version}/query/json

  • Passive: the target is not contacted

Executes a read-only SQL query and returns JSON. Adding a geostore ID restricts the result to features intersecting that polygon; vector geometries are not clipped. Raster-only datasets need a geostore ID or geometry.

Path parameters

datasetstringrequired

Dataset name

Example: example_dataset
versionstringrequired

Version such as v1.0, or latest

Example: latest

Query parameters

sqlstringrequired

SQL query

Example: SELECT COUNT(*) FROM data
geostore_idstring

Geostore ID of a Polygon or MultiPolygon

Example: 00000000-0000-0000-0000-000000000000
geostore_originstring

Service to search first for the geostore

Default: gfwOne of: gfw, rw
Response fields · 2Show

statusstring

success when the call worked

data[]object

One result row; columns depend on the query

curl 'https://data-api.globalforestwatch.org/dataset/example_dataset/latest/query/json?sql=SELECT%20COUNT(*)%20FROM%20data' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": [
    {
      "count": 42
    }
  ]
}

Geostores

Get the GeoJSON for a geostore ID

GET/geostore/{geostore_id}

  • Passive: the target is not contacted

Returns the GeoJSON of a geostore. A UUID-style ID is read from the GFW Data API; any other ID is forwarded to the RW API.

Path parameters

geostore_idstringrequired

Geostore ID

Example: 00000000-0000-0000-0000-000000000000
Response fields · 6Show

statusstring

success when the call worked

gfw_geostore_idstring

Geostore ID

typestring

GeoJSON geometry type

coordinatesarray

Geometry coordinates

gfw_area__hanumber

Area in hectares

gfw_bboxarray

Bounding box

curl 'https://data-api.globalforestwatch.org/geostore/00000000-0000-0000-0000-000000000000' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success",
  "data": {
    "gfw_geostore_id": "00000000-0000-0000-0000-000000000000",
    "gfw_geojson": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            0,
            0
          ],
          [
            0,
            1
          ],
          [
            1,
            1
          ],
          [
            0,
            0
          ]
        ]
      ]
    },
    "gfw_area__ha": 100.5,
    "gfw_bbox": [
      0,
      0,
      1,
      1
    ]
  }
}

Service

  • Passive: the target is not contacted

Simple uptime check.

Response fields · 1Show

statusstring

success when the service is up

curl 'https://data-api.globalforestwatch.org/ping' \
  -H 'x-api-key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "status": "success"
}