以裸文本查看访问者 IP

GET/ip/raw
公开访问

访问类别:匿名 API,可携带 Token 使用独立额度

响应

text/plain

{
  "type": "string"
}

响应示例

成功响应

curl -sS https://oit.sh/ip/raw
HTTP 200
content-type: text/plain; charset=UTF-8
content-encoding: gzip
cache-control: no-store

127.0.0.1

错误示例

curl -sS -X PATCH https://oit.sh/ip/raw
HTTP 405
content-type: application/json
content-encoding: gzip
cache-control: no-store

{
  "error": {
    "code": "METHOD_NOT_ALLOWED",
    "message": "接口不支持该请求方法"
  }
}

在线调试

Ctrl / ⌘ + Enter
curl -X GET 'https://oit.sh/ip/raw'

响应

等待请求

等待发送请求