---
title: "Download export"
method: POST
path: "/websites/exportDownload"
tags: ["Websites"]
---

# Download export

`POST /websites/exportDownload`

## Request

- Base URL: `https://api.databuddy.cc`
- URL: `https://api.databuddy.cc/websites/exportDownload`
- Auth: API key in header `x-api-key`

Downloads analytics export. Requires read permission.

## Request body

- object
  - `websiteId` string, required
  - `format` 'csv' | 'json' | 'txt' | 'proto'
  - `startDate` string
  - `endDate` string

## Response `200`

OK

- object
  - `filename` string, required
  - `data` string, required
  - `metadata` object, required

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500
- `503`: 503

---

[API](https://skmtc.dev/databuddy/apis/databuddy-api.md) - [All operations](https://skmtc.dev/databuddy/apis/databuddy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/databuddy/apis/databuddy-api/revisions/ddfbba648d52?raw)
