curl --get 'https://miyaip.com/api/ProxyLogic/Generate' \
-H 'Accept: text/plain' \
--data-urlencode 'Num=1' \
--data-urlencode 'Country=US' \
--data-urlencode 'SessionTime=-1' \
--data-urlencode 'Server=us' \
--data-urlencode 'Format=0' \
--data-urlencode 'Crc=<YOUR_PASSWORD>' \
--data-urlencode 'Pool=1' \
--data-urlencode 'KeyName=<YOUR_MAIN_KEY>'const params = new URLSearchParams({
"Num": "1",
"Country": "US",
"SessionTime": "-1",
"Server": "us",
"Format": "0",
"Crc": "<YOUR_PASSWORD>",
"Pool": "1",
"KeyName": "<YOUR_MAIN_KEY>"
});
const url = `https://miyaip.com/api/ProxyLogic/Generate?${params}`;
const response = await fetch(url, {
method: 'GET',
headers: {
"Accept": "text/plain"
},
});
const result = await response.text();
console.log(result);import requests
url = "https://miyaip.com/api/ProxyLogic/Generate"
headers = {
"Accept": "text/plain"
}
params = {
"Num": 1,
"Country": "US",
"SessionTime": -1,
"Server": "us",
"Format": "0",
"Crc": "<YOUR_PASSWORD>",
"Pool": 1,
"KeyName": "<YOUR_MAIN_KEY>"
}
response = requests.get(url, headers=headers, params=params, timeout=30)
response.raise_for_status()
print(response.text)gateway.miyaip.com:10000:username-zone-us:********{
"code": 500,
"message": "Invalid request",
"body": null
}MiyaIP dynamic proxy API: generate residential or mobile proxies
Generate MiyaIP dynamic residential or mobile proxy details using Crc and KeyName, with location, session, protocol, and output format settings.
curl --get 'https://miyaip.com/api/ProxyLogic/Generate' \
-H 'Accept: text/plain' \
--data-urlencode 'Num=1' \
--data-urlencode 'Country=US' \
--data-urlencode 'SessionTime=-1' \
--data-urlencode 'Server=us' \
--data-urlencode 'Format=0' \
--data-urlencode 'Crc=<YOUR_PASSWORD>' \
--data-urlencode 'Pool=1' \
--data-urlencode 'KeyName=<YOUR_MAIN_KEY>'const params = new URLSearchParams({
"Num": "1",
"Country": "US",
"SessionTime": "-1",
"Server": "us",
"Format": "0",
"Crc": "<YOUR_PASSWORD>",
"Pool": "1",
"KeyName": "<YOUR_MAIN_KEY>"
});
const url = `https://miyaip.com/api/ProxyLogic/Generate?${params}`;
const response = await fetch(url, {
method: 'GET',
headers: {
"Accept": "text/plain"
},
});
const result = await response.text();
console.log(result);import requests
url = "https://miyaip.com/api/ProxyLogic/Generate"
headers = {
"Accept": "text/plain"
}
params = {
"Num": 1,
"Country": "US",
"SessionTime": -1,
"Server": "us",
"Format": "0",
"Crc": "<YOUR_PASSWORD>",
"Pool": 1,
"KeyName": "<YOUR_MAIN_KEY>"
}
response = requests.get(url, headers=headers, params=params, timeout=30)
response.raise_for_status()
print(response.text)gateway.miyaip.com:10000:username-zone-us:********{
"code": 500,
"message": "Invalid request",
"body": null
}Prepare the generation request
- Obtain
Crcand the product’s key from your dashboard. UsemainKeyfor residential proxies; for mobile proxies, usemobileMainKeyand setmealType=mobile. - Choose location, quantity, protocol, output format, and session behavior using the parameters below. Preserve each query parameter’s capitalization.
- Send the request and check the HTTP status. On success, read the plain-text connection list in the selected format, then verify it in your client.
SessionTime=0 means rotation on each request, and SessionTime=-1 selects manual rotation. The source does not state the unit or complete supported range for positive values. Do not infer a duration from the numeric value alone.
The form’s numeric bounds come from the current public interface. Country, city, and gateway line examples are not complete option lists. Use values provided by your current dashboard.
For product setup, see dynamic residential proxies or mobile proxies. See response handling when generation fails.
Online debugging
Source: official dynamic generation reference.Authorizations
Proxy-account password value; a sensitive credential in the query string.
Main key for the selected product; supply it together with Crc.
Query Parameters
Number of proxy lines to return.
1
Country code. Leave blank for a random country.
"US"
Optional state or province.
Optional city.
0 rotates each request; -1 enables manual switching.
-1
Gateway node, such as as, us, or eu.
"us"
Controls the returned proxy credential layout.
0, 1, 2 "0"
Password value associated with the proxy account.
Proxy pool number.
1
Use mainKey for residential or mobileMainKey for mobile traffic.
Use mobile for mobile traffic; leave blank for standard dynamic residential traffic.
Optional protocol override.
http, socks5 Response
Generated proxy lines
The response is of type string.