账户管理
Account management
-
通过API获取balance
API endpoint: GET /api/customer/balance Sample Response: {"balance":456,"pending_costs":123} balance : the amount of money in your account pending_costs : the amount of money you will be billed for, as of this moment, in the next ...
-
获取代理通道信息
API endpoint: GET /api/zone Sample Response: {"ips":"any","password":["PASSWORD"],"plans":[{"start":"2019-07-15T18:08:59.269Z","type":"static","ips_type":"shared","ip_alloc_preset":"shared_block","bandwidth":"payperusage"}]} Shel...
-
添加代理通道
API endpoint: POST /api/zone POST body : zone [JSON] [Required] name=NAME [string] - Zone name plan [JSON] [Required] type="static|resident|unblocker" [string] 'static' : Datacenter, ISP 'resident' : Residential, Mobile, SE...
-
移除代理通道
API endpoint: DELETE /api/zone Shell curl -X DELETE "https://brightdata.com/api/zone" -H "Content-Type: application/json" -H "Authorization: Bearer API_TOKEN" -d "{\"zone\":\"ZONE\"}" Node.js #!/usr/bin/env node require('request-...
-
获取通道密码
API endpoint: GET /api/zone/passwords Sample Response: {"passwords":["psw1","psw2"]} Shell curl "https://brightdata.com/api/zone/passwords?zone=ZONE" -H "Authorization: Bearer API_TOKEN" Node.js #!/usr/bin/env node require('reque...
-
获取使用通道权限
API endpoint: GET /api/zone/permissions Sample Response: {"perms":["city","google"]} Shell curl "https://brightdata.com/api/zone/permissions?zone=ZONE" -H "Authorization: Bearer API_TOKEN" Node.js #!/usr/bin/env node require('req...