跳转到主要内容
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

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

zone
string

name of the Zone

plan
object

Response

200 - application/json

OK

The response is of type object.