Export account cost data by dimension (products, zones, datasets, Web Scraper APIs, and more). Same source as Cost Explorer. JSON or CSV, per-day per-resource.
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.
GET /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 |
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:
filters fieldfilters 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:
Use your Bright Data API Key as a Bearer token in the Authorization header.
How to authenticate:
Authorization: Bearer YOUR_API_KEYExample:
Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07dfLearn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication
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"] } } }
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.