# IP 查询

网页工具，用于查询任意 IPv4 / IPv6 的地理、ASN、运营商、信誉。便于确认**第三方**会怎么看一个 IP——尤其用于评估 helodata 返回的出口 IP，或与 MaxMind / IPinfo 数据对照。

位置：**控制台 → 资源 → IP 查询**，或公开版 [helodata.com/tools/ip-lookup](https://helodata.com/tools/ip-lookup)。

## 展示内容

输入 IP，获取：

* **国家、州、城市** — 来自 MaxMind、IPinfo、helodata 自有库（三栏并列）
* **ASN 与运营商名称**
* **IP 类型** — 住宅 / 移动 / 数据中心 / ISP / 被标记为 VPN
* **反向 DNS** — PTR 记录（若有）
* **黑名单** — 主要信誉名单收录情况（Spamhaus、AbuseIPDB 等）
* **可达性** — TCP 探测 80、443、22 端口（**不会**探测其他端口）

\[screenshot: 单 IP 查询结果]

## 为什么三个地理库？

不同目标用不同地理数据。看到地域屏蔽时，重要的是**目标**的地理库，不是我们的。并排对比能解释为什么同一 IP 在 helodata 看是一国、目标看是另一国。

三库都不一致——该 IP 大概率最近迁徙过，数据库尚未同步刷新。

## 批量查询

一次最多 100 个 IP：

```bash
curl -X POST -H "Authorization: Bearer API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "ips": ["198.51.100.42", "198.51.100.43", "203.0.113.5"]
     }' \
     https://api.helodata.com/v1/tools/ip-lookup
```

响应是与 UI 同形 JSON 数组。

更大批量请按 100 IP 分页。该 API 受限流约束——见 [限流](/helodata-zh/api-can-kao/rate-limits.md)。

## 用途

* 把 ISP IP 加入爬虫配置前**复核元数据**
* **审计批次的地理分布** — 拉清单批量查询，按城市分组
* **调查目标的 403** — 目标使用的 IPinfo 是否把该 IP 标为 VPN？
* **验证替换 IP** — 申请替换后查一下新 IP 是否仍为住宅再部署

## 上限

* 免费档：UI 100 次 / 日，API 100 次 / 日
* Pro+ 套餐：两者均 10,000 / 日
* Enterprise：定制
* 批量端点按每 IP 计 1 次

超限 `429 too_many_requests`，附 `Retry-After` 头。

## 隐私

查询一个 IP **不会**向该 IP 所有者暴露你身份。工具查询的是任何人付费即可查询的第三方库，我们只是聚合。

## 常见陷阱

* **IP 经常变** — 查询是快照。今天"住宅"的 IP 下周可能因主机商收购整段而变"数据中心"。
* **VPN 误标** — 许多住宅 IP 偶尔出现在 VPN 名单（用户一次性装过个人 VPN，名单未清理）。一次标记不构成永久坏 IP。
* **私有 IP 段** — `10.0.0.0/8`、`192.168.0.0/16` 等始终返回"私有段，无公开数据"。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.helodata.com/helodata-zh/zi-yuan/ip-lookup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
