PHP class

MobileProxy.space PHP API class

Unofficial python library for working with mobileproxy.space

GitHub

PyPi

获取您代理的IP地址

此请求允许了解您的代理当前提供的IP地址

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=proxy_ip&proxy_id={proxy_id}{&check_spam=true} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个逗号分隔: 1,2,3,4, ID (int, int list) ,*必需
{check_spam} - 如果指定参数 check_spam=true,则提供的代理 IP 地址将会与 IPGuardian.net 的垃圾邮件地址数据库进行比对检查。: true
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=proxy_ip&proxy_id=1,2,3,4{&check_spam=true}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    status, //操作状态,ok或err
    proxy_id, //值数组,其中键是代理标识符,值是它提供的IP地址
    ipguardian.net, //如果在请求中指定了 check_spam=true,则此键的值将是一个数组,包含:found - 表示该 IP 是否在垃圾邮件数据库中被发现,sources - 如果被发现,则列出在哪些数据库中(如果适用)。
  }
}

代理IP更换

此请求无授权头需求,可直接用浏览器访问换IP链接,需用户代理header。接口无速率限制。

Curl请求
curl --request GET \
     --url https://changeip.mobileproxy.space/?proxy_key={proxy_key}&format={format} \
     --header 'User-Agent: {user-Agent-Name-Here}'
请求参数
{proxy_key} - API令牌,来自换IP链接用户: (varchar(32)) ,*必需
{user-Agent-Name-Here} - 非机器人User-Agent: (varchar(255)) ,*必需
{format} - 返回格式,json或0
php示例
$headers = array(
     "User-Agent: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.102011-10-16 20:23:10",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://changeip.mobileproxy.space/?proxy_key=abcdegghijklmnopqrstuvwxyz123456&format=json', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status, //操作状态,ok或err
  code, //代码,200成功,其他为具体错误
  new_ip, //新IP值
  rt, //换IP时间
  message, //错误描述
  proxy_id, //代理ID
}

获取价格

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_price&id_country={id_country} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
     --header 'Accept-Language: en'
请求参数
{id_country} - 国家标识符(通过get_id_country命令获得): 1,2,3,4, ID (int, int list)
{currency} - usd,rub (default rub)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
     "Accept-Language: {en|ru}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_price&id_country={id_country}&currency={currency}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  price: {
      {
        id_country, //国家标识符(通过get_id_country命令获得)
        iso, //Country ISO
        amount, //Amount RUB
        country_name, //Country name
        period, //period in day
      },
      ....
    }
}

获取设备和运营商黑名单

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_black_list&proxy_id={proxy_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个逗号分隔: 1,2,3,4, ID (int, int list)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_black_list&proxy_id=1,2,3,4', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    status : ok, //操作状态
    black_list_equipment: {
        black_list_id, //记录标识符
        eid, //设备标识符
        proxy_id, //代理ID
        operator_id, //运营商ID
        geoid, //国家ID
    },
    black_list_operators: {
        operator_black_list_id, //记录标识符
        proxy_id, //代理ID
        operator_id, //运营商ID
        operator_name, //运营商
        id_country, //国家标识符(通过get_id_country命令获得)
    },
  },
}

将运营商添加到黑名单

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=add_operator_to_black_list&proxy_id={proxy_id}&operator_id={operator_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID: ID (int)
{operator_id} - 运营商ID: ID (int) ,*必需
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=add_operator_to_black_list&proxy_id=1,2,3,4&operator_id=1', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
}

从黑名单中删除运营商

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=remove_operator_black_list&proxy_id={proxy_id}&operator_id={operator_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个用逗号分隔: 1,2,3,4, ID (int, int list)
{operator_id} - 运营商ID: ID (int) ,*必需
如果没有指定任何参数,将清除整个列表
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=remove_operator_black_list&proxy_id=1,2,3,4&operator_id=1', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
}

从设备黑名单中删除记录

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=remove_black_list&proxy_id={proxy_id}&black_list_id={black_list_id}&eid={eid} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个用逗号分隔: 1,2,3,4, ID (int, int list)
{black_list_id} - 记录标识符: ID (int)
{eid} - 设备标识符: ID (int)
如果没有指定任何参数,将清除整个列表
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=remove_black_list&proxy_id=1,2,3,4&black_list_id=1&eid=1', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
}

获取活跃代理列表

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_my_proxy&proxy_id={proxy_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个逗号分隔: 1,2,3,4, ID (int, int list)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_my_proxy&proxy_id=1,2,3,4', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    proxy_id, //代理ID
    proxy_exp, //代理有效期至
    proxy_login, //登录认证用户名
    proxy_pass, //登录认证密码
    proxy_hostname, //代理服务器地址
    proxy_host_ip, //代理服务器IP
    proxy_independent_http_hostname, //不随设备更换HTTP代理地址
    proxy_independent_http_host_ip, //不随设备更换HTTP代理IP
    proxy_independent_socks5_hostname, //不随设备更换SOCKS5代理地址
    proxy_independent_socks5_host_ip, //不随设备更换SOCKS5代理IP
    proxy_independent_port, //不随设备更换端口
    proxy_http_port, //HTTP代理端口
    proxy_socks5_port, //Socks5代理端口
    proxy_operator, //移动运营商
    proxy_geo, //代理地理位置
    proxy_auto_renewal, //自动续费,1启用,0禁用,默认1启用
    proxy_change_ip_url, //更换IP地址链接
    proxy_reboot_time, //IP更换定时器
    proxy_ipauth, //无登录密码IP认证地址
    proxy_groups_name, //如代理有分组,显示分组名
    proxy_auto_change_equipment, //自动设备更换设置,0禁用,1无限制,2国家,3省区,4城市
    eid, //设备标识符
    geoid, //国家ID
    id_country, //国家标识符(通过get_id_country命令获得)
    proxy_self, //By my self
    proxy_testing, //Testing
    proxy_comment // Text proxy comment
  },
    ...
}

更改代理登录信息

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=change_proxy_login_password&proxy_login={proxy_login}&proxy_pass={proxy_pass}&proxy_id={proxy_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID, ID (int, int list) ,*必需
{proxy_login} - 登录名(仅字母数字)未指定则自动生成 (text) ,*必需
{proxy_pass} - 密码(仅字母数字)未指定则自动生成 (text) ,*必需
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=change_proxy_login_password&proxy_login={proxy_login}&proxy_pass={proxy_pass}&proxy_id={proxy_id}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  proxy_id, [], //代理ID数组
  proxy_login, //登录认证用户名
  proxy_pass //登录认证密码
  }

代理重启

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=reboot_proxy&proxy_id={proxy_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID, ID (int) ,*必需
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=reboot_proxy&proxy_id={proxy_id}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  message //操作状态消息
}

仅获取按地理位置和运营商分组的可用设备

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_geo_operator_list{&equipments_back_list=1}{&operators_back_list=1}{&show_count_null=1}{&proxy_id={proxy_id}} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{equipments_back_list} - 从列表中排除设备黑名单内容, 如果在请求中指定了参数,它将生效
{operators_back_list} - 从列表中排除运营商黑名单内容, 如果在请求中指定了参数,它将生效
{proxy_id} - 代理标识符,如果指定,响应中将显示可以更换地理位置的服务器, (int)
{show_count_null} - Show null count, default false
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_geo_operator_list{&equipments_back_list=1}{&operators_back_list=1}{&show_count_null=1}{&proxy_id={proxy_id}}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  geo_operator_list: {
  {
    geoid, //国家ID
    geo_caption, //国家名称
    id_city, //城市标识符(通过get_id_city命令获得)
    id_country, //国家标识符(通过get_id_country命令获得)
    count_free{
      operator:count //可用设备数组,其中键是运营商名称,值是设备数量
      ...
    }
  },
  ...
}

获取运营商列表

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_operators_list&geoid={geoid} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{geoid} - 国家ID,返回此地区可用端口及运营商数量,可逗号分隔多个 : 1,2,3,4, GEO_ID (int, int list)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_operators_list&geoid={geoid}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    operator, //运营商ID
    id_country, //国家标识符(通过get_id_country命令获得)
    count_free, //可用端口数
  },
    ...
}

获取国家列表

curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_id_country&only_avaliable=1 \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
     --header 'Accept-Language: en'
请求参数
{only_avaliable} - 如果指定此参数,命令将仅返回有可租设备的国家及其数量,非必需
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
     "Accept-Language: {en|ru}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_id_country&only_avaliable=1', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    status : ok, //操作状态
    id_country, //对象数组,每个包含id_country、name、iso
  },
}

获取城市列表

curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_id_city \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
     --header 'Accept-Language: en'
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview},
     "Accept-Language: {en|ru}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_id_city', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    status : ok, //操作状态
    id_city, //数组,其中键是城市标识符,值是标识符、国家和城市名称的数组
  },
}

获取可用国家列表

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_geo_list&proxy_id={proxy_id}&geoid={geoid} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理标识符,如果指定,响应中将显示可以更换地理位置的服务器, (int)
{geoid} - 国家ID,返回此地区可用端口及运营商数量,可逗号分隔多个 : 1,2,3,4, GEO_ID (int, int list)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_geo_list&geoid={geoid}&proxy_id={proxy_id}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    geoid, //国家ID
    geo_caption, //国家名称
    ISO, //Country ISO
    count_free, //可用端口数
  },
    ...
}

更换设备

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=change_equipment&operator={operator}&geoid={geoid}&proxy_id={proxy_id}&add_to_black_list={add_to_black_list}&id_country={id_country}&id_city={id_city}&eid={eid}{&check_after_change=true}{&check_spam=true} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个用逗号分隔: 1,2,3,4, ID (int, int list) ,*必需
{operator} - 运营商ID(可选),来自“获取运营商列表”, OPERATOR (varchar)
{geoid} - 国家ID(可选),来自“获取国家列表”, GEO_ID (int)
{id_country} - 国家标识符(通过get_id_country命令获得), (int)
{id_city} - 城市标识符(通过get_id_city命令获得), (int)
{eid} - 设备标识符, (int)
{add_to_black_list} - 将设备添加至黑名单,换机时将不再出现。为何需要?, 1- yes, 0 - no. ID (int)
{check_after_change} - 如果此参数设置为 true,则在更换设备后,请求将向新设备申请一个新的 IP 地址并在响应中返回该地址
{check_spam} - 如果指定参数 check_spam=true,则提供的代理 IP 地址将会与 IPGuardian.net 的垃圾邮件地址数据库进行比对检查。: true
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=change_equipment&operator={operator}&geoid={geoid}&proxy_id={proxy_id}&add_to_black_list={add_to_black_list}&id_country={id_country}&id_city={id_city}&eid={eid}{&check_after_change=true}{&check_spam=true}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  message //更换成功代理ID及状态信息数组
  error //更换失败代理ID及原因数组
  checked //一个包含键 PID 及其值为设备所分配 IP 地址的数组
  ipguardian.net, //如果在请求中指定了 check_spam=true,则此键的值将是一个数组,包含:found - 表示该 IP 是否在垃圾邮件数据库中被发现,sources - 如果被发现,则列出在哪些数据库中(如果适用)。
}

购买代理

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=buyproxy&operator={operator}&geoid={geoid}&proxy_id={proxy_id}&period={period}&num={num}&coupons_code={coupons_code}&id_country={id_country}&id_city={id_city}&auto_renewal={auto_renewal} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{operator} - 运营商ID(可选),来自“获取运营商列表”, OPERATOR (varchar)
{geoid} - 国家ID(可选),来自“获取国家列表”, GEO_ID (int)
{proxy_id} - 代理ID,续费时指定,多个用逗号分隔,如1,2,3, ID (int, int list)
{period} - 购买/续费周期,默认30,选项:1,7,30,90,365, (int)
{num} - 购买数量,默认1, (int)
{coupons_code} - 优惠码(如有), (varchar)
{id_country} - 国家标识符(通过get_id_country命令获得), (int)
{id_city} - 城市标识符(通过get_id_city命令获得), (int)
{amount_only} - 如果传递此参数,将返回从余额扣除的金额,但不会实际购买, (bool, true)
{auto_renewal} - 自动续费,1启用,0禁用,默认1启用, (int 1 or 0)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=buyproxy&operator={operator}&geoid={geoid}&proxy_id={proxy_id}&period={period}&num={num}&coupons_code={coupons_code}&id_country={id_country}&id_city={id_city}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  proxy_id : [], //已买/续代理ID数组
  amount : float //购买时扣除金额
  message : text //操作状态消息
  proxy_data: [] 购买代理数据数组,格式同get_my_proxy
}

查询账户余额

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_balance \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_balance', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  balance : //账户余额
}

修改代理设置

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=edit_proxy&proxy_id={proxy_id}&proxy_reboot_time={proxy_reboot_time}&proxy_ipauth={proxy_ipauth}&proxy_comment={proxy_comment} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{proxy_id} - 代理ID,多个用逗号分隔: 1,2,3,4, ID (int, int list) ,*必需
{proxy_reboot_time} - 定时器换IP分钟数,传0取消, (int)
{proxy_ipauth} - 允许IP列表,IPv4逗号分隔,传'-1'取消,支持IP及子网,如192.168.34.76,123.123.212.0/24, (ip list)
{proxy_auto_renewal} - 自动续费,1启用,0禁用,默认1启用, (int 1 or 0)
{proxy_auto_change_equipment} - 自动设备更换设置,0禁用,1无限制,2国家,3省区,4城市, (int 0,1,2,3,4)
{proxy_comment} - Text proxy comment, (varchar(255))
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=edit_proxy&proxy_id={proxy_id}&proxy_auto_renewal=1&proxy_reboot_time=15&proxy_ipauth=192.168.1.56,168.192.54.1&proxy_comment=comment_text', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  proxy_id : [], //代理ID数组
  message //操作状态消息
}

移动代理IP地址按地区统计至 16 января 2026 16:11

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_ipstat \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_ipstat', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  ipstat : []//数据数组
}

从不同IP获取页面内容

此命令允许使用不同地理位置查看页面内容,命令创建从指定国家检查页面的任务。如果不指定国家标识符,将从所有可用国家请求页面。作为响应,您将获得任务标识符,执行完成后,您可以通过此标识符获取页面内容。

Curl请求
curl --request POST \
     --url https://mobileproxy.space/api.html?command=see_the_url_from_different_IPs \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}' \
     --data 'url={url}&id_country={id_country}'
请求参数
{url} - 要检查的页面地址: https://mobileproxy.space ,*必需
{id_country} - 用逗号分隔的国家标识符列表(通过get_id_country命令获得): 1,2,3,4, ID (int, int list)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'POST','header' => $headers, 'content'=> http_build_query(['url'=>'{url}', 'id_country'=>'{id_country}']))));
$result = file_get_contents('https://mobileproxy.space/api.html?command=see_the_url_from_different_IPs', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  message, //错误描述
  tasks_id, //创建的任务标识符
  task_check_url, //可以获取任务执行结果的地址
  approximate_end_time, //任务完成的大概时间,此时间后应该请求结果信息
}

获取任务执行结果

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=tasks&tasks_id={tasks_id} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}' \
  
请求参数
{tasks_id} - 创建任务时获得的任务标识符,如果不指定将返回用户的所有任务, ID (int)
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=tasks&tasks_id={tasks_id}', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  tasks: {
  {
    tasks_id, //创建的任务标识符
    tasks_start_time, //任务开始时间
    tasks_end_time, //任务完成时间
    tasks_status, //任务状态,0 - 已创建,1 - 进行中,2 - 已完成
    tasks_result, //任务执行结果,数组其中键是国家标识符,值是页面地址和页面内容的数组
  },
}

查询设备占用

查询设备是否可租

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=eid_avaliable&eid={eid} \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
请求参数
{eid} - 设备ID,可多个逗号分隔: 1,2,3,4, ID (int, int list) ,*必需
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=eid_avaliable&eid=1,2,3,4', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  {
    status, //操作状态,ok或err
    eid, //数组,键为设备ID,值0占用,1空闲
  }
}

获取资金流动历史记录

Curl请求
curl --request GET \
     --url https://mobileproxy.space/api.html?command=get_history&start=0&length=50 \
     --header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
php示例
$headers = array(
     "Authorization: Bearer {do_not_working_token_only_for_preview}",
);
$streamOptions = stream_context_create(array('http' => array('method' => 'GET','header' => $headers)));
$result = file_get_contents('https://mobileproxy.space/api.html?command=get_history&start=0&length=50', 0, $streamOptions);
$result = json_decode($result,1);
JSON响应
{
  status : ok, //操作状态
  history : //账户余额
}