Global Fishing Watch API
Examples4Wings Reports

Generate report with total fishing hours per Lat/Lon grid cell using existing regions (MPA Dorsal de Nasca) in JSON format

Example 4Wings report of total fishing hours per lat/lon grid cell in the Dorsal de Nasca MPA, as JSON.

To get details of existing regions, check Regions in the Reference data section

GET

Query parameters

ParameterValueDescription
spatial-resolutionLOWLow spatial resolution
temporal-resolutionENTIREAggregate over the entire date range
spatial-aggregationfalseDon't aggregate spatially (per grid cell)
datasets[0]public-global-fishing-effort:latestAIS apparent fishing effort dataset
date-range2022-05-01,2022-12-01Filter to this time period
formatJSONResponse format
region-id555745302MPA Dorsal de Nasca region id
region-datasetpublic-mpa-allExisting region dataset

Request

# Make sure to replace [TOKEN] with your API Access Token.
curl --location -g --request GET 'https://gateway.api.globalfishingwatch.org/v3/4wings/report?spatial-resolution=LOW&temporal-resolution=ENTIRE&spatial-aggregation=false&datasets[0]=public-global-fishing-effort:latest&date-range=2022-05-01,2022-12-01&format=JSON&region-id=555745302&region-dataset=public-mpa-all'\
--header 'Authorization: Bearer [TOKEN]' \
--header 'Content-Type: application/json' \
--output 'report-grouped.json'

POST

Query parameters

ParameterValueDescription
spatial-resolutionLOWLow spatial resolution
temporal-resolutionENTIREAggregate over the entire date range
spatial-aggregationfalseDon't aggregate spatially (per grid cell)
datasets[0]public-global-fishing-effort:latestAIS apparent fishing effort dataset
date-range2022-05-01,2022-12-01Filter to this time period
formatJSONResponse format

Request body

FieldValueDescription
region.datasetpublic-mpa-allExisting region dataset
region.id555745302MPA Dorsal de Nasca region id

Request

# Make sure to replace [TOKEN] with your API Access Token.
curl --location -g --request POST 'https://gateway.api.globalfishingwatch.org/v3/4wings/report?spatial-resolution=LOW&temporal-resolution=ENTIRE&spatial-aggregation=false&datasets[0]=public-global-fishing-effort:latest&date-range=2022-05-01,2022-12-01&format=JSON'\
--header 'Authorization: Bearer [TOKEN]' \
--header 'Content-Type: application/json' \
--output 'report-grouped.json' \
--data-raw '{
    "region": {
        "dataset": "public-mpa-all",
        "id": 555745302
    }
}'

Response

{
  "total": 1,
  "limit": null,
  "offset": null,
  "nextOffset": null,
  "metadata": {},
  "entries": [
    {
      "public-global-fishing-effort:v3.0": [
        {
          "date": "2022-05-01,2022-12-01",
          "hours": 0.5788888888888889,
          "lat": -16,
          "lon": -77
        },
        {
          "date": "2022-05-01,2022-12-01",
          "hours": 1.2480555555555557,
          "lat": -15.3,
          "lon": -77.8
        }
      ]
    }
  ]
}

On this page