Global Fishing Watch API
API v3Bulk Download

Query report results in JSON

The query endpoint allows us to get the data in JSON format

The query endpoint allows us to get the data in JSON format.

Get Data in JSON Format Examples

These examples are available:

  1. Example 1 (GET) - Get data as json sort by structure start date DESC
  2. Example 2 (GET) - Get data as json sort by detection date ASC
  3. Example 3 (GET) - Get data as json sort by label
  4. Example 4 (GET) - Get data as json sort by label confidence
  5. Example 5 (GET) - Get data as json sort by structure start date DESC and only structure id field
  6. Example 6 (GET) - Get data as json sort by structure end date ASC and only 3 fields

Get Data in JSON Format - Specifications

GET https://gateway.api.globalfishingwatch.org/v3/bulk-reports/:id/query

GET
/api/v3/bulk-reports/{id}/query

Authorization

ApiKeyAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

limit*number

Amount of search results to return.

Range1 <= value
offset*number

Offset into the search results, used for pagination. It starts at 0. It is used in combination with the param “limit”. For example, you send limit = 5 and you get in the response total vessels =10. So, If you send offset =0, you will get the first 5 results (first page). Therefore, in order to get the second page, you need to send offset = 5 which is the position of the first element you want from the second page.

Range0 <= value
sort?string

Query to sort the list of resources. The column name must exists in the data to retrieve

includes?array<string>

Optional. Fields to include

curl -X GET "https://example.com/api/v3/bulk-reports/string/query?limit=1&offset=0"
{  "entries": [    {}  ],  "limit": 10,  "metadata": {},  "nextOffset": 10,  "offset": 0,  "total": 152}

Get Data in JSON Format - Response fields

Since this is the same dataset Fixed infrastructure detections from Sentinel-1 and Sentinel-2 from our Data Download Portal, you can find the definitions of each field there

Returns a paginated list of detections from the Fixed Infrastructure dataset.

NameTypeRequiredRestrictionsDescription
detection_idstringfalse-Unique ID of the satellite detection
detection_datestringfalsedate (YYYY-MM-DD)Date of the detection
structure_idstringtrue-Unique ID that groups all detections of the same structure
lonnumbertruefloatLongitude of the detection
latnumbertruefloatLatitude of the detection
structure_start_datestringfalsedate (YYYY-MM-DD)First detection date of the structure
structure_end_datestringfalsedate (YYYY-MM-DD) or nullLast detection date of the structure
labelstringfalseoil, wind, unknownPredicted type of offshore structure
label_confidencestringfalselow, medium, highClassification confidence of the label

On this page