Get package super proxy
/package/super-proxy/{id}Get available connection servers (Some servers can give better speed).
Ta metoda wymaga autoryzacji!
Możesz skorzystać z własnego klucza API, który znajdziesz pod adresem {panel sterowania.
Ta metoda - wymaga uprawnień -packages-proxies.read
Tworząc token API w swoim panelu sterowania, możesz wybrać określone uprawnienia (np. uniemożliwić tokenowi składanie zamówień).
Listę uprawnień znajdziesz także w naszej dokumentacji.
Listę uprawnień znajdziesz także w naszej dokumentacji.
Metoda zapytania
GEThttps://api.stableproxy.com/v2/package/super-proxy/{id}
Parametry zapytania
| Identyfikator | Regulamin | Przykład |
|---|---|---|
| with-hiddenNie koniecznie | nullableex-boolean | false |
| countriesNie koniecznie | nullablearray | {"UA": 10, "PL": 20} |
| searchNie koniecznie | nullablestring | 191 |
| per-pageNie koniecznie | nullableinteger | 245 |
| pageNie koniecznie | nullableinteger | 1 |
| sort-byNie koniecznie | nullablestringapp\_validators\_ex_in_rule | "" |
| sort-orderNie koniecznie | nullablestringin:asc, desc | "asc" |
| countries.*Nie koniecznie | distinctstringcountry_code | {"UA": 10, "PL": 20} |
| id | 1required | 64 |
Przykłady kodu
1const baseUrl = "https://api.stableproxy.com/v2";2const response = await fetch(baseUrl + "/package/super-proxy/{id}", {3 method: "GET",4 headers: {5 "Authorization": "API-Token [YOUR TOKEN]",6 "Content-Type": "application/json"7 }8});9const data = await response.json();Przykłady odpowiedzi
Success response200application/json
{
"data": {
"current_page": 1,
"data": [
{
"valid": true,
"username": "jQEVjm",
"type": null,
"selected": false,
"proxy_version": 2,
"proxy_address": "s-15543.stable.ovh",
"ports": {
"http": 11000,
"socks5": 11000,
"superproxy": 11000
},
"password": "iimVF4qCwMfL",
"note": null,
"last_verification": "2022-12-17T12:34:33.000000+02:00",
"is_super_proxy": true,
"is_ipv4": false,
"id": 5,
"country_code": "ALL",
"city_name": "",
"add_ip_to_username": false
},
{
"valid": true,
"username": "jQEVjm",
"type": null,
"selected": true,
"proxy_version": 2,
"proxy_address": "test-peer.stableproxy.com",
"ports": {
"http": 21000,
"socks5": 21000,
"superproxy": 21000
},
"password": "iimVF4qCwMfL",
"note": null,
"last_verification": "2022-12-17T12:34:33.000000+02:00",
"is_super_proxy": true,
"is_ipv4": false,
"id": 22,
"country_code": "US",
"city_name": "",
"add_ip_to_username": false
}
],
"first_page_url": "https://api.stableproxy.com/v2/package/super-proxy/15543?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.stableproxy.com/v2/package/super-proxy/15543?page=1",
"next_page_url": null,
"path": "https://api.stableproxy.com/v2/package/super-proxy/15543",
"per_page": 25,
"prev_page_url": null,
"to": 12,
"total": 12
},
"good": true,
"timestamp": 1731360459,
"cause": {
"type": "user",
"user_id": 1,
"token_id": 9845,
"token_sign": "edd87db549cd52292a47ad455bbea947"
}
}