Pagsisimula
- 1Gumawa ng account at mag-sign in sa dashboard.
- 2Sa Kumonekta, gumawa ng API key. Isang beses lang itong ipinapakita nang buo, kaya i-save agad.
- 3Ilagay ang key sa Authorization header ng bawat request na nangangailangan nito.
- 4Tawagin ang /account para matiyak na gumagana ang key, tapos gamitin ang /orders para bumili.
Authentication
Kailangan ng API key ang mga endpoint na nakatali sa account mo (account, orders, proxy-user), na ipinapadala bilang Bearer token sa Authorization header. Pampubliko ang presyo, mga bansa at quote at gumagana nang walang key.
Hash lang ng key ang sine-save. Kung mawala mo ito, gumawa ng bagong key sa dashboard, at agad na titigil sa paggana ang luma. Huwag kailanman ilagay ang key sa browser code o sa pampublikong repository.
Authorization: Bearer rpk_your_api_key
Base URL at format ng data
- Base URL
- https://royalproxy.online/api/v1
- Body ng request at response
- application/json
- Pera
- Halaga sa USD bilang numero, hal. 807.90
- Oras
- ISO 8601 (UTC)
Rate limit
Puwedeng magpadala ang isang API key ng 60 request kada minuto, at pinapayagan ng mga pampublikong endpoint ang 60 kada minuto bawat IP. Kapag lumampas, HTTP 429 ang ibinabalik. Maghintay ng isang minuto at subukan ulit.
Mga error response
May kasamang HTTP status code ang error at JSON body na may maikling code at mensahe.
{
"error": {
"code": "insufficient_balance",
"message": "Your balance is too low for this order. Top up in the dashboard."
}
}| HTTP | code | Ibig sabihin |
|---|---|---|
| bad_requestHTTP 400May kulang na kailangang value, o hindi valid ang isang value para sa produktong ito. | May kulang na kailangang value, o hindi valid ang isang value para sa produktong ito. | |
| unauthorizedHTTP 401Walang ipinadalang API key, o hindi valid ang key. | Walang ipinadalang API key, o hindi valid ang key. | |
| insufficient_balanceHTTP 402Mas mahal ang order kaysa sa balance mo. Hindi ka siningil. | Mas mahal ang order kaysa sa balance mo. Hindi ka siningil. | |
| not_foundHTTP 404Walang order na may ganitong id sa account mo. | Walang order na may ganitong id sa account mo. | |
| rate_limitedHTTP 429Naabot na ang limit ng request kada minuto. | Naabot na ang limit ng request kada minuto. | |
| server_errorHTTP 500May pumalya sa panig namin. Hindi ka siningil. | May pumalya sa panig namin. Hindi ka siningil. |
Mga endpoint
Detalye ng account
GET/api/v1/accountAPI key
Ang balance mo, proxy host at mga port, proxy username at password, at mga allowed IP.
curl https://royalproxy.online/api/v1/account \ -H "Authorization: Bearer rpk_your_api_key"
{
"username": "royal_user",
"balance_usd": 1300,
"proxy": {
"host": "gate.royalproxy.online",
"http_port": 6100,
"socks5_port": 6200,
"username": "rpexample1",
"password": "your_password"
},
"allowed_ips": [
"203.0.113.10"
]
}Mga produkto at presyo
GET/api/v1/productsHindi kailangan ng key
Lahat ng produkto kasama ang limit, antas ng presyo at discount nila, mula sa parehong table ng pricing page.
curl https://royalproxy.online/api/v1/products
{
"currency": "USD",
"prices_as_of": "2026-11-28",
"products": [
{
"id": "unlimited",
"unit": "day",
"quantity": {
"meaning": "days",
"min": 1,
"max": 365
},
"...": "..."
},
{
"id": "residential",
"unit": "gb",
"...": "..."
}
]
}Mga bansa at lungsod
GET/api/v1/countriesHindi kailangan ng key
Mga bansang available para sa isang produkto, pati ang mga value ng lungsod na inilalagay sa proxy username.
| Field | Uri | Ibig sabihin |
|---|---|---|
productOpsyonal | string | Isa sa residential, unlimited, isp, datacenter. Residential ang default. |
curl "https://royalproxy.online/api/v1/countries?product=datacenter"
{
"product": "datacenter",
"countries": [
{
"code": "us",
"name": "United States",
"region": "americas",
"datacenter": true,
"cities": [
{
"name": "New York",
"value": "new_york"
},
{
"name": "Los Angeles",
"value": "los_angeles"
}
]
}
]
}Quote ng order
POST/api/v1/quoteHindi kailangan ng key
Kinukuwenta ang kabuuan ng order nang walang sinisingil. Pareho ang body sa paglalagay ng order.
| Field | Uri | Ibig sabihin |
|---|---|---|
productKailangan | string | Isa sa residential, unlimited, isp, datacenter. |
quantityKailangan | integer | GB para sa residential (5~5,000), araw para sa unlimited (1~365), IP para sa isp (1~1,000) at para sa datacenter (5~5,000). |
concurrencyOpsyonal | integer | Para lang sa unlimited: 200, 500, 1000 o 2000. |
bandwidthOpsyonal | integer | Para lang sa unlimited, sa Mbps: 100, 200, 500 o 1000. |
monthsOpsyonal | integer | Para lang sa isp at datacenter: 1, 3, 6 o 12. |
countryOpsyonal | string | Para lang sa isp at datacenter: dalawang-letrang code gaya ng jp. Galing sa /countries ang mga valid na code. |
curl -X POST https://royalproxy.online/api/v1/quote \
-H "Content-Type: application/json" \
-d '{"product":"unlimited","quantity":30,"concurrency":1000,"bandwidth":200}'{
"product": "unlimited",
"quantity": 30,
"unit_price_usd": 6.97,
"unit": "day",
"total_usd": 209.1
}Gumawa ng order
POST/api/v1/ordersAPI key
Sinisingil ang kabuuan sa balance mo at ginagawa ang order. Nagsisimula ito bilang pending (ina-activate) at nagiging active kapag handa na. Kapag pumalya ang activation, nagiging refunded ito at babalik sa balance ang buong halaga. Ibinabalik ang 402 kapag masyadong mababa ang balance.
| Field | Uri | Ibig sabihin |
|---|---|---|
productKailangan | string | Isa sa residential, unlimited, isp, datacenter. |
quantityKailangan | integer | GB para sa residential (5~5,000), araw para sa unlimited (1~365), IP para sa isp (1~1,000) at para sa datacenter (5~5,000). |
concurrencyOpsyonal | integer | Para lang sa unlimited: 200, 500, 1000 o 2000. |
bandwidthOpsyonal | integer | Para lang sa unlimited, sa Mbps: 100, 200, 500 o 1000. |
monthsOpsyonal | integer | Para lang sa isp at datacenter: 1, 3, 6 o 12. |
countryOpsyonal | string | Para lang sa isp at datacenter: dalawang-letrang code gaya ng jp. Galing sa /countries ang mga valid na code. |
curl -X POST https://royalproxy.online/api/v1/orders \
-H "Authorization: Bearer rpk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"product":"unlimited","quantity":30,"concurrency":1000,"bandwidth":200}'{
"order": {
"id": "RP-7KQ2M-X4HTD",
"product": "unlimited",
"quantity": 30,
"months": null,
"concurrency": 1000,
"bandwidth_mbps": 200,
"country": null,
"unit_price_usd": 6.97,
"total_usd": 209.1,
"status": "pending",
"created_at": "2026-10-31T09:12:44.120Z",
"updated_at": "2026-10-31T09:12:44.120Z"
},
"balance_usd": 1090.9
}Mga order mo
GET/api/v1/ordersAPI key
Ang pinakabagong 100 order sa account mo, nauuna ang pinakabago.
| Field | Uri | Ibig sabihin |
|---|---|---|
statusOpsyonal | string | pending, active o refunded. Huwag ilagay para ilista ang lahat. |
curl "https://royalproxy.online/api/v1/orders?status=pending" \ -H "Authorization: Bearer rpk_your_api_key"
{
"orders": [
{
"id": "RP-7KQ2M-X4HTD",
"product": "unlimited",
"quantity": 30,
"months": null,
"concurrency": 1000,
"bandwidth_mbps": 200,
"country": null,
"unit_price_usd": 6.97,
"total_usd": 209.1,
"status": "pending",
"created_at": "2026-10-31T09:12:44.120Z",
"updated_at": "2026-10-31T09:12:44.120Z"
}
]
}Isang order
GET/api/v1/orders/{id}API key
Isang order ayon sa id, madaling paraan para tingnan kung active na ito.
| Field | Uri | Ibig sabihin |
|---|---|---|
idKailangan | string | Order id, gaya ng RP-7KQ2M-X4HTD. |
curl https://royalproxy.online/api/v1/orders/RP-7KQ2M-X4HTD \ -H "Authorization: Bearer rpk_your_api_key"
{
"order": {
"id": "RP-7KQ2M-X4HTD",
"product": "unlimited",
"quantity": 30,
"months": null,
"concurrency": 1000,
"bandwidth_mbps": 200,
"country": null,
"unit_price_usd": 6.97,
"total_usd": 209.1,
"status": "active",
"created_at": "2026-10-31T09:12:44.120Z",
"updated_at": "2026-10-31T09:40:02.511Z"
}
}Gumagawa ng proxy username
GET/api/v1/proxy-userAPI key
Gumagawa ng proxy username mula sa mga option mo at nagbabalik ng HTTP at SOCKS5 proxy URL na handang gamitin. Kapag walang laman ang session, umiikot ang IP kada request.
| Field | Uri | Ibig sabihin |
|---|---|---|
productOpsyonal | string | Isa sa residential, unlimited, isp, datacenter. Unlimited ang default. |
countryOpsyonal | string | Dalawang-letrang country code, gaya ng jp. |
cityOpsyonal | string | Value ng lungsod mula sa /countries, gaya ng tokyo. Kailangan ng country. |
sessionOpsyonal | string | 1~32 letra o numero. Iisang IP ang hawak ng mga request na may parehong session. |
ttlOpsyonal | integer | Ilang minuto hawak ng session ang IP nito, 1~60. 30 ang default. |
curl "https://royalproxy.online/api/v1/proxy-user?product=residential&country=jp&city=tokyo&session=job42&ttl=30" \ -H "Authorization: Bearer rpk_your_api_key"
{
"username": "rpexample1-zone-res-cc-jp-city-tokyo-sid-job42-ttl-30",
"password": "your_password",
"http": "http://rpexample1-zone-res-cc-jp-city-tokyo-sid-job42-ttl-30:your_password@gate.royalproxy.online:6100",
"socks5": "socks5h://rpexample1-zone-res-cc-jp-city-tokyo-sid-job42-ttl-30:your_password@gate.royalproxy.online:6200"
}Kumpletong halimbawa
Kumuha ng quote, bumili mula sa balance at magpadala ng request gamit ang IP sa Japan.
import requests
API = "https://royalproxy.online/api/v1"
HEAD = {"Authorization": "Bearer rpk_your_api_key"}
# 1) Check the price first
plan = {"product": "residential", "quantity": 100}
print(requests.post(f"{API}/quote", json=plan).json())
# 2) Order from your balance
r = requests.post(f"{API}/orders", json=plan, headers=HEAD)
order = r.json()["order"]
print(order["id"], order["status"])
# 3) Get a username for Japanese IPs
u = requests.get(f"{API}/proxy-user", headers=HEAD,
params={"product": "residential", "country": "jp"}).json()
proxies = {"http": u["http"], "https": u["http"]}
print(requests.get("https://ipinfo.io/json", proxies=proxies, timeout=30).json())const API = "https://royalproxy.online/api/v1";
const HEAD = { Authorization: "Bearer rpk_your_api_key", "Content-Type": "application/json" };
// Check the balance
const acc = await fetch(`${API}/account`, { headers: HEAD }).then((r) => r.json());
console.log(acc.balance_usd);
// Order 7 days of unlimited
const res = await fetch(`${API}/orders`, {
method: "POST",
headers: HEAD,
body: JSON.stringify({ product: "unlimited", quantity: 7, concurrency: 500, bandwidth: 100 }),
});
if (res.status === 402) console.log("Top up first");
else console.log((await res.json()).order.id);Pareho ang order sa API at ang order sa dashboard at lumalabas ito sa History. Palitan ang rpk_your_api_key ng totoong key mo.