---
title: "Ip Lookup"
method: GET
path: "/v1/domains/checker/ip"
tags: ["domains"]
---

# Ip Lookup

`GET /v1/domains/checker/ip`

## Request

- Base URL: `https://api.karma.domains`
- URL: `https://api.karma.domains/v1/domains/checker/ip`
- Auth: HTTP bearer

Resolve a domain or enrich a public IP (A/AAAA, geo, ASN, PTR via DB-IP Lite). Costs 1 credit from spendable balance for Pro (8 for agent accounts); cache hits free.

## Query parameters

- `target` string, required: Domain, URL, or public IP address

## Response `200`

Successful Response

- IpLookupResultSchema: IP lookup outcome for a domain or IP target.
  - `input_type` 'domain' | 'ip', required: Whether the target was resolved as hostname or IP
  - `query` string, required: Normalized hostname or IP submitted
  - `status` 'ok' | 'nxdomain' | 'no_addresses' | 'error', required: Overall lookup status
  - `addresses` IpAddressEnrichmentSchema[]: Enriched IP rows (empty on nxdomain/no_addresses)
    - `ip` string, required: IP address
    - `family` 'IPv4' | 'IPv6', required: Address family
    - `country_code` string, nullable
    - `country_name` string, nullable
    - `region` string, nullable
    - `city` string, nullable
    - `postal_code` string, nullable
    - `latitude` number, nullable
    - `longitude` number, nullable
    - `asn` integer, nullable
    - `organization` string, nullable
    - `ptr` string, nullable
    - `note` string, nullable: Soft CDN hint when org/ASN matches known edge networks

## Other responses

- `402`: Payment required — x402 agent credits. Read PAYMENT-REQUIRED header (base64 JSON) and retry same URL with PAYMENT-SIGNATURE and optional X-Karma-Plan-Id.
- `422`: Validation Error

## Changes

- **2026-11-11** `1eae46c0dec4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/karma/apis/karma-domains-public-api/changes/v1/domains/checker/ip/get.md)

---

[API](https://skmtc.dev/karma/apis/karma-domains-public-api.md) - [All operations](https://skmtc.dev/karma/apis/karma-domains-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/karma/apis/karma-domains-public-api/revisions/a86fc0bfa15d?raw)
