curl "https://api.brightdata.com/zone" -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY" -d "{'zone':{'name':'zone_name'},'plan':{'type':'static|resident','ips_type':'shared|dedicated|selective','ip_alloc_preset':'shared_block','bandwidth':'payperusage|unlimited','mobile':false,'city':false,'asn':false,'vip':false,'vips_type':'shared|vip|domain','vips':0,'domain_whitelist':'test.com fb.com','not_country':null,'vip_country':'any','exclusive_sec':0,'exclusive_type':'days','exclusive_num':0,'ips':0}}"
Add a new zone
curl "https://api.brightdata.com/zone" -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY" -d "{'zone':{'name':'zone_name'},'plan':{'type':'static|resident','ips_type':'shared|dedicated|selective','ip_alloc_preset':'shared_block','bandwidth':'payperusage|unlimited','mobile':false,'city':false,'asn':false,'vip':false,'vips_type':'shared|vip|domain','vips':0,'domain_whitelist':'test.com fb.com','not_country':null,'vip_country':'any','exclusive_sec':0,'exclusive_type':'days','exclusive_num':0,'ips':0}}"
curl "https://api.brightdata.com/区域" -H "Content-Type: application/json" -H "身份验证: 持有者 API_KEY" -d "{'区域':{'名称':'区域_名称'},'计划':{'类型':'static','ips_类型':'shared','ip_alloc_preset':'shared_block'}}"
curl "https://api.brightdata.com/zone" -H "Content-Type: application/json" -H "Authorization: Bearer API_KEY" -d "{'zone':{'name':'zone_name'},'plan':{'type':'static|resident','ips_type':'shared|dedicated|selective','ip_alloc_preset':'shared_block','bandwidth':'payperusage|unlimited','mobile':false,'city':false,'asn':false,'vip':false,'vips_type':'shared|vip|domain','vips':0,'domain_whitelist':'test.com fb.com','not_country':null,'vip_country':'any','exclusive_sec':0,'exclusive_type':'days','exclusive_num':0,'ips':0}}"
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
显示 子属性
type of zone
static, resident, unblocker, browser_api Space separated list of allowlisted domains
domain_whitelist is required for selective
shared, dedicated, selective bandwidth: for bandwidth unlimited: enable unlimited bandwidth
bandwidth, unlimited To set a zone with Shared - Pay per usage type
shared_block, shared_res_block Number of static IPs to allocate to the zone
Specify which country IP to allocate to the zone, specify this parameter when ips_type=static
Country code followed by city (e.g. “se-stockholm”) - specify which City IP to allocate to the zone, specify this parameter when ips_type=static
true when adding a Mobile proxy zone, type value must be resident
true when adding a SERP API zone
true when enabling City targeting permission
true when enabling ASN targeting permission
true when allocating gIP (group of IPs)
specify this parameter when adding a Residential or Mobile zone
shared, domain Number of gIP (group of IPs) to allocate to the zone
Specify which country IP to allocate to the zone, specify this parameter when ips_type=resident and vip=true
Country code followed by city (e.g. “se-stockholm”) - specify which City IP to allocate to the zone, specify this parameter when ips_type=resident and vip=true
When pool_ip_type is set to static_res, the zone will use ISP IPs instead of data center IPs.
When set to true will enable access to premium domain.
When set to true it will disable captcha solving.
When set to true, allows users to include custom headers in their requests.
Zone added
此页面对您有帮助吗?