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

Request 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

POST/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.

Request example · application/json

Request example
FieldTypeRequired fieldDefault values / LimitsNotes
requestIdstringNo.—Optional client request ID. Reuse the same ID after a network interruption.
entitlementIdintegerNo.—Optional entitlement ID in the current account. The server selects an entitlement if omitted.
whitelistIdintegerNo.—Optional allowlist entry ID in the current account. The actual source address must still match.
quantityintegerYes, I am.Minimum 1; Maximum 100Number of proxies to request, from 1 to 100.
protocolstringYes, I am.Allowed HTTP / HTTPS / SOCKS5Proxy protocol.
countrystringNo.Default GLOBALCountry code. Omit to use global coverage.
agreementConfirmedbooleanYes, I am.Fixed trueConfirm which protocol to use.

Example of a request

Shell · STATIC_API_KEY Use account tokens
curl --request POST \
  "https://api.zzhttp.com/openapi/v1/proxy/extract?api_key=${API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{"requestId":"extract-demo-001","quantity":1,"protocol":"HTTP","country":"GLOBAL","agreementConfirmed":true}'

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.