Skip to content

Instantly share code, notes, and snippets.

@giselamo
Last active July 4, 2023 16:09
Show Gist options
  • Save giselamo/cb929b52b7b09d698e4f072b18eff5ad to your computer and use it in GitHub Desktop.
Save giselamo/cb929b52b7b09d698e4f072b18eff5ad to your computer and use it in GitHub Desktop.
EVENTS API: Get all events (POST) using region ID
curl --location --request POST 'https://gateway.api.globalfishingwatch.org//v2/events?offset=0&limit=1' \
--header 'Authorization: Bearer [YOUR TOKEN]' \
--header 'Content-Type: application/json' \
--data-raw '{
"datasets": [ "public-global-encounters-events:latest"],
"startDate": "2017-01-01",
"endDate": "2017-03-31",
"region": {
"dataset": "public-eez-areas",
"id": 8371
}
}'
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment