v1
latestOpenAPI 3.0.12026-07-1344998.2 KBExport 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).
post/costs/export/json
Request body
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.
object required
Example response
{
"2026-04-01": {
"gd_l1viktl72bvl7bjuj0": 45.2,
"gd_l1vikfnt1wgvvqz95w": 12.8
},
"2026-04-02": {
"gd_l1viktl72bvl7bjuj0": 38.1
}
}