Skip to content
登录 注册

快速入门

在不到一分钟的时间内发出你的第一个代理请求。

  1. 创建账户并选择套餐

    shifter.io/order 注册并选择一个套餐。

  2. 获取你的凭证

    打开客户端仪表盘,复制你的代理用户名密码(若使用 Scraping/SERP API,则复制 API 密钥)。它们看起来是这样的:

    Username: customer-USERNAME
    Password: 5f8a9c2b1d3e4f6g7h8i
    Gateway: p.shifter.io:443
  3. 发送你的第一个请求

    通过网关路由任意 HTTP 调用。用户名中编码了你的定向信息:

    Terminal window
    curl -x customer-USERNAME-country-us-sid-9f3a2b7c-ttl-600:PASSWORD@p.shifter.io:443 \
    https://ipinfo.io/json
  4. 定向到某个国家、会话或 ISP

    使用参数来控制地理位置、会话和路由:

    ParameterExampleEffect
    country-XXcustomer-USERNAME-country-de通过德国路由
    region-NAMEcustomer-USERNAME-region-california定向到特定地区/州
    city-NAMEcustomer-USERNAME-city-new_york定向到特定城市
    asn-NUMBERcustomer-USERNAME-asn-7922定向到特定 ASN
    sid-IDcustomer-USERNAME-sid-abc粘性会话(同一 IP 在默认 TTL 120 秒内保持不变)
    ttl-SECONDScustomer-USERNAME-sid-abc-ttl-600为粘性会话自定义以秒为单位的 TTL(需要 sid
    strict-truecustomer-USERNAME-country-us-strict-true直接返回 502 失败,而不是回退到更大的 IP 池