{"openapi":"3.0.3","info":{"title":"🌐 proxy-pool","description":"Maintains a self-verified pool of free HTTP/SOCKS proxies sourced from a public list: periodically re-fetches the source list and, in rotating batches, independently checks each proxy's own liveness/latency by making a real HTTP request through it -- never trusts the source's own claimed alive/latency fields. Read-only tools let other services query the verified pool by country/protocol/anonymity/latency.","x-guidance":"Maintains a self-verified pool of free HTTP/SOCKS proxies sourced from a public list: periodically re-fetches the source list and, in rotating batches, independently checks each proxy's own liveness/latency by making a real HTTP request through it -- never trusts the source's own claimed alive/latency fields. Read-only tools let other services query the verified pool by country/protocol/anonymity/latency.","version":"1.0.0","contact":{"email":"contact@17711.xyz"}},"paths":{"/v1/proxy-pool/get_best_proxy":{"get":{"operationId":"proxy_pool_get_best_proxy","summary":"Proxy API: returns one fast, verified-alive proxy filtered by country, city, protocol and anonymity ($0.010, x402)","description":"Picks randomly among the 5 fastest currently-alive proxies (ranked by a smoothed moving-average latency across several checks, not a single lucky sample) matching an optional country/protocol/anonymity filter -- never the exact same proxy as the immediately preceding call, so repeated calls (from the same or a different caller) spread traffic across the pool instead of concentrating it on a single proxy. Errors `not_found` if no verified-alive proxy matches. Free for the first few calls, then a real x402 payment (a `402` response carrying a `PAYMENT-REQUIRED` challenge) is required to continue. Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.010 USDC per call.","x-price-usdc":"0.010","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"anonymity","in":"query","required":false,"schema":{"description":"e.g. `\"elite\"`/`\"anonymous\"`/`\"transparent\"`. Omitted/empty = no filter.","type":["string","null"]}},{"name":"city","in":"query","required":false,"schema":{"description":"City name as declared by the source, e.g. `\"Paris\"`. Omitted/empty = no filter.","type":["string","null"]}},{"name":"country","in":"query","required":false,"schema":{"description":"2-letter country code, e.g. `\"FR\"`. Omitted/empty = no filter.","type":["string","null"]}},{"name":"protocol","in":"query","required":false,"schema":{"description":"One of the proxy's own declared protocols, e.g. `\"socks5\"`. Omitted/empty = no filter.","type":["string","null"]}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"proxy":{"$ref":"#/components/schemas/ProxyView"}},"required":["proxy"]},"example":{"proxy":{"id":"string","ip":"string","port":0,"protocols":["string"],"country":"string","city":"string","anonymity":"string","checked_alive":false,"checked_latency_ms":0,"checked_protocol":"string","checked_at":0,"checked_ema_latency_ms":0,"checked_consecutive_successes":0}}}}},"402":{"description":"Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired challenge","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"}}},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string","description":"Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}},"required":["x402Version","accepts"]}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}}},"servers":[{"url":"/registry/proxy-pool"}],"components":{"schemas":{"ProxyView":{"type":"object","properties":{"id":{"type":"string"},"ip":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"protocols":{"type":"array","items":{"type":"string"}},"country":{"type":"string"},"city":{"type":"string"},"anonymity":{"type":"string"},"checked_alive":{"description":"`None` if this service has never checked this proxy yet.","type":["boolean","null"]},"checked_latency_ms":{"type":["integer","null"],"minimum":0},"checked_protocol":{"type":["string","null"]},"checked_at":{"type":["integer","null"]},"checked_ema_latency_ms":{"description":"See `CheckedProxy::ema_latency_ms`'s own doc comment.","type":["number","null"]},"checked_consecutive_successes":{"type":"integer","minimum":0,"description":"See `CheckedProxy::consecutive_successes`'s own doc comment. `0` if never checked."}},"required":["id","ip","port","protocols","country","city","anonymity","checked_consecutive_successes"],"description":"A `SourceProxy` joined with its `CheckedProxy` result, if it has been checked at least once -- what every read tool actually filters/returns."}}}}