Global Fishing Watch API
Examples4Wings PNG Tiles

Filtering any SAR vessel detections by time period

Example 4Wings PNG style request for all SAR vessel detections over a time period.

Query parameters

ParameterValueDescription
intervalDAYDaily temporal resolution
color#361c0cBrown color ramp
date-range2020-01-01,2020-01-31Filter to January 2020
datasets[0]public-global-sar-presence:latestSAR vessel detections dataset

Request

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

Response

{
  "colorRamp": {
    "stepsByZoom": {
      "0": [
        {
          "color": "rgba(54,28,12,127)",
          "value": 1711
        },
        {
          "color": "rgba(54,28,12,153)",
          "value": 2662
        },
        {
          "color": "rgba(54,28,12,178)",
          "value": 3925
        },
        {
          "color": "rgba(54,28,12,25)",
          "value": 93
        },
        {
          "color": "rgba(54,28,12,51)",
          "value": 319
        },
        {
          "color": "rgba(54,28,12,76)",
          "value": 660
        },
        {
          "color": "rgba(54,28,12,102)",
          "value": 1108
        },
        {
          "color": "rgba(54,28,12,255)",
          "value": 6584
        },
        {
          "color": "rgba(54,28,12,0)",
          "value": 0
        }
      ]
    }
  },
  "url": "https://gateway.api.globalfishingwatch.org/v3/4wings/tile/heatmap/{z}/{x}/{y}?format=PNG&interval=DAY&datasets[0]=public-global-sar-presence:latest&date-range=2020-01-01,2020-01-31&style=eyJjb2xvciI6WzU0LDI4LDEyXSwicmFtcCI6WzAsOTMsMzE5LDY2MCwxMTA4LDE3MTEsMjY2MiwzOTI1LDY1ODRdfQ=="
}