Check a temporary proxy
Check the temporary custom or api proxy settings in the request body without creating a proxy or updating any saved proxy. In api mode, the extraction URL is requested first to resolve the current IPv4 address and port. When auth_type=credential, username/password are used to check the connection; whitelist uses the existing allowlist behavior. Connection failures and timeouts are normal check results: status is unavailable in an HTTP 200 response. This endpoint requires only a Local API Key and does not depend on the client backend login session.
Request parameters
Authorization Bearer Token
Include your API Key as a Bearer token in the Authorization request header.
Authorization: Bearer <api-key>Body parameters
requiredapplication/jsonProxyCheckRequestobject
Generated from the schema; not a live response.
{
"mode": "custom",
"config": {
"host": "string",
"port": 0
}
}Request code examples
JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.
curl -X POST -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' -d '{
"mode": "custom",
"config": {
"host": "string",
"port": 0
}
}' 'http://local.zhongyibrowser.com:39025/api/v1/proxies/check'Responses
Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.
Temporary proxy check result
Body
application/jsonProxyCheckSuccessResponseobjectrequiredEndpoint business dataAdditional fields are not allowed.
Additional fields are not allowed.
Generated from the schema; not a live response.
{
"code": 0,
"message": "success",
"data": {
"mode": "custom",
"status": "available",
"endpoint": {
"protocol": "http",
"ip_protocol": "ipv4",
"host": "string",
"port": 0
},
"checked_at": "2024-01-15T09:30:00Z",
"latency_ms": 0
}
}