跳转到主要内容
GET
/
zone
/
count_available_ips
cURL
curl --request GET \
  --url https://api.brightdata.com/zone/count_available_ips \
  --header 'Authorization: Bearer <token>'
{
  "count": 1234
}
请将 API 令牌粘贴到“授权”字段。 如需获取令牌,请创建账户并了解如何生成令牌Create an account, generate an API key
  • 当前区域计划中可用的 IP:
curl "https://api.brightdata.com/count_available_ips?zone=ZONE" -H "Authorization: Bearer API_KEY"
  • 抽象计划,专用 IP:
dedicated IPs
curl "https://api.brightdata.com/count_available_ips?plan=\{\"ips_type\":\"dedicated\"\}" -H "Authorization: Bearer API_KEY"
  • 抽象计划,共享 IP 位于美国:
curl "https://api.brightdata.com/count_available_ips?plan=\{\"country\":\"us\",\"ips_type\":\"shared\"\}" -H "Authorization: Bearer API_KEY"
  • 抽象计划,专用 IP 位于美国:
curl "https://api.brightdata.com/count_available_ips?plan=\{\"country\":\"us\",\"ips_type\":\"dedicated\"\}" -H "Authorization: Bearer API_KEY"
  • 抽象计划,共享 IP 位于美国丹佛:
curl "https://api.brightdata.com/count_available_ips?plan=\{\"ips_type\":\"shared\",\"country_city\":\"us-denver\",\"city\":true\}" -H "Authorization: Bearer API_KEY"
  • 抽象计划,共享 IP 位于美国,仅适用于以下域名:amazon.com 和 fb.com:
curl "https://api.brightdata.com/count_available_ips?plan=\{\"ips_type\":\"selective\",\"country\":\"us\",\"domain_whitelist\":\"amazon.com%20fb.com\"\}" -H "Authorization: Bearer API_KEY"
  • 抽象计划,共享 IP 位于美国,地理位置 IP 数据库:需同时存储在 maxminddbip 中:
curl "https://api.brightdata.com/count_available_ips?plan=\{\"ips_type\":\"shared\",\"country\":\"us\",\"geo_db\":\{\"maxmind\":true,\"dbip\":true\}\}" -H "Authorization: Bearer API_KEY"

Authorizations

Authorization
string
header
required

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:

Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df

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

Query Parameters

zone
string

name of the Zone

plan
object

Response

200 - application/json

OK

The response is of type object.

I