---
title: "POST /costs/export/csv"
method: POST
path: "/costs/export/csv"
---

# POST /costs/export/csv

`POST /costs/export/csv`

Same data as `POST /costs/export/json`, returned as CSV instead of JSON. The CSV pivots the response into one row per day, with one column per resource ID that appears in the date range. Column count therefore varies depending on the data. See [the JSON variant](/api-reference/account-management-api/Export_cost_breakdown) for the full request schema and the exclusive-`to` caveat.

## Request body

- object
  - `dimension` 'products' | 'types' | 'zones' | 'datasets' | 'web_apis' | 'collectors' | 'domains' | 'ws_api_snaps' | 'snapshots', required
  - `filters` object
  - `from` string, date, required
  - `to` string, date, required

## Response `200`

CSV with a `Day` column followed by one column per resource ID. Example body:

```csv
Day,gd_l1viktl72bvl7bjuj0,gd_l1vikfnt1wgvvqz95w
2026-04-01,45.20,12.80
2026-04-02,38.10,0
```

---

[API](https://skmtc.net/brightdata/apis/bright-data-api.md) · [All operations](https://skmtc.net/brightdata/apis/bright-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brightdata/bright-data-api/versions/7413c80b3b56/schema)
