Skip to main content
GET
Domain usage metrics

示例请求

授权

Authorization
string
header
必填

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

路径参数

metric
enum<string>
必填

Metric type to query:

Available Metrics

  • /bw - Bandwidth consumption
  • /req - Request count
可用选项:
bw,
req

查询参数

from
string<date>
必填

Start date (YYYY-MM-DD)

示例:

"2025-12-01"

to
string<date>
必填

End date (YYYY-MM-DD)

示例:

"2025-12-10"

zones
string

Zone name filter. Omit to include all zones.

示例:

"zone_name"

响应

Successful response

The response is of type object.