Global Fishing Watch API
API v3Bulk Download

Create a new Bulk Report

Create a bulk download report that allow you to get bulk access to large data slices, starting with fixed infrastructure detections from Sentinel-1 and Sentinel-2 imagery.

Create a Bulk Report examples

These examples are available:

  1. Example 1 (POST) - Generate SAR fixed infrastructure report for Argentina EEZ with filter by label = 'oil' and structure_start_date
  2. Example 2 (POST) - Generate report for Argentina EEZ with filter by label_confidence = 'high'
  3. Example 3 (POST) - Generate report for Argentina EEZ with filter by label_confidence = 'medium'
  4. Example 4 (POST) - Generate report for Argentina EEZ with filter by label_confidence = 'low'
  5. Example 5 (POST) - Generate report for Argentina EEZ with filter by structure_id = 313068
  6. Example 6 (POST) - Generate report for Argentina EEZ with filters by structure_start_date and structure_end_date
  7. Example 7 (POST) - Generate report using custom GeoJSON region with filters by label and date range

Bulk Report - Specifications

POST https://gateway.api.globalfishingwatch.org/v3/bulk-reports

POST
/api/v3/bulk-reports

Authorization

ApiKeyAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

dataset*string

Specify the dataset that will be used to generate the report.

filters*array<string>

Filter to apply to the report

format?string

Output format

Value in

  • "CSV"
  • "JSON"
geojson?

Geojson of the region to filter

name*string

Name of the report

region?

Geojson of the region to filter

curl -X POST "https://example.com/api/v3/bulk-reports" \  -H "Content-Type: application/json" \  -d '{    "dataset": "public-global-dataset:latest",    "filters": [      "type = \'fishing\'"    ],    "name": "my-report"  }'
{  "createdAt": "2019-08-24T14:15:22Z",  "dataset": "string",  "fileSize": 0,  "filepath": "fixed_infrastructure_202407.csv",  "filters": [    "type = 'fishing'"  ],  "format": "",  "geom": {},  "id": "",  "name": "my-report",  "ownerId": 0,  "ownerType": "string",  "status": "pending",  "updatedAt": "2019-08-24T14:15:22Z"}

Bulk Report POST - Body

ParameterDescriptionRequiredFormatParam Type
nameName of your reporttruestringbody
datasetSpecify the dataset used to generate the report (e.g., public-fixed-infrastructure-data:latest)truestringbody
geojsonGeoJSON object defining a custom region to filtertruestring (GeoJSON)body
formatOutput format of the report. Available options: CSV or JSONtrueEnum: [CSV, JSON]body
regionPredefined region object including dataset and id (e.g., EEZ, MPA, RFMO). See region datasetfalseobjectbody
filtersArray of filters to apply. For public-fixed-infrastructure-data:latest, available filters include:
label (oil, wind, unknown)
structure_start_date (date format YYYY-MM-DD)
structure_end_date (date format YYYY-MM-DD)
label_confidence (low, medium, high)
structure_id (integer or string)

Example:
["label = 'oil'", "structure_start_date between '2020-01-01' and '2025-01-01'"]
truearray of stringsbody

Bulk Report - 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.

NameTypeRequiredRestrictionsDescription
idstringtrueUUID formatUnique identifier of the report
datasetstringtruee.g. public-fixed-infrastructure-data:v1.1API dataset used to generate the report. The response may contain the resolved version of an alias such as latest.
namestringtrueName assigned to the report
filepathstringtruee.g. fixed_infrastructure_202407.csvFile name inside of the dataset
formatstringtrueEnum: CSV, JSONFormat of the report output
filtersarraytrueArray of stringsList of applied filters (e.g. date range, label, confidence)
geomobjecttrueGeography used for the report (region ID or custom GeoJSON)
statusstringtrueEnum: pending, processing, done, failedCurrent status of the report
ownerIdnumbertrueID of the user or application that generated the report
ownerTypestringtrueType of owner (e.g. user-application)
createdAtdatetimetrueISO 8601 formatTimestamp when the report was created
updatedAtdatetimetrueISO 8601 formatTimestamp when the report was last updated
fileSizenumberfalseSize of the final report file (if available)

On this page