Pakiety
Wyświetl i sprawdź aktywne pakiety proxy przez API REST RaxyProxy.
GET /packages
Zwraca wszystkie aktywne i zawieszone pakiety proxy.
GET
/api/v1/packagespackages-list.json
{
"data": [
{
"id": 12,
"name": "Residential 10 GB",
"type": "residential",
"status": "active",
"pool_type": "residential",
"quota_gb": 10.0,
"used_gb": 3.2140,
"available_gb": 6.7860,
"usage_pct": 32.14,
"blocked": false,
"synced_at": "2026-05-29T11:00:00+00:00",
"created_at": "2026-04-01T11:59:00+00:00",
"activated_at": "2026-04-01T12:00:00+00:00",
"proxy": {
"host": "proxy.raxyproxy.com",
"http_port": 823,
"socks5_port": 824,
"login": "abc123def456",
"threads": 100,
"sticky_port_start": 10000,
"sticky_port_end": 20000,
"sticky_range": { "start": 10000, "end": 20000 }
}
}
],
"meta": { "version": "v1" }
}GET /packages/:id
Zwraca pojedynczy pakiet. Po zainicjowaniu odpowiedź zawiera dodatkowy blok settings block with IP allowlists, supported protocols, and default geo params.
GET
/api/v1/packages/{id}package-show.json
{
"data": {
"id": 12,
"name": "Residential 10 GB",
"type": "residential",
"status": "active",
"pool_type": "residential",
"quota_gb": 10.0,
"used_gb": 3.2140,
"available_gb": 6.7860,
"usage_pct": 32.14,
"blocked": false,
"synced_at": "2026-05-29T11:00:00+00:00",
"created_at": "2026-04-01T11:59:00+00:00",
"activated_at": "2026-04-01T12:00:00+00:00",
"proxy": {
"host": "proxy.raxyproxy.com",
"http_port": 823,
"socks5_port": 824,
"login": "abc123def456",
"password": "6f487b213b4cb4ae",
"threads": 100,
"sticky_port_start": 10000,
"sticky_port_end": 20000,
"sticky_range": { "start": 10000, "end": 20000 }
},
"settings": {
"allowed_ips": [],
"supported_protocols": ["http", "socks5"],
"blocked_hosts": [],
"default_geo": {
"countries": [],
"states": [],
"cities": [],
"zipcodes": [],
"asns": [],
"exclude_countries": [],
"exclude_asn": [],
"anonymous_filter": false,
"rotation_interval": null
}
}
},
"meta": { "version": "v1" }
}Pola odpowiedzi
| Pole | Typ | Opis |
|---|---|---|
id | integer | ID pakietu — używane w innych wywołaniach API |
name | string | Czytelna nazwa produktu |
type | string | residential | residential_premium | mobile | datacenter |
status | string | active | suspended |
pool_type | string | Wewnętrzny identyfikator puli (residential, residential_premium, mobile, datacenter) |
quota_gb | float | Łączny zakupiony ruch w GB |
used_gb | float | Dotychczas zużyty ruch |
available_gb | float | Pozostały ruch |
usage_pct | float | Procent wykorzystania (0–100) |
blocked | boolean | true gdy pakiet jest administracyjnie zablokowany |
synced_at | ISO 8601 | null | Ostatnia synchronizacja licznika użycia od dostawcy (≤30 min opóźnienia) |
created_at | ISO 8601 | Kiedy utworzono rekord pakietu |
activated_at | ISO 8601 string | Kiedy pakiet został po raz pierwszy aktywowany |
proxy.host | string | Nazwa hosta proxy |
proxy.http_port | integer | Port proxy HTTP/HTTPS (823) |
proxy.socks5_port | integer | Port SOCKS5 (824) |
proxy.login | string | Nazwa użytkownika proxy (bazowa, bez modyfikatorów geo) |
proxy.password | string (show only) | Hasło proxy w postaci jawnej — zwracane TYLKO przez GET /packages/{id} (endpoint szczegółowy). Trzymaj w tajemnicy. |
proxy.threads | integer | Maksymalna liczba jednoczesnych połączeń |
proxy.sticky_port_start | integer | Pierwszy port sesji sticky |
proxy.sticky_port_end | integer | Ostatni port sesji sticky |
proxy.sticky_range | object | Zakres portów sticky, dublowany dla SDK preferujących obiekt |
settings.allowed_ips | array | Lista dozwolonych IP (pusta = każde IP dozwolone) |
settings.supported_protocols | array | Włączone protokoły dla tego pakietu |
settings.blocked_hosts | array | Domeny, których pakiet nie może osiągnąć (pełna lista) |
settings.default_geo | object | Domyślny filtr geo (obiekt z countries/states/cities/zipcodes/asns + exclude_* + anonymous_filter + rotation_interval). |
Przykłady kodu
packages.sh
# List all packages
curl https://raxyproxy.com/api/v1/packages \
-H "Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Get a single package
curl https://raxyproxy.com/api/v1/packages/12 \
-H "Authorization: Bearer raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"packages.py
import requests
API_KEY = 'raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
HEADERS = {'Authorization': f'Bearer {API_KEY}'}
# List packages
pkgs = requests.get('https://raxyproxy.com/api/v1/packages', headers=HEADERS).json()
for p in pkgs['data']:
pct = p['usage_pct']
print(f"[{p['id']}] {p['name']} {p['used_gb']}/{p['quota_gb']} GB ({pct}%)")packages.mjs
const API_KEY = 'raxy_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
const headers = { Authorization: `Bearer ${API_KEY}` };
const res = await fetch('https://raxyproxy.com/api/v1/packages', { headers });
const json = await res.json();
for (const p of json.data) {
const { id, name, used_gb, quota_gb, usage_pct } = p;
console.log(`[${id}] ${name} ${used_gb}/${quota_gb} GB (${usage_pct}%)`);
}