Examples4Wings Stats
Get worldwide stats for a time period with no filter
Example 4Wings statistics request for worldwide apparent fishing effort over a time period, with no filters.
Query parameters
| Parameter | Value | Description |
|---|---|---|
datasets[0] | public-global-fishing-effort:latest | AIS apparent fishing effort dataset |
fields | FLAGS,VESSEL-IDS,ACTIVITY-HOURS | Fields to include in the response |
date-range | 2022-10-22,2023-01-22 | Filter to this time period |
Request
# Make sure to replace [TOKEN] with your API Access Token.
curl --location -g --request GET 'https://gateway.api.globalfishingwatch.org/v3/4wings/stats/?datasets[0]=public-global-fishing-effort:latest&fields=FLAGS,VESSEL-IDS,ACTIVITY-HOURS&date-range=2022-10-22,2023-01-22' \
-H 'Authorization: Bearer {access-token}'// Make sure to replace [TOKEN] with your API Access Token.
const res = await fetch(
'https://gateway.api.globalfishingwatch.org/v3/4wings/stats/?datasets[0]=public-global-fishing-effort:latest&fields=FLAGS,VESSEL-IDS,ACTIVITY-HOURS&date-range=2022-10-22,2023-01-22',
{ headers: { Authorization: 'Bearer {access-token}' } }
)
const data = await res.json()Response
[
{
"activityHours": 28570704.16737109,
"flags": 214,
"maxLat": null,
"maxLon": null,
"minLat": null,
"minLon": null,
"vesselIds": 87731
}
]Report Indonesia filter by matched detections - noisy vessel
Example 4Wings report for Indonesia filtered to SAR detections matched to AIS, showing a noisy vessel.
Get worldwide stats for a time period with gear type filter
Example 4Wings statistics request for worldwide apparent fishing effort over a time period, filtered by gear type.