cURL
curl --get 'https://miyaip.com/api/DatacenterIps/PageList' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
--data-urlencode 'PageNo=1' \
--data-urlencode 'PageSize=10' \
--data-urlencode 'Vid=all'const params = new URLSearchParams({
"PageNo": "1",
"PageSize": "10",
"Vid": "all"
});
const url = `https://miyaip.com/api/DatacenterIps/PageList?${params}`;
const response = await fetch(url, {
method: 'GET',
headers: {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
},
});
const result = await response.text();
console.log(result);import requests
url = "https://miyaip.com/api/DatacenterIps/PageList"
headers = {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
}
params = {
"PageNo": 1,
"PageSize": 10,
"Vid": "all"
}
response = requests.get(url, headers=headers, params=params, timeout=30)
response.raise_for_status()
print(response.text){
"code": 200,
"message": "Success",
"body": {
"pageNo": 1,
"pageSize": 10,
"totalPage": 1,
"totalRows": 1,
"records": [
{
"id": 46506,
"ipNo": "<IP_NO>",
"ip": "dc.example:12000:user:********",
"ispLocation": "US",
"planKey": "<PLAN_KEY>",
"expireTime": "2026-12-31 23:59:59"
}
]
}
}{
"code": 500,
"message": "Invalid request",
"body": null
}Proxy inventory
MiyaIP datacenter assets API: query purchased proxy IPs
Read purchased MiyaIP datacenter proxy assets with a Bearer token and filter the paginated results by status, region, and keyword.
cURL
curl --get 'https://miyaip.com/api/DatacenterIps/PageList' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
--data-urlencode 'PageNo=1' \
--data-urlencode 'PageSize=10' \
--data-urlencode 'Vid=all'const params = new URLSearchParams({
"PageNo": "1",
"PageSize": "10",
"Vid": "all"
});
const url = `https://miyaip.com/api/DatacenterIps/PageList?${params}`;
const response = await fetch(url, {
method: 'GET',
headers: {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
},
});
const result = await response.text();
console.log(result);import requests
url = "https://miyaip.com/api/DatacenterIps/PageList"
headers = {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_TOKEN>"
}
params = {
"PageNo": 1,
"PageSize": 10,
"Vid": "all"
}
response = requests.get(url, headers=headers, params=params, timeout=30)
response.raise_for_status()
print(response.text){
"code": 200,
"message": "Success",
"body": {
"pageNo": 1,
"pageSize": 10,
"totalPage": 1,
"totalRows": 1,
"records": [
{
"id": 46506,
"ipNo": "<IP_NO>",
"ip": "dc.example:12000:user:********",
"ispLocation": "US",
"planKey": "<PLAN_KEY>",
"expireTime": "2026-12-31 23:59:59"
}
]
}
}{
"code": 500,
"message": "Invalid request",
"body": null
}Read a paginated list of datacenter proxy assets belonging to the authenticated account. This request does not purchase or renew IPs.
Query purchased IPs
- Obtain a token from Log in and enter the Bearer credential.
- Set page number, page size, and the optional status, region, and keyword filters.
- Send the request and check the HTTP and business results. Read the returned page and total, then retain the same filters when moving through the result set.
Vid status values. Optional filters may be omitted when you do not need them.
Pagination bounds reflect the current public interface. Read proxy selection to compare network sources, or API response handling when the request fails.
Online debugging
Source: official datacenter asset reference.Authorizations
Use token from the login response in the Authorization: Bearer header. The source does not specify token lifetime or refresh behavior.
Query Parameters
Page number starting at 1.
Example:
1
Number of records per page.
Example:
10
Inventory status filter.
Available options:
all, new, valid, exp, expiringsoon Example:
"all"
Optional datacenter location filter.
Search by IP or related identifier.