身份验证
每个 Shifter 产品都有自己的认证模式。请选择与你的套餐匹配的部分。
Residential Proxies
Section titled “Residential Proxies”每次请求使用同一个网关、用户名和密码。没有 IP 白名单,凭证是唯一的认证方式。
p.shifter.io:443用户名还编码了路由选项:
customer-USERNAME # default (rotate, no geo)customer-USERNAME-country-us # geo-target UScustomer-USERNAME-country-us-region-california # region/state-levelcustomer-USERNAME-country-us-city-new_york # city-levelcustomer-USERNAME-country-us-asn-7922 # ASN-level (Comcast)customer-USERNAME-sid-abc123 # sticky session, default 120s TTLcustomer-USERNAME-sid-abc123-ttl-600 # sticky session, custom 600s TTLcustomer-USERNAME-country-us-strict-true # 502 if no exact matchISP Proxies
Section titled “ISP Proxies”每个固定 IP 使用相同的端口(1337),代理之间只有 IP 不同。在控制面板的 ISP Proxies 下,为你的套餐选择两种认证模式之一。
授权源 IP —— 在控制面板中将你服务器的 IP 加入白名单,无需凭证即可连接:
185.199.108.153:1337185.199.108.154:1337185.199.108.155:1337用户名 + 密码 —— 可在任何地方使用,无需白名单。控制面板会按以下格式为每个 IP 生成一行:
185.199.108.153:1337:USERNAME:PASSWORD185.199.108.154:1337:USERNAME:PASSWORD185.199.108.155:1337:USERNAME:PASSWORD参见 ISP Proxies → Quickstart 和 Managing IPs。
Legacy plans
Section titled “Legacy plans”传统端口列表套餐会为你的账户绑定一段固定的端口范围。每个端口都有自己的子域名。认证仅通过源 IP 进行,在控制面板中将你服务器的 IP 加入白名单,然后即可连接到列表中的任意端口:
apollo.p.shifter.io:10001zeus.p.shifter.io:10002cronos.p.shifter.io:10003API products (Web Scraping, SERP, Amazon)
Section titled “API products (Web Scraping, SERP, Amazon)”使用 API 密钥作为查询参数。在控制面板中每个产品的 API 设置下生成密钥。
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com"切勿将 API 密钥提交到源代码管理系统,请使用环境变量或密钥管理器。
Rate limits
Section titled “Rate limits”| Product | Limit | Overage |
|---|---|---|
| Residential Proxies | 带宽池(GB/月) | 按 GB 付费的额外流量 |
| ISP Proxies | 每个 IP 的并发数 | 无限带宽,无超额费用 |
| Legacy plans | 每个端口的并发数 | 在控制面板中购买额外流量 |
| Web Scraping API | 每月额度 | 升级到更大的套餐 |
| SERP API | 每月额度 | 升级到更大的套餐 |