Skip to content

Instantly share code, notes, and snippets.

@giselamo
Last active July 4, 2023 16:12
Show Gist options
  • Save giselamo/f170ca9e817a0f25a94d7f9aa256afc0 to your computer and use it in GitHub Desktop.
Save giselamo/f170ca9e817a0f25a94d7f9aa256afc0 to your computer and use it in GitHub Desktop.
EVENTS API: Get Fishing Events - Example 1
curl --location --request GET 'https://gateway.api.globalfishingwatch.org/v2/events?vessels=194e0b3e7-7313-0cbf-8e00-56c8b23b88dd&datasets=public-global-fishing-events:latest&start-date=2015-01-01&end-date=2023-03-01&limit=1&offset=0' \
--header 'Authorization: Bearer [YOUR TOKEN]'
{
"metadata": {
"datasets": [
"public-global-fishing-events:v20201001"
],
"vessels": [
"194e0b3e7-7313-0cbf-8e00-56c8b23b88dd"
],
"dateRange": {
"from": "2015-01-01",
"to": "2023-03-01"
},
"encounterTypes": []
},
"total": 976,
"nextOffset": 1,
"offset": 0,
"limit": 1,
"entries": [
{
"id": "facd1997b6de55d1f70bdfe45cfac303",
"type": "fishing",
"start": "2015-11-19T15:47:32.000Z",
"end": "2015-11-19T17:40:51.000Z",
"position": {
"lat": -9.2214,
"lon": -79.2524
},
"regions": {
"mpa": [],
"eez": [
"8432"
],
"rfmo": [
"IATTC",
"IWC",
"CPPS",
"ACAP"
],
"fao": [
"87",
"87.1.1",
"87.1.14",
"87.1"
],
"major_fao": [
"87"
],
"eez12nm": [],
"high_seas": [],
"mpa_no_take_partial": [],
"mpa_no_take": []
},
"boundingBox": [
-79.2721333333,
-9.2314566667,
-79.2384783333,
-9.21388
],
"distances": {
"startDistanceFromShoreKm": 68,
"endDistanceFromShoreKm": 65,
"startDistanceFromPortKm": 74.042609,
"endDistanceFromPortKm": 70.22568799999999
},
"vessel": {
"id": "194e0b3e7-7313-0cbf-8e00-56c8b23b88dd",
"flag": "PER",
"name": "TASA 41",
"type": "fishing",
"ssvid": "760000850"
},
"fishing": {
"totalDistanceKm": 6.322972519132952,
"averageSpeedKnots": 4.850000061087501,
"averageDurationHours": 0.2698015873015873
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment