> For the complete documentation index, see [llms.txt](https://doc.xspark.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.xspark.cn/api/ip-management/ip-expiration-date.md).

# 查询IP到期时间

## POST /api/open/static/expire\_time

> 查询静态 ISP 代理或静态数据中心代理的到期时间。

```json
{"openapi":"3.0.3","info":{"title":"xspark-api","version":"1.0.0"},"servers":[{"url":"https://api.xspark.cn"}],"security":[{"ApiKey":[]}],"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"ApiKey","description":"在请求头 ApiKey 中填写你的 API KEY。  \n格式：ApiKey: YOUR_API_KEY。  \n请将 YOUR_API_KEY 替换为你的 API KEY 值"}}},"paths":{"/api/open/static/expire_time":{"post":{"description":"查询静态 ISP 代理或静态数据中心代理的到期时间。","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ip_type":{"type":"integer","description":"1 静态 ISP；2 数据中心。默认 1。","enum":[1,2],"default":1},"ips":{"type":"array","items":{"type":"string","maxLength":255},"description":"要查询的网络地址数组，至少 1 个、最多 100 个；每项最长 255 字符。","minItems":1,"maxItems":100}},"required":["ips"]}}},"required":true,"description":"请求参数"},"responses":{"200":{"description":"返回示例","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"请求处理状态码，200 表示成功。"},"data":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string","description":"网络地址。"},"expire_time":{"type":"integer","format":"int64","description":"最晚到期时间，Unix 秒。"}}},"description":"匹配到的节点过期信息。"},"message":{"type":"string","description":"响应消息。"},"timestamp":{"type":"integer","format":"int64","description":"响应生成时间，Unix 秒。"}}}}}}}}}}}
```
