# Get last report generated (/docs/v3/4wings/last-report)



Get the last report generated. This endpoint allows you to download the last report requested without generating it again. The endpoint only saves the last report for 30 minutes after its generation.

### Get last report - Specifications [#get-last-report---specifications]

`GET https://gateway.api.globalfishingwatch.org/v3/4wings/last-report`

<OpenAPIPage document="apiv3" operations="[{ path: '/v3/4wings/last-report', method: 'get' }]" hasHead="false" />

### Get last report - Responses [#get-last-report---responses]

The endpoint can return 4 different responses depending of the last report status:

* **Report running**. The report continues executing. It returns a json response with the info of the report running. Example:

```json
{
  "uri": "/v3/4wings/report?format=JSON&datasets%5B0%5D=public-global-fishing-effort%3Av3.0&date-range=2023-12-31T00%3A00%3A00.000Z%2C2024-01-10T00%3A00%3A00.000Z&spatial-aggregation=true&temporal-resolution=ENTIRE&region-dataset=public-eez-areas&group-by=VESSEL_ID",
  "status": "running",
  "lastUpdate": "2024-02-05T13:34:06+0000"
}
```

* **Report finished correctly**. In this case the response will be the same that the original request sent (See possibles responses of the report endpoint).
* **Report finished with error**. In this case the response will be a json with the info of the error. Example:

```json
{
  "message": {
    "statusCode": 422,
    "error": "Unprocessable Entity",
    "messages": [
      {
        "title": "region-id",
        "detail": "region-id query param is required"
      }
    ]
  },
  "status": 422
}
```

* **Report not found**. In this case the endpoint return a 404 error. This can occurr because the last report response is only saved during 30 min after the report finished.
