Cost breakdown export
Export account cost data by dimension (products, APIs, datasets, Web Scraper APIs). Same source as Cost Explorer. JSON or CSV per-day, 200 OK on success.
This endpoint exports the same per-day, per-resource cost breakdown that the Control Panel’s Cost Explorer displays, in JSON or CSV, grouped by the dimension you pick (products, zones, datasets, Web Scraper APIs, collectors, domains, dataset snapshots, or WSA snapshots).Documentation Index
Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
Use this file to discover all available pages before exploring further.
When to use this endpoint
Use this endpoint when you need cost data thatGET /zone/cost cannot return. The /zone/cost endpoint is scoped to a single zone, which means it cannot break down Web Scraper API costs (those are keyed by dataset_id, not by zone name) and it cannot answer questions like “What did I spend on datacenter and unlocker proxies combined last month?”.
This endpoint accepts a dimension parameter that groups costs by the same buckets the Control Panel Cost Explorer uses.
| Dimension | Groups costs by |
|---|---|
products | Product family (datacenter, residential, ISP, mobile, unlocker, SERP API, Browser API, and so on) |
types | Network or charge type |
zones | Individual zones in your account |
datasets | Dataset Marketplace dataset purchases |
web_apis | Web Scraper API dataset_ids |
collectors | Scraper Studio collectors |
domains | Target domains |
ws_api_snaps | Web Scraper API snapshots |
snapshots | Dataset snapshots |
Reproduce your monthly invoice for a dimension
To retrieve the full monthly cost broken down by Web Scraper API datasets for April 2026:POST /costs/export/csv with the identical request body. The CSV pivots the response into one row per day with one column per resource ID that appears in the date range, so column count varies with the data:
Using the filters field
The filters object uses Bright Data’s internal charges-structure notation, the same notation used by Cost Explorer. Building a filter from scratch requires knowledge of that structure. Most callers leave filters empty ({}) and rely on the dimension parameter to scope the response.
One working example, restricting the result to datacenter and Web Unlocker products:
Rate limits
- 1,000 requests per minute
- 5,000 requests per hour
Reconciling with raw request logs
The values returned by this endpoint are the source of truth for billing. They match the Control Panel’s Cost Explorer and Usage Overview, and they roll up into your invoice. If you compare these values against raw request logs you collect yourself (for example, access logs forwarded to Logz or CloudWatch), expect differences of a few percent. Raw logs may capture requests that were never committed to the billing database because of async aggregation timing or transient network issues. Your invoice always reflects the values returned by this endpoint.Related endpoints
- Total cost & bandwidth for a zone. Single-zone cost and bandwidth over a date range. Cannot return Web Scraper API or Scraper Studio cost.
- Bandwidth stats for a zone. Bandwidth only, no cost.
- Bandwidth stats for all your Zones. Aggregate bandwidth across zones.
Authorizations
Use your Bright Data API Key as a Bearer token in the Authorization header.
How to authenticate:
- Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
- Include the API Key in the Authorization header of your requests
- Format:
Authorization: Bearer YOUR_API_KEY
Example:
Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df
Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication
Body
The dimension to group costs by. Same dimension semantics as the Control Panel Cost Explorer.
products, types, zones, datasets, web_apis, collectors, domains, ws_api_snaps, snapshots Inclusive start date in YYYY-MM-DD format. UTC.
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).
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"] } } }
Response
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.