Skip to content
登录 注册

身份验证

每个 Shifter 产品都有自己的认证模式。请选择与你的套餐匹配的部分。

每次请求使用同一个网关、用户名和密码。没有 IP 白名单,凭证是唯一的认证方式。

p.shifter.io:443

用户名还编码了路由选项:

customer-USERNAME # default (rotate, no geo)
customer-USERNAME-country-us # geo-target US
customer-USERNAME-country-us-region-california # region/state-level
customer-USERNAME-country-us-city-new_york # city-level
customer-USERNAME-country-us-asn-7922 # ASN-level (Comcast)
customer-USERNAME-sid-abc123 # sticky session, default 120s TTL
customer-USERNAME-sid-abc123-ttl-600 # sticky session, custom 600s TTL
customer-USERNAME-country-us-strict-true # 502 if no exact match

每个固定 IP 使用相同的端口(1337),代理之间只有 IP 不同。在控制面板ISP Proxies 下,为你的套餐选择两种认证模式之一。

授权源 IP —— 在控制面板中将你服务器的 IP 加入白名单,无需凭证即可连接:

185.199.108.153:1337
185.199.108.154:1337
185.199.108.155:1337

用户名 + 密码 —— 可在任何地方使用,无需白名单。控制面板会按以下格式为每个 IP 生成一行:

185.199.108.153:1337:USERNAME:PASSWORD
185.199.108.154:1337:USERNAME:PASSWORD
185.199.108.155:1337:USERNAME:PASSWORD

参见 ISP Proxies → QuickstartManaging IPs

传统端口列表套餐会为你的账户绑定一段固定的端口范围。每个端口都有自己的子域名。认证仅通过源 IP 进行,在控制面板中将你服务器的 IP 加入白名单,然后即可连接到列表中的任意端口:

apollo.p.shifter.io:10001
zeus.p.shifter.io:10002
cronos.p.shifter.io:10003

控制面板或通过传统管理 API管理已授权的 IP。

使用 API 密钥作为查询参数。在控制面板中每个产品的 API 设置下生成密钥。

Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com"

切勿将 API 密钥提交到源代码管理系统,请使用环境变量或密钥管理器。

ProductLimitOverage
Residential Proxies带宽池(GB/月)按 GB 付费的额外流量
ISP Proxies每个 IP 的并发数无限带宽,无超额费用
Legacy plans每个端口的并发数在控制面板中购买额外流量
Web Scraping API每月额度升级到更大的套餐
SERP API每月额度升级到更大的套餐