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

# POST /costs/export/json

`POST /costs/export/json`

Export account cost data broken down by dimension (products, zones, datasets, Web Scraper APIs, and more) as JSON. This is the same data source the Control Panel's Cost Explorer uses. 

 **Note:** the `to` parameter is **exclusive**. The day specified is not included in the result. To match a calendar month shown in the Control Panel or on your invoice, set `to` to the first day of the **following** month (e.g., `from=2026-04-01` and `to=2026-05-01` returns all of April 2026).

## Request body

- object
  - `dimension` 'products' | 'types' | 'zones' | 'datasets' | 'web_apis' | 'collectors' | 'domains' | 'ws_api_snaps' | 'snapshots', required — The dimension to group costs by. Same dimension semantics as the Control Panel Cost Explorer.
  - `filters` object — Optional filter object. Uses Bright Data's internal charges-structure notation and requires knowledge of that structure to construct. Contact Bright Data support if you need help building a filter. Example: `{ "props": { "product": { "whitelist": ["dc", "unblocker"] } } }`
  - `from` string, date, required — Inclusive start date in `YYYY-MM-DD` format. UTC.
  - `to` string, date, required — **Exclusive** end date in `YYYY-MM-DD` format. UTC. The day specified is NOT included in the result. To match a calendar month, set `to` to the first day of the **following** month (e.g., `from=2026-04-01&to=2026-05-01` returns all of April 2026).

## Response `200`

Cost breakdown grouped by day, then by resource ID. The resource ID format depends on the requested dimension (e.g., for `dimension=web_apis`, resource IDs are dataset IDs like `gd_l1viktl72bvl7bjuj0`). Amounts are billed USD for the day.

- object

---

[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)
