# Global Nature Watch (formerly Global Forest Watch) API reference

> 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…

Source: https://osinttools.io/apis/global-nature-watch/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/global-nature-watch/

- Base URL: https://data-api.globalforestwatch.org
- Authentication: API key in the `x-api-key` header. Required by the query endpoint; the spec also allows an OAuth2 bearer token or the key as a query parameter.
- Rate limits: Not stated in the docs
- Vendor docs: https://data-api.globalforestwatch.org/
- OpenAPI spec: https://data-api.globalforestwatch.org/openapi.json

## Overview

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.

## Datasets

### List all datasets

`GET /datasets`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `page[number]` | query | integer | no | The page number Example: 1 |
| `page[size]` | query | integer | no | Datasets per page. Default is 10 Example: 10 |

Response fields:

- `status` (string): success when the call worked
- `data[].dataset` (string): Dataset name
- `data[].is_downloadable` (boolean): Whether the dataset can be downloaded
- `data[].versions[]` (string): Versions of the dataset
- `data[].created_on` (string): Creation time
- `data[].updated_on` (string): Last update time

```bash
curl 'https://data-api.globalforestwatch.org/datasets' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `dataset` | path | string | yes | Dataset name Example: example_dataset |
| `version` | path | string | yes | Version such as v1.0, or latest Example: latest |

Response fields:

- `status` (string): success when the call worked
- `data.dataset` (string): Dataset name
- `data.version` (string): Version
- `data.is_latest` (boolean): Whether this is the latest version
- `data.is_mutable` (boolean): Whether the version can still change
- `data.assets[]` (object): Saved assets of the version

```bash
curl 'https://data-api.globalforestwatch.org/dataset/example_dataset/latest' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `dataset` | path | string | yes | Dataset name Example: example_dataset |
| `version` | path | string | yes | Version such as v1.0, or latest Example: latest |

Response fields:

- `status` (string): success when the call worked
- `data[].name` (string): Field name
- `data[].alias` (string): Alias of the field
- `data[].description` (string): What the field holds
- `data[].unit` (string): Unit of the values
- `data[].is_filter` (boolean): Whether the field can be used as a filter

```bash
curl 'https://data-api.globalforestwatch.org/dataset/example_dataset/latest/fields' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `dataset` | path | string | yes | Dataset name Example: example_dataset |
| `version` | path | string | yes | Version such as v1.0, or latest Example: latest |
| `sql` | query | string | yes | SQL query Example: SELECT COUNT(*) FROM data |
| `geostore_id` | query | string | no | Geostore ID of a Polygon or MultiPolygon Example: 00000000-0000-0000-0000-000000000000 |
| `geostore_origin` | query | string | no | Service to search first for the geostore One of: gfw, rw |

Response fields:

- `status` (string): success when the call worked
- `data[]` (object): One result row; columns depend on the query

```bash
curl 'https://data-api.globalforestwatch.org/dataset/example_dataset/latest/query/json?sql=SELECT%20COUNT(*)%20FROM%20data' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success",
  "data": [
    {
      "count": 42
    }
  ]
}
```

## Geostores

### Get the GeoJSON for a geostore ID

`GET /geostore/{geostore_id}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `geostore_id` | path | string | yes | Geostore ID Example: 00000000-0000-0000-0000-000000000000 |

Response fields:

- `status` (string): success when the call worked
- `data.gfw_geostore_id` (string): Geostore ID
- `data.gfw_geojson.type` (string): GeoJSON geometry type
- `data.gfw_geojson.coordinates` (array): Geometry coordinates
- `data.gfw_area__ha` (number): Area in hectares
- `data.gfw_bbox` (array): Bounding box

```bash
curl 'https://data-api.globalforestwatch.org/geostore/00000000-0000-0000-0000-000000000000' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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

### Uptime check

`GET /ping`

- Footprint: passive (the target is not contacted)

Simple uptime check.

Response fields:

- `status` (string): success when the service is up

```bash
curl 'https://data-api.globalforestwatch.org/ping' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "success"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
