Global Fishing Watch API
Examples4Wings PNG Tiles

Filtering by time period for all vessel types

Example 4Wings PNG style request for AIS vessel presence across all vessel types over a time period.

Query parameters

ParameterValueDescription
intervalDAYDaily temporal resolution
datasets[0]public-global-presence:latestAIS vessel presence dataset
color#0066ccBlue color ramp
date-range2020-01-01,2020-01-31Filter to January 2020

Request

# Make sure to replace [TOKEN] with your API Access Token.
curl --location --request POST 'https://gateway.api.globalfishingwatch.org/v3/4wings/generate-png?interval=DAY&datasets[0]=public-global-presence:latest&color=%230066cc&date-range=2020-01-01,2020-01-31' \
  -H "Authorization: Bearer [TOKEN]"

Response

{
  "colorRamp": {
    "stepsByZoom": {
      "0": [
        {
          "color": "rgba(0,102,204,127)",
          "value": 2845
        },
        {
          "color": "rgba(0,102,204,153)",
          "value": 4321
        },
        {
          "color": "rgba(0,102,204,178)",
          "value": 6234
        },
        {
          "color": "rgba(0,102,204,25)",
          "value": 156
        },
        {
          "color": "rgba(0,102,204,51)",
          "value": 567
        },
        {
          "color": "rgba(0,102,204,76)",
          "value": 1234
        },
        {
          "color": "rgba(0,102,204,102)",
          "value": 1892
        },
        {
          "color": "rgba(0,102,204,255)",
          "value": 8945
        },
        {
          "color": "rgba(0,102,204,0)",
          "value": 0
        }
      ]
    }
  },
  "url": "https://gateway.api.globalfishingwatch.org/v3/4wings/tile/heatmap/{z}/{x}/{y}?format=PNG&interval=DAY&datasets[0]=public-global-presence:latest&date-range=2020-01-01,2020-01-31&style=eyJjb2xvciI6WzAsMTAyLDIwNF0sInJhbXAiOlswLDE1Niw1NjcsMTIzNCwxODkyLDI4NDUsNDMyMSw2MjM0LDg5NDVdfQ=="
}