Global Fishing Watch API
Examples4Wings Bins

Get SAR vessel detections bins for zoom 2 in a hourly interval

Example 4Wings bins request for SAR vessel detections at zoom 2 with an hourly interval.

Path parameters

ParameterValueDescription
z2Zoom level

Query parameters

ParameterValueDescription
datasets[0]public-global-sar-presence:latestSAR vessel detections dataset
temporal-aggregationfalseDon't aggregate values across time
num-bins9Number of bins to generate
intervalHOURHourly temporal resolution

Request

# Make sure to replace [TOKEN] with your API Access Token
curl --location --globoff 'https://gateway.api.globalfishingwatch.org/v3/4wings/bins/2?datasets[0]=public-global-sar-presence%3Alatest&temporal-aggregation=false&num-bins=9&interval=HOUR' \
  -H "Authorization: Bearer [TOKEN]" \

Response

{
  "total": 1,
  "limit": null,
  "offset": null,
  "nextOffset": null,
  "metadata": {},
  "entries": [
    [
      0, 0.6141656839622642, 2.13199378330373, 4.751082251082251, 8.484912146676853,
      13.063675088131609, 28.508133561643834, 45.34335191082803, 58.447841726618705
    ]
  ]
}