---
title: "FetchBinaryLogsUrl"
method: GET
path: "/binary-logs/url"
tags: ["Binary Logs"]
---

# FetchBinaryLogsUrl

`GET /binary-logs/url`

Fetches the URL to a zip file containing one or more binary log files for the requested device and time range.
The returned URL can be used to download the zip file.

For more information, see the [nRF Cloud documentation on binary logs](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/AlertsAndLogs/Logs.html#downloading-binary-logs-through-the-api).

## Query parameters

- `deviceId` string, required — This is the canonical device id used in the device certificate, and as the MQTT client id.
- `start` string, date-time — HTML-encoded ISO-8601 date-time string denoting the start or end of a date range. If the string includes only a date, the time is the beginning of the day (00:00:00).
- `end` string, date-time — HTML-encoded ISO-8601 date-time string denoting the start or end of a date range. If the string includes only a date, the time is the beginning of the day (00:00:00).

## Response `200`

Ok

- FileDownloadInfo
  - `url` string, url, required — The URL to download the file from.
  - `contentLength` number, double, required — Content length of the file in bytes.

---

[API](https://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api.md) · [All operations](https://skmtc.dev/nrfcloud/apis/nrf-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nrfcloud/nrf-cloud-rest-api/revisions/c4e56e458ebf/schema)
