Luminati最新Api文档
在介绍luminati的Api文档前先解释几个名词- ZONE:通道,使用api的代理信息都是基于当前通道的
- CUSTOMER 用户名,从通道里获取的帐户ID,并不是Luminati账户
- PASSWORD 密码,从通道里获取的账户密码,并不是luminati账户密码
- COUNTRY 希望请求的国家代码。 (例如,美国的“ -country-us”)
- API_TOKEN 帐户设置中创建的令牌
获取区域的带宽统计信息
API :GET /api/customer/bw
可选参数:from=2018-07-01T00:00:00&to=2018-07-02T00:00:00
curl "https://luminati.io/api/zone/bw?zone=ZONE" -H "Authorization: Bearer API_TOKEN"
curl "https://luminati.io/api/zone/bw?customer=CUSTOMER&zone=ZONE&details=1" -H "X-Lum-Auth: lum-customer-CUSTOMER-zone-ZONE-key-PASSWORD"
获取区域的总成本和带宽统计信息
API :GET /api/zone/cost
可选参数:from=2018-07-01T00:00:00&to=2018-07-02T00:00:00
curl "https://luminati.io/api/zone/cost?zone=ZONE" -H "Authorization: Bearer API_TOKEN"
curl "https://luminati.io/api/zone/cost?customer=CUSTOMER&zone=ZONE" -H "X-Lum-Auth: lum-customer-CUSTOMER-zone-ZONE-key-PASSWORD"
获取所有区域的带宽统计信息
API :GET /api/customer/bw
可选参数:from=2018-07-01T00:00:00&to=2018-07-02T00:00:00
curl "https://luminati.io/api/customer/bw" -H "Authorization: Bearer API_TOKEN" curl "https://luminati.io/api/customer/bw?customer=CUSTOMER&details=1" -H "X-Lum-Auth: lum-customer-CUSTOMER-zone-ZONE-key-PASSWORD"获取可用IP
API :GET /api/zone/count_available_ips
可选参数:from=2018-07-01T00:00:00&to=2018-07-02T00:00:00