> ## 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 address lookup (country-level)

> Get country-level IP data

<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>
  The IP address lookup API now supports IPv4/IPv6, location precision has been lowered, and update frequency has been increased (daily updates).
</Info>

<ParamField path="https://api.ecylt.com/v1/ip_get" type="GET">
  Base API endpoint
</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 parameter cannot be empty"
  }
  ```
</ResponseExample>
