PHP class
MobileProxy.space PHP API class
Unofficial python library for working with mobileproxy.space
รับที่อยู่ 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} - รหัสพร็อกซี่ หากต้องการรับหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 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 จากเบราว์เซอร์ หากคุณใช้การเรียกแบบโปรแกรม ต้องระบุ User-agent ของเบราว์เซอร์ ลิงก์สามารถพบได้ในตาราง พร็อกซี่ของฉัน ในคอลัมน์เปลี่ยน IP สำหรับคำสั่งนี้ไม่มีข้อจำกัด API 3 คำขอต่อวินาที
คำขอ Curl
curl --request GET \
--url https://changeip.mobileproxy.space/?proxy_key={proxy_key}&format={format} \
--header 'User-Agent: {user-Agent-Name-Here}'พารามิเตอร์คำขอ
{proxy_key} - คีย์พร็อกซี่ อยู่ในลิงก์เปลี่ยน 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, //รหัสพร็อกซี่
}รับราคา
คำขอ 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} - ID ประเทศ (ได้จากคำสั่ง 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}¤cy={currency}', 0, $streamOptions);
$result = json_decode($result,1);การตอบสนอง JSON
{
status : ok, //สถานะการดำเนินการ
price: {
{
id_country, //ID ประเทศ (ได้จากคำสั่ง 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} - รหัสพร็อกซี่ หากต้องการรับหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 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, //ID รายการ
eid, //ID อุปกรณ์
proxy_id, //รหัสพร็อกซี่
operator_id, //รหัสผู้ให้บริการ
geoid, //รหัสภูมิศาสตร์
},
black_list_operators: {
operator_black_list_id, //ID รายการ
proxy_id, //รหัสพร็อกซี่
operator_id, //รหัสผู้ให้บริการ
operator_name, //ผู้ให้บริการ
id_country, //ID ประเทศ (ได้จากคำสั่ง 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 (int)
{operator_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} - รหัสพร็อกซี่ หากต้องการเปลี่ยนหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 1,2,3,4, ID (int, int list)
{operator_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} - รหัสพร็อกซี่ หากต้องการเปลี่ยนหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 1,2,3,4, ID (int, int list)
{black_list_id} - ID รายการ: ID (int)
{eid} - 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_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} - รหัสพร็อกซี่ หากต้องการรับหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 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, //รหัสพร็อกซี่
proxy_exp, //วันที่และเวลาที่พร็อกซี่ชำระเงินถึง
proxy_login, //ล็อกอินสำหรับการยืนยันตัวตน
proxy_pass, //รหัสผ่านสำหรับการยืนยันตัวตน
proxy_hostname, //ที่อยู่เซิร์ฟเวอร์พร็อกซี่
proxy_host_ip, //ที่อยู่ IP ของเซิร์ฟเวอร์พร็อกซี่
proxy_independent_http_hostname, //ที่อยู่เซิร์ฟเวอร์พร็อกซี่ HTTP ที่ไม่ขึ้นอยู่กับการเปลี่ยนอุปกรณ์
proxy_independent_http_host_ip, //ที่อยู่ IP ของเซิร์ฟเวอร์พร็อกซี่ HTTP ที่ไม่ขึ้นอยู่กับการเปลี่ยนอุปกรณ์
proxy_independent_socks5_hostname, //ที่อยู่เซิร์ฟเวอร์พร็อกซี่ SOCKS5 ที่ไม่ขึ้นอยู่กับการเปลี่ยนอุปกรณ์
proxy_independent_socks5_host_ip, //ที่อยู่ IP ของเซิร์ฟเวอร์พร็อกซี่ SOCKS5 ที่ไม่ขึ้นอยู่กับการเปลี่ยนอุปกรณ์
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, //ID อุปกรณ์
geoid, //รหัสภูมิศาสตร์
id_country, //ID ประเทศ (ได้จากคำสั่ง 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 (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, [], //อาร์เรย์รหัสพร็อกซี่
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 (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 //ข้อความสถานะการดำเนินการ
}รับเฉพาะอุปกรณ์ที่พร้อมใช้งานจัดกลุ่มตาม GEO และผู้ให้บริการ
คำขอ 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, //รหัสภูมิศาสตร์
geo_caption, //ชื่อภูมิศาสตร์
id_city, //ID เมือง (ได้จากคำสั่ง get_id_city)
id_country, //ID ประเทศ (ได้จากคำสั่ง 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} - รหัสภูมิศาสตร์ หากระบุ จะแสดงจำนวนพอร์ตที่พร้อมใช้งานพร้อมผู้ให้บริการสำหรับภูมิศาสตร์นี้ สามารถระบุหลายรหัสคั่นด้วยเครื่องหมายจุลภาค : 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_country, //ID ประเทศ (ได้จากคำสั่ง 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, //อาร์เรย์ที่คีย์คือ ID เมืองและค่าคืออาร์เรย์ของ ID, ชื่อประเทศ
},
}รับรายชื่อภูมิศาสตร์ที่พร้อมใช้งาน
คำขอ 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} - รหัสภูมิศาสตร์ หากระบุ จะแสดงจำนวนพอร์ตที่พร้อมใช้งานพร้อมผู้ให้บริการสำหรับภูมิศาสตร์นี้ สามารถระบุหลายรหัสคั่นด้วยเครื่องหมายจุลภาค : 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, //รหัสภูมิศาสตร์
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} - รหัสพร็อกซี่ หากต้องการเปลี่ยนหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 1,2,3,4, ID (int, int list) , *จำเป็น
{operator} - รหัสผู้ให้บริการ (ไม่จำเป็น) นำมาจากฟังก์ชัน "รับรายชื่อผู้ให้บริการ" (get_operators_list), OPERATOR (varchar)
{geoid} - รหัสภูมิศาสตร์ (ไม่จำเป็น) นำมาจากฟังก์ชัน "รับรายชื่อภูมิศาสตร์ที่พร้อมใช้งาน" (get_geo_list), GEO_ID (int)
{id_country} - ID ประเทศ (ได้จากคำสั่ง get_id_country), (int)
{id_city} - ID เมือง (ได้จากคำสั่ง get_id_city), (int)
{eid} - ID อุปกรณ์, (int)
{add_to_black_list} - เพิ่มอุปกรณ์ที่ใช้ลงในบัญชีดำ จะไม่ปรากฏเมื่อเปลี่ยนอีกต่อไป {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 //อาร์เรย์รหัสพร็อกซี่ที่เปลี่ยนสำเร็จ, คีย์=proxy_id, ค่า=ข้อความความสำเร็จ
error //อาร์เรย์รหัสพร็อกซี่ที่เปลี่ยนไม่สำเร็จ, คีย์=proxy_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} - รหัสผู้ให้บริการ (ไม่จำเป็น) นำมาจากฟังก์ชัน "รับรายชื่อผู้ให้บริการ" (get_operators_list), OPERATOR (varchar)
{geoid} - รหัสภูมิศาสตร์ (ไม่จำเป็น) นำมาจากฟังก์ชัน "รับรายชื่อภูมิศาสตร์ที่พร้อมใช้งาน" (get_geo_list), GEO_ID (int)
{proxy_id} - รหัสพร็อกซี่ ระบุเฉพาะในกรณีต่ออายุพร็อกซี่ที่ต้องการ หากต้องการต่ออายุหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 1,2,3,4, ID (int, int list)
{period} - ระยะเวลาที่ซื้อ/ต่ออายุพร็อกซี่ (ค่าเริ่มต้น 30) ค่าที่เป็นไปได้: 1,7,30,90,365, (int)
{num} - จำนวนพร็อกซี่ที่ต้องการในกรณีซื้อ (ค่าเริ่มต้น 1), (int)
{coupons_code} - รหัสคูปองในกรณีที่มี, (varchar)
{id_country} - ID ประเทศ (ได้จากคำสั่ง get_id_country), (int)
{id_city} - ID เมือง (ได้จากคำสั่ง 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 : [], //อาร์เรย์รหัสพร็อกซี่ที่ซื้อ/ต่ออายุ
amount : float //จำนวนเงินที่หักจากยอดเงินเมื่อซื้อ
message : text //ข้อความสถานะการดำเนินการ
proxy_data: [] อาร์เรย์ข้อมูลพร็อกซี่ที่ซื้อ รูปแบบเหมือนกับคำสั่ง รับยอดเงินบัญชี
คำขอ 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} - รหัสพร็อกซี่ หากต้องการเปลี่ยนหลายพร็อกซี่ ให้ระบุคั่นด้วยเครื่องหมายจุลภาค เช่น: 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 : [], //อาร์เรย์รหัสพร็อกซี่
message //ข้อความสถานะการดำเนินการ
}สถิติที่อยู่ IP ของพร็อกซี่มือถือตามภูมิศาสตร์ ณ วันที่ 9 февраля 2026 02:31
คำขอ 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 ต่างๆ
คำสั่งนี้ช่วยให้ดูเนื้อหาหน้าโดยใช้ GEO ต่างๆ คำสั่งสร้างงานสำหรับ
คำขอ 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} - รายการ ID ประเทศคั่นด้วยเครื่องหมายจุลภาค (ได้จากคำสั่ง 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, //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 งานที่สร้าง ได้รับเมื่อสร้าง หากไม่ระบุจะส่งคืนงานทั้งหมดของผู้ใช้, 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, //ID งานที่สร้าง
tasks_start_time, //เวลาเริ่มงาน
tasks_end_time, //เวลาสิ้นสุดงาน
tasks_status, //สถานะงาน: 0 - สร้างแล้ว, 1 - กำลังทำงาน, 2 - เสร็จสิ้น
tasks_result, //ผลการทำงาน อาร์เรย์ที่คีย์คือ ID ประเทศและค่าคืออาร์เรย์ของที่อยู่พร้อม
},
}ตรวจสอบความพร้อมใช้งานของอุปกรณ์
คุณสามารถตรวจสอบว่าอุปกรณ์เฉพาะพร้อมให้เช่าหรือไม่
คำขอ 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 - อุปกรณ์ไม่พร้อม
}
}รับประวัติการเคลื่อนไหวของเงิน
คำขอ 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 : //ยอดเงินบัญชี
}