Skip to main content
POST
/
open
/
api
/
network
/
detect
Network detect
curl --request POST \
  --url https://user.pmock.com/api/open/api/network/detect \
  --header 'Content-Type: application/json' \
  --data '
{
  "host": "<string>",
  "port": 123,
  "type": "<string>",
  "account": "<string>",
  "password": "<string>"
}
'
{
  "traceId": "<string>",
  "code": 123,
  "msg": "<string>",
  "status": "finish",
  "data": {
    "countryName": "<string>",
    "countryCode": "<string>",
    "latitude": "<string>",
    "longitude": "<string>",
    "language": "<string>",
    "timezone": "<string>",
    "region": "<string>",
    "host": "<string>"
  }
}

Body

application/json
host
string
required

代理主机

port
integer
required

代理端口

type
string
required

代理类型: 1-socks5,2-https,3-http,4=vmess,5=vless,6=trojan

account
string

代理账号

password
string

代理密码

Response

200 - application/json
traceId
string
required

Request link ID

code
integer
required

code

msg
string
required

Request return message

status
string
default:finish
required

Status, representing whether this is an instant completion or waiting state, finish or pending

data
object

Request return data