Proxy Detection
FreshTest proxy connectivity and get IP information.
URL: https://openapi.geelark.com/open/v1/proxy/detectMethod: POST
Request Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| scheme | Yes | string | Proxy type (socks5, http, https) |
| server | Yes | string | Proxy address |
| port | Yes | integer | Proxy port |
| username | No | string | Username |
| password | No | string | Password |
Request Example
json
{
"scheme": "socks5",
"server": "192.3.8.1",
"port": 8000,
"username": "admin",
"password": "admin"
}Response Example
json
{
"code": 0,
"data": {
"ip": "192.3.8.1",
"country": "US",
"region": "California",
"city": "Los Angeles",
"latency": 120
}
}Error Codes
| Code | Description |
|---|---|
| 45004 | Proxy check failed |
| 45003 | Proxy not allowed (mainland China IP) |