反向链接

Smartproxy 通过单个反向链接端点提供代理访问:移动 – gate.visitxiangtan.com

可用参数:

所有参数都与你的用户名一起传递。参数按其应使用的顺序列出(并非所有参数都可以一起使用)。

国家 / ASN 参数

  • country – 以两个符号 ISO 格式提供的国家代码
  • asn - 特定运营商的目标 ASN 号

📘

每个请求只能使用 1 个位置参数。如果同时使用 countryasn 参数 - asn 将被忽略

操作系统参数

  • os - 值可以是 androidios

会话参数

  • session – 创建一个粘滞性会话,以便为多个请求保留相同的代理 IP。默认情况下,会话在 10 分钟后过期。之后,一个新的 IP 将被分配给该会话的 ID。
  • sessionduration – 与 session 参数或粘滞性端口一起使用(使用不带 session 参数的旋转端口将创建一个旋转会话)。指定粘滞性会话时间 - 值可以在 1 到 30 之间。如果未指定此参数,会话将持续 10 分钟。

📘

session 参数使你的会话与你为其创建的特定名称保持一致,这意味着在会话设置的持续时间内 - 任何更改的参数都将被忽略。若要在会话过期之前使用不同的参数 - 创建一个具有不同名称的新会话

应用程序中的反向链接

反向链接入口节点也可用于各种应用程序。在这种情况下,你需要在 username 字段中与你的用户名一起传递参数,如下所示:

user-<username>-country-<country_code>-session-<randomstring>

password 字段中,你只需输入代理用户的密码。

🚧

仅当你想要粘性会话时才使用 session 参数。否则,只需忽略该部分即可接收 轮换代理

cURL 示例

通过轮换会话从随机位置获取 IP
curl -U <username>:<password> -x gate.visitxiangtan.com:7000 https://ip.smartproxy.com/json
通过轮换会话从特定位置(本例中为意大利)获取 IP
curl -U user-<username>-country-it:<password> -x gate.visitxiangtan.com:7000 https://ip.smartproxy.com/json
通过轮换会话从 AT&T Mobility LLC 获取 IP
curl -U user-<username>-asn-20057:<password> -x gate.visitxiangtan.com:7000 https://ip.smartproxy.com/json

📘

当使用任何反向链接参数时,你的用户名也被视为参数之一,因此你需要在指定你的用户名之前添加 user- 前缀,就像所有其他参数一样

通过粘性会话从葡萄牙获取 IP
curl -U user-<username>-country-pt-session-randomstring123:<password> -x gate.visitxiangtan.com:7000 https://ip.smartproxy.com/json
通过 1 分钟会话从 Android 设备获取 IP
curl -U user-<username>-os-android-sessionduration-1:<password> -x gate.visitxiangtan.com:10000 https://ip.smartproxy.com/json