> For the complete documentation index, see [llms.txt](https://doc.thordata.com/interface-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/interface-documentation/zh-hk/gong-gong-api/isp-shu-ju-zhong-xin-dai-li/cha-xun-dai-li-ip-guo-qi-shi-jian.md).

# 查詢代理IP過期時間

### 基礎信息

**接口說明：**&#x901A;過接口查詢Thordata數據中心代理或ISP代理的IP過期時間

**請求地址：**<https://openapi.thordata.com/api/proxy/expiration-time>

**請求方式：**<mark style="color:green;">GET</mark>

### 請求參數

**Params：**

| 參數名稱         | 參數类型   | 是否必須 | 描述                                                                                      |
| ------------ | ------ | ---- | --------------------------------------------------------------------------------------- |
| `token`      | string | 必須   | 請登入[**儀表板 >> 菜單 >> 我的賬戶**](https://dashboard.thordata.com/account-settings)查看您的token參數值 |
| `proxy_type` | number | 必須   | 選擇代理類型：1是ISP代理，2是數據中心代理（默認為1）                                                           |
| `ips`        | string | 必須   | 需要查询的IP，多個用逗號(,)隔開                                                                      |

### 響應示例

```json
{
    "code": 200,
    "data": [
        {
            "ip": "1.1.1.1",
            "expiration_time": "2025-03-13 14:21"
        }
    ],
    "msg": "ok"
}
```

{% hint style="info" %}
若返回的code值非200，請查閱[**錯誤碼說明**](/interface-documentation/zh-hk/cuo-wu-ma/cuo-wu-ma-shuo-ming.md)列表並進行修改
{% endhint %}

<table><thead><tr><th width="206">参数名称</th><th>参数类型</th><th width="180">是否必須</th><th>描述</th></tr></thead><tbody><tr><td><code>code</code></td><td>number</td><td>非必須</td><td>-</td></tr><tr><td><code>data</code></td><td>object</td><td>非必須</td><td>-</td></tr><tr><td><code>ip</code></td><td>string</td><td>必須</td><td>IP信息</td></tr><tr><td><code>expiration_time</code></td><td>string</td><td>必須</td><td>IP到期時間</td></tr><tr><td><code>msg</code></td><td>string</td><td>非必須</td><td>-</td></tr></tbody></table>
