Examples4Wings Interaction
Get AIS apparent fishing effort cell details
Example Interaction request returning the AIS apparent fishing effort behind a single tile cell.
Path parameters
| Parameter | Value | Description |
|---|---|---|
z/x/y/cells | 1/0/0/107 | Tile coordinates and cell index |
Query parameters
| Parameter | Value | Description |
|---|---|---|
date-range | 2021-01-01,2021-12-31 | Filter to 2021 |
datasets[0] | public-global-fishing-effort:latest | AIS apparent fishing effort dataset |
Request
# Make sure to replace [TOKEN] with your API Access Token.
curl --location -g --request GET 'https://gateway.api.globalfishingwatch.org/v3/4wings/interaction/1/0/0/107?date-range=2021-01-01,2021-12-31&datasets[0]=public-global-fishing-effort:latest' \
-H "Authorization: Bearer [TOKEN]"// Make sure to replace [TOKEN] with your API Access Token.
const res = await fetch(
'https://gateway.api.globalfishingwatch.org/v3/4wings/interaction/1/0/0/107?date-range=2021-01-01,2021-12-31&datasets[0]=public-global-fishing-effort:latest',
{ headers: { Authorization: 'Bearer [TOKEN]' } }
)
const data = await res.json()Response
fishing hours and vessel id that allow you to get more detail of a vessel by using the Vessel API
{
"total": 1,
"limit": null,
"offset": null,
"nextOffset": null,
"metadata": {},
"entries": [
[
{
"hours": 11.455833333333334,
"id": "f2134364c-c3d5-8ee9-ddd4-5511c0500a50"
},
{
"hours": 9.895,
"id": "f042d0bcf-fe96-cad5-5833-36b4aff2e87a"
},
{
"hours": 12.617222222222221,
"id": "e2d464a53-35ed-f059-c7e2-1ac76e12c9cc"
}
]
]
}