API
The article content
- Restrictions for working with the API
- Get your proxy's ip address
- Change proxy IP address
- Get prices
- Get blacklist of equipment and operators
- Add operator to blacklist
- Remove operator from black list
- Remove entries from hardware blacklist
- Getting a list of your active proxies
- Change proxy login and password
- Restart proxy
- Getting only available equipment grouped by GEO and operator
- Get list of operators
- Getting a list of countries
- Getting a list of cities
- Getting a list of available GEOs
- Change equipment
- Purchase proxy
- Getting account balance
- Change existing proxy settings
- Statistics of mobile proxy IP addresses by GEO on 16 september 2024 23:23
- Get page content from different IP
- Getting the result of the task
Restrictions for working with the API
- Identical requests can be sent no more than once every 5 seconds. If you exceed the frequency limit, the server will return the error: "Too many lonely requests. Timeout 5 second"
- API methods can be accessed no more than 3*(the number of active purchased proxies) once per second. If you exceed the frequency limit, the server will return an error: "Too many requests per second". (If you have 10 proxies, then the limit is 30 requests per second, if you have 100 proxies, then the limit is 300 requests per second...)
Get your proxy's ip address
This request allows you to find out what ip-address your proxy is currently issuing
Curl Request
curl --request GET \
--url https://mobileproxy.space/api.html?command=proxy_ip&proxy_id={proxy_id} \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Request parameters
{proxy_id} - Proxy identifier, if you need to get several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
Example 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', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
{
status, //Operation status, ok or err
proxy_id, //An array of values where the key is the proxy ID and the value is the ip address it issues
}
}
Change proxy IP address
This request does not require an authorization header, you just need to call a link to change the IP address from the browser, if you use a program call, you must specify the User-agent of the browser. The link itself can be found in the table My proxies in the Change IP column. There is no API limit of 3 requests per second for this command.
Curl Request
curl --request GET \
--url https://changeip.mobileproxy.space/?proxy_key={proxy_key}&format={format} \
--header 'User-Agent: {user-Agent-Name-Here}'
Request parameters
{proxy_key} - Proxy key, contained in the link to change IP under my proxies: (varchar(32))
{user-Agent-Name-Here} - User-Agent not owned by bot: (varchar(255))
{format} - Response format: json or 0
Example 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 response
{
status, //Operation status, ok or err
code, //Code, 200 on success, and any other indicating a specific error on failure
new_ip, //value of new ip address
rt, //Time to change IP address
message, //In case of error, decryption
proxy_id, //Proxy ID
}
Get prices
Curl Request
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: ru'
Request parameters
{id_country} - Country ID (obtained by get_id_country command): 1,2,3,4, ID (int, int list)
Example php
$headers = array(
"Authorization: Bearer {do_not_working_token_only_for_preview}",
"Accept-Language: {ru|en}",
);
$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}', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
status : ok, //Operation status
price: {
{
id_country, //Country ID (obtained by get_id_country command)
iso, //Country ISO
amount, //Amount RUB
country_name, //Country name
period, //period in day
},
....
}
}
Get blacklist of equipment and operators
Curl Request
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}'
Request parameters
{proxy_id} - Proxy identifier, if you need to get several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
Example 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 response
{
{
status : ok, //Operation status
black_list_equipment: {
black_list_id, //Record ID
eid, //Equipment ID
proxy_id, //Proxy ID
operator_id, //Operator ID
geoid, //GEO ID
},
black_list_operators: {
operator_black_list_id, //Record ID
proxy_id, //Proxy ID
operator_id, //Operator ID
operator_name, //Operator
id_country, //Country ID (obtained by get_id_country command)
},
},
}
Add operator to blacklist
Curl Request
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}'
Request parameters
{proxy_id} - Proxy ID: ID (int)
{operator_id} - Operator ID: ID (int)
Example 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 response
{
status : ok, //Operation status
}
Remove operator from black list
Curl Request
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}'
Request parameters
{proxy_id} - Proxy identifier, if you need to change several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
{operator_id} - Operator ID: ID (int)
If no parameters are specified, the entire list will be cleared
Example 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 response
{
status : ok, //Operation status
}
Remove entries from hardware blacklist
Curl Request
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}'
Request parameters
{proxy_id} - Proxy identifier, if you need to change several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
{black_list_id} - Record ID: ID (int)
{eid} - Equipment ID: ID (int)
If no parameters are specified, the entire list will be cleared
Example 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 response
{
status : ok, //Operation status
}
Getting a list of your active proxies
Curl Request
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}'
Request parameters
{proxy_id} - Proxy identifier, if you need to get several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
Example 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 response
{
{
proxy_id, //Proxy ID
proxy_exp, //Date and time until which the proxy is paid
proxy_login, //Authorization login
proxy_pass, //Password for authorization
proxy_hostname, //Proxy address
proxy_host_ip, //IP address of proxy server
proxy_independent_http_hostname, //Hardware-independent HTTP proxy address
proxy_independent_http_host_ip, //Hardware-independent IP address of the HTTP proxy server
proxy_independent_socks5_hostname, //Hardware-independent SOCKS5 proxy server address
proxy_independent_socks5_host_ip, //Hardware independent IP address of SOCKS5 proxy server
proxy_independent_port, //Hardware Change Independent Port
proxy_http_port, //HTTP proxy port
proxy_socks5_port, //Socks5 proxy port
proxy_operator, //Mobile operator
proxy_geo, //Geo proxy
proxy_auto_renewal, //Auto-renewal. 1 - enabled, 0 - disabled
proxy_change_ip_url, //Link to change ip address
proxy_reboot_time, //IP change timer
proxy_ipauth, //IP address for authorization without login and password
proxy_groups_name, //If the proxy is in a group, this field will contain the name of the group
proxy_auto_change_equipment, //Configure automatic equipment change, 0 - disabled, 1 - unrestricted, 2 - country, 3 - state, province, region, 4 - city
eid, //Equipment ID
geoid, //GEO ID
id_country, //Country ID (obtained by get_id_country command)
proxy_self, //By my self
proxy_testing, //Testing
proxy_comment // Text proxy comment
},
...
}
Change proxy login and password
Curl Request
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}'
Request parameters
{proxy_id} - Proxy ID, ID (int, int list)
{proxy_login} - Login (only numbers and Latin letters) if not specified will be generated automatically (text)
{proxy_pass} - Password (only numbers and Latin letters) if not specified will be generated automatically (text)
Example 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 response
{
status : ok, //Operation status
proxy_id, [], //Array of proxy IDs
proxy_login, //Authorization login
proxy_pass //Password for authorization
}
Restart proxy
Curl Request
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}'
Request parameters
{proxy_id} - Proxy ID, ID (int)
Example 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 response
{
status : ok, //Operation status
message //Operation status message
}
Getting only available equipment grouped by GEO and operator
Curl Request
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} \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Request parameters
{equipments_back_list} - Exclude equipment blacklist contents from list, if the parameter is specified in the request, it will work
{operators_back_list} - Exclude operator blacklist contents from list, if the parameter is specified in the request, it will work
{show_count_null} - Show null count, default false
Example 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}', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
status : ok, //Operation status
geo_operator_list: {
{
geoid, //GEO ID
geo_caption, //GEO name
count_free{
operator:count //Array of available equipment where the key is the name of the operator, and the value is the number of equipment
...
}
},
...
}
Get list of operators
Curl Request
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}'
Request parameters
{geoid} - GEO identifiers, if specified, it will display the number of available ports from operators for this GEO, you can specify several identifiers separated by commas : 1,2,3,4, GEO_ID (int, int list)
Example 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 response
{
{
operator, //Operator ID
count_free, //Number of available ports
},
...
}
Getting a list of countries
curl --request GET \
--url https://mobileproxy.space/api.html?command=get_id_country&lang={lang} \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Request parameters
{lang} - , ('ru' or 'en')
Example 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_id_country&lang={lang}', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
{
status : ok, //Operation status
id_country, //
},
}
Getting a list of cities
curl --request GET \
--url https://mobileproxy.space/api.html?command=get_id_city&lang={lang} \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Request parameters
{lang} - , ('ru' or 'en')
Example 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_id_city&lang={lang}', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
{
status : ok, //Operation status
id_city, //array where key is city id and value is an array of id, country name and city
},
}
Getting a list of available GEOs
Curl Request
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}'
Request parameters
{proxy_id} - Proxy identifier, if specified, the response to the request will indicate the servers to which you can change the GEO, (int)
{geoid} - GEO identifiers, if specified, it will display the number of available ports from operators for this GEO, you can specify several identifiers separated by commas : 1,2,3,4, GEO_ID (int, int list)
Example 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}', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
{
geoid, //GEO ID
geo_caption, //GEO name
ISO, //Country ISO
count_free, //Number of available ports
},
...
}
Change equipment
Curl Request
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} \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Request parameters
{proxy_id} - Proxy identifier, if you need to change several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
{operator} - Operator identifier (optional), taken from the function Get a list of operators (get_operators_list), OPERATOR (varchar)
{geoid} - GEO identifier (optional), taken from the function Get a list of available GEOs (get_geo_list), GEO_ID (int)
{id_country} - Country ID (obtained by get_id_country command), (int)
{id_city} - City ID (obtained by get_id_city command), (int)
{eid} - Equipment ID, (int)
{add_to_black_list} - Add the used equipment to the black list, it will no longer come across to you when changing. What is it for?, 1- yes, 0 - no. ID (int)
Example 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}', 0, $streamOptions);
$result = json_decode($result,1);
JSON response
{
status : ok, //Operation status
message //Array of proxy IDs for which the change was successful, key=proxy_id, value=success message
error //Array of proxy IDs for which the change was unsuccessful, key=proxy_id, value=Reason for failure
}
Purchase proxy
Curl Request
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} \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Request parameters
{operator} - Operator identifier (optional), taken from the function Get a list of operators (get_operators_list), OPERATOR (varchar)
{geoid} - GEO identifier (optional), taken from the function Get a list of available GEOs (get_geo_list), GEO_ID (int)
{proxy_id} - Proxy identifier, specified only if the required proxy is extended, if several proxies need to be extended, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
{period} - Period for which the proxy is purchased/renewed (default 30). Possible values: 1,7,30,90,365, (int)
{num} - Number of required proxies in case of purchase (default 1), (int)
{coupons_code} - Coupon code if available, (varchar)
{id_country} - Country ID (obtained by get_id_country command), (int)
{id_city} - City ID (obtained by get_id_city command), (int)
{amount_only} - If you pass this parameter, you will be refunded the amount that will be debited from the balance upon purchase, the purchase itself will not be made, (bool, true)
Example 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 response
{
status : ok, //Operation status
proxy_id : [], //Array of purchased/renewed proxy IDs
amount : float //The amount deducted from the balance when buying
message : text //Operation status message
}
Getting account balance
Curl Request
curl --request GET \
--url https://mobileproxy.space/api.html?command=get_balance \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Example 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 response
{
status : ok, //Operation status
balance : //Account balance
}
Change existing proxy settings
Curl Request
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}'
Request parameters
{proxy_id} - Proxy identifier, if you need to change several proxies, they are separated by commas, for example: 1,2,3,4, ID (int, int list)
{proxy_reboot_time} - Time to change the ip address for the timer in minutes, to cancel it is necessary to send 0, (int)
{proxy_ipauth} - List of ip addresses from which authorization is allowed without login and password, IPv4 separated by commas, to cancel you need to pass '-1', both the list of ip addresses and the indication of subnets are supported For example: 192.168.34.76,123.123 .212.0/24, (ip list)
{proxy_auto_renewal} - Auto-renewal. 1 - enabled, 0 - disabled, (int 1 or 0)
{proxy_auto_change_equipment} - Configure automatic equipment change, 0 - disabled, 1 - unrestricted, 2 - country, 3 - state, province, region, 4 - city, (int 0,1,2,3,4)
{proxy_comment} - Text proxy comment, (varchar(255))
Example 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_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 response
{
status : ok, //Operation status
proxy_id : [], //Array of proxy IDs
message //Operation status message
}
Statistics of mobile proxy IP addresses by GEO on 16 september 2024 23:23
Curl Request
curl --request GET \
--url https://mobileproxy.space/api.html?command=get_ipstat \
--header 'Authorization: Bearer {do_not_working_token_only_for_preview}'
Example 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 response
{
status : ok, //Operation status
ipstat : []//data array
}
Get page content from different IP
This command allows you to see the content of the page using different GEOs, the command creates a task to check the page from the specified countries. If you do not specify country identifiers, the page will be requested from all available countries. In response, you will receive a task ID and after the execution is completed, you can get the page content by this ID.
Curl Request
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}'
Request parameters
{url} - Address of page to check: https://mobileproxy.space
{id_country} - List of country ids separated by commas (obtained by get_id_country command): 1,2,3,4, ID (int, int list)
Example 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 response
{
status : ok, //Operation status
message, //In case of error, decryption
task_id, //Id of the created task
task_check_url, //Address where you can get the result of the task
approximate_end_time, //Approximate task completion time, after this time it is worth requesting information about the result
}
Getting the result of the task
Curl Request
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}' \
Request parameters
{tasks_id} - Id of the created task? received when it was created, if not specified, it will return all tasks of the user, ID (int)
Example 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 response
{
status : ok, //Operation status
tasks: {
{
tasks_id, //Id of the created task
tasks_start_time, //Task start time
tasks_end_time, //Task completion time
tasks_status, //Task status, 0 - created, 1 - in progress, 2 - completed
tasks_result, //The result of the task, an array where the key is the country identifier, and the value is an array of the page address and page content
},
}