Skip to main content
The Center's Directory
API documentation · Rotating residential proxies

Get proxy endpoints with an API token

Description of the authentication, parameters, and response fields of the public dynamic API.

Maintained by the ZZHTTP engineering teamUpdated October 6, 2026

Interfaces and authentication

GET/openapi/v1/proxy/extract

Authenticate with an account API token or a legacy API Link. The actual source IPv4 address must be enabled in your allowlist. Extraction checks identity verification and an entitlement matching the protocol. These GET and POST endpoints use a compatibility format and do not support session, state, province, or city parameters.

Use HTTPS. You can authenticate with the same token in the api_key query parameter, X-API-Key, or Authorization: Bearer. Conflicting values are rejected. The actual source address must still be allowlisted.

Examples are synthesis data and placement credentials, which only describe structure. The interface contract does not mean that the target environment is open, and the open status is determined by the console.

Download OpenAPI · Import Apifox / Postman

Request parameters

Query and path parameters
FieldTypeRequired fieldDefault values / LimitsNotes
api_keystringNo.Query · Or an authentication headerAccount API token. Keep it on a trusted server. Examples use placeholders.
numintegerYes, I am.query · Minimum 1; Maximum 100Number of proxies to extract.
regionsstringNo.query · Default GLOBALCountry code from the country catalog. The country alias is also supported. If both are set, they must match.
protocolstringNo.query · Default http; Allowed http / socks5Use http for an HTTP proxy. It can reach HTTPS destinations with CONNECT. The value https is not accepted.
return_typestringNo.query · Default json; Allowed json / txtResponse format.
lbstringNo.query · Default 1; Allowed 1 / 2 / 3 / 4 / 5 / 6TXT separator. 1 is CRLF, 2 is /br, 3 is CR, 4 is LF, 5 is TAB, and 6 uses the custom sb value.
sbstringNo.query · —Required when lb=6. Must be nonempty and at most 32 UTF-8 bytes.
request_idstringNo.query · —Optional idempotent request ID. If omitted, X-Request-Id is used when supplied, or the server generates an ID.

No requested body.

Example of a request

Shell · STATIC_API_KEY Use account tokens
curl --request GET \
  "https://api.zzhttp.com/openapi/v1/proxy/extract?api_key=${API_KEY}&num=1&regions=GLOBAL&protocol=http"

Successful response

Success or a per-item batch result. Check the business code as well as the HTTP status.

Responses omit internal fields and proxy passwords. Extraction succeeds with HTTP 200 and code 0. Allowlist and country catalog requests use code 200 for success. Extraction POST errors use code and message. Successful country catalog responses omit requestId.

Response fields (including nested fields)
FieldTypeRequired fieldDefault values / LimitsNotes
codeintegerYes, I am.Fixed 0The compatibility success code is 0. The Static Residential API uses 200.
successbooleanYes, I am.Fixed trueSuccess flag.
msgstringYes, I am.—Response message.
dataobject[]Yes, I am.—Response data for this endpoint.
data[].ipstringYes, I am.—Proxy gateway IP address or hostname.
data[].portintegerYes, I am.—Proxy gateway port.
request_ipstringYes, I am.—Actual source IPv4 address identified by the server.
JSON · HTTP 200
{
  "code": 0,
  "success": true,
  "msg": "Successfully obtained",
  "data": [
    {
      "ip": "203.0.113.20",
      "port": 7878
    }
  ],
  "request_ip": "198.51.100.10"
}

Errors and Retry

Reuse the original requestId or request_id if a request is interrupted. Use X-Proxy-Requested-Count, X-Proxy-Returned-Count, and X-Proxy-Partial to detect partial results. Wait as directed by Retry-After if resources are unavailable. Country catalog reads can be retried a limited number of times.

Error code, HTTP status, error response field and recovery method are unified inError Codes and Recommendations.

Did this answer your question?

Feedback is used only to improve the public documentation and does not submit accounts or request information.