> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.ecylt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IP地址查询（国家级）

> 获取国家级IP数据

<Warning>
  In accordance with [U.S. CFR Title 28 Part 202](https://www.ecfr.gov/current/title-28/chapter-I/part-202), API access will be discontinued effective July 6, 2025, 02:00 UTC.
</Warning>

<Info>
  IP地址查询API现已支持IPv4/IPv6，位置精度下调，更新频率上调（每日更新）
</Info>

<ParamField path="https://api.ecylt.com/v1/ip_get" type="GET">
  基础 API 端口
</ParamField>

<ParamField query="ip" type="string" required>
  ip address(IPv4 / IPv6)
</ParamField>

<ResponseExample>
  ```json 200: OK normal response theme={null}
  {
      "ip": "8.8.8.8",
      "asn": "AS15169",
      "as_name": "Google LLC",
      "as_domain": "google.com",
      "country_code": "US",
      "country": "United States",
      "continent_code": "NA",
      "continent": "North America",
      "api_by": "二次元API https://www.ecylt.top"
  }
  ```

  ```json 400: Bad Request wrong response theme={null}
  {
    "error": "IP 参数不能为空"
  }
  ```
</ResponseExample>
