Back to how-to articles
Natural Forest Map x Global Forest Watch API
Last updated: July 3, 2025

Before you get started
If you are new to the Global Forest Watch API, it is a good idea to begin with the foundational guide. It covers essential steps like signing up, getting access token and API key. You can find it here:
Steps
- Find the version of the dataset
- Find the fields to query
- Make a query
Find the version
To receive data about the Natural Forest dataset, you can use a GET
request to the /dataset/sbtn_natural_forest_map
endpoint.
1curl -X GET 'https://data-api.globalforestwatch.org/dataset/sbtn_natural_forests_map'
If successful, this will return a response like this, with metadata and versions:
1{
2 "data": {
3 "created_on": "2023-07-21T15:22:56.655736",
4 "updated_on": "2024-11-07T23:14:28.955316",
5 "dataset": "sbtn_natural_forests_map",
6 "is_downloadable": true,
7 "metadata": {
8 ...
9 },
10 "versions": [
11 ...
12 "v202410",
13 "v202504"
14 ]
15 },
16 "status": "success"
17}
For the next steps you can pick a specific version of the dataset or just use /latest
for the latest version.
Find the relevant fields
Before querying the dataset, you will need to know what fields to get from the dataset. To retrieve this, you can use a GET
request to dataset/sbtn_natural_forests_map/latest/fields
1curl -L -X GET 'https://data-api.globalforestwatch.org/dataset/sbtn_natural_forests_map/latest/fields'
The Natural Forest Map is a default raster asset. The response will include all Global Forest Watch raster tile sets that use the same grid as the raster default asset. Common fields like area__ha
, latitude
, and longitude
are also included.
The other relevant field for The Natural Forest Map are:
- sbtn_natural_forests_map__class
- 0 - Non-Forest
- 1 - Natural Forest
- 2 - Non-Natural Forest
Query dataset
In addition to the dataset identifier sbtn_natural_forests_map
and version, you need to construct an SQL
query and a geometry to limit the area of interest.
Limit data to area of interest
There are two ways to do this; using Geostore, or using GeoJson in a Post request. Both methods require geojson format. The possible geometry types available in Global Forest Watch is Polygon and MultiPolygon. To easily generate this format, visit https://geojson.io.
Using POST request with a polygon
Example using polygon:
1curl -L -X POST 'https://data-api.globalforestwatch.org/dataset/sbtn_natural_forests_map/latest/query/json' \
2 -H 'x-api-key: <YOUR_API_KEY>' \
3 -H 'Content-Type: application/json' \
4 --data-raw '{
5 "sql": "SELECT SUM (area__ha) as Natual_Forest_Area_Hectars FROM results WHERE sbtn_natural_forests_map__class = '\''Natural Forest'\''",
6 "geometry": {
7 "type": "Polygon",
8 "coordinates": [[
9 [10.796,59.9858],
10 [10.796,59.9717],
11 [10.808,59.9717],
12 [10.808,59.9758],
13 [10.796,59.9858]
14 ]]
15 }
16 }'
If successful the response will look something like this:
1{
2 "data": [
3 {
4 "Natual_Forest_Area_Hectars": 35.70262
5 }
6 ],
7 "status": "success"
8}
You can read more about Geostore and constructing SQL queries from in the Global Forest Watch tutorial.