Request proxy endpoints with an API token
Description of the authentication, parameters, and response fields of the public dynamic API.
Interfaces and authentication
/openapi/v1/proxy/extractAuthenticate 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 / PostmanRequest parameters
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
api_key | string | No. | Query · Or an authentication header | Account API token. Keep it on a trusted server. Examples use placeholders. |
Request example · application/json
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
requestId | string | No. | — | Optional client request ID. Reuse the same ID after a network interruption. |
entitlementId | integer | No. | — | Optional entitlement ID in the current account. The server selects an entitlement if omitted. |
whitelistId | integer | No. | — | Optional allowlist entry ID in the current account. The actual source address must still match. |
quantity | integer | Yes, I am. | Minimum 1; Maximum 100 | Number of proxies to request, from 1 to 100. |
protocol | string | Yes, I am. | Allowed HTTP / HTTPS / SOCKS5 | Proxy protocol. |
country | string | No. | Default GLOBAL | Country code. Omit to use global coverage. |
agreementConfirmed | boolean | Yes, I am. | Fixed true | Confirm which protocol to use. |
Example of a request
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.
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
code | integer | Yes, I am. | Fixed 0 | The compatibility success code is 0. The Static Residential API uses 200. |
success | boolean | Yes, I am. | Fixed true | Success flag. |
msg | string | Yes, I am. | — | Response message. |
data | object[] | Yes, I am. | — | Response data for this endpoint. |
data[].ip | string | Yes, I am. | — | Proxy gateway IP address or hostname. |
data[].port | integer | Yes, I am. | — | Proxy gateway port. |
request_ip | string | Yes, I am. | — | Actual source IPv4 address identified by the server. |
{
"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.