cURL
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
}Proxy generation
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
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
}Generate dynamic proxy connection details for the selected country or city. The same endpoint supports dynamic residential and mobile products with the corresponding product credentials.
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
Query Parameters
Response
Generated proxy lines
The response is of type string.