Brightdata(luminati):API解读–增加通道

命令

curl -X POST "https://brightdata.com/api/zone" -H "Content-Type: application/json" -H "Authorization: Bearer API_TOKEN" -d "{\"zone\":{\"name\":\"zone291231237\"},\"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}}"

参数解读:

大家关注一下plan,就是计划,这里有几个重要参数

  • type luminati代理ip类型
  • city 是否要定位到城市
  • domain_whitelist 独享ip的域名。在你填的域名里,你购买的这个ip只有你能使用

返回json

Sample Response: {"plan":{"start":"2019-07-15T18:08:59.269Z","type":"static","ips_type":"shared","ip_alloc_preset":"shared_block","bandwidth":"payperusage"},"zone":{"ips":"any","password":["PASSWORD"],"plans":[{"start":"2019-07-15T18:08:59.269Z","type":"static","ips_type":"shared","ip_alloc_preset":"shared_block","bandwidth":"payperusage"}]}}

文章列表 brightdata官网