# Describe an IPv4 or IPv6 address (/api-reference/ip-lookup-api/getIpInfo)

Same location, network and proxy-list data as GET /api/v1/ip for the given address, without client or detection blocks. Data comes only from local datasets bundled with the API. Rate limited to 120 requests per minute per caller IP address.

## GET /api/v1/ip/{ip}

Describe an IPv4 or IPv6 address

- Operation ID: `getIpInfo`

- Tags: `IP Lookup API`

Same location, network and proxy-list data as GET /api/v1/ip for the given address, without client or detection blocks. Data comes only from local datasets bundled with the API. Rate limited to 120 requests per minute per caller IP address.

### Parameters

- `ip` (path, required) — string; IPv4 or IPv6 address; IPv4-mapped IPv6 addresses are reported as IPv4.

### Responses

- **200** — IP address information Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/IpInfo

  - Example: `{
  "ip": "8.8.8.8",
  "version": 4,
  "country": {
    "code": "US",
    "name": "United States"
  },
  "continent": {
    "code": "NA",
    "name": "North America"
  },
  "city": null,
  "location": {
    "latitude": 37.751,
    "longitude": -97.822,
    "timezone": "America/Chicago"
  },
  "asn": {
    "number": 15169,
    "name": "Google LLC",
    "domain": "google.com"
  },
  "network": {
    "type": "datacenter"
  },
  "reputation": {
    "listed_as_proxy": false
  }
}`

- **400** — The path parameter is not an IP address Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "The path parameter is not an IP address Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **429** — Rate limit exceeded Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "RATE_LIMIT",
  "message": "Rate limit exceeded Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

### Referenced OpenAPI components

#### `#/components/schemas/IpInfo`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ip",
    "version",
    "country",
    "continent",
    "city",
    "location",
    "asn",
    "network",
    "reputation"
  ],
  "properties": {
    "ip": {
      "type": "string",
      "description": "Looked-up IP address in canonical form."
    },
    "version": {
      "type": "integer",
      "enum": [
        4,
        6
      ]
    },
    "country": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "code",
        "name"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code."
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "continent": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "code",
        "name"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "latitude",
        "longitude",
        "timezone"
      ],
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        },
        "timezone": {
          "type": [
            "string",
            "null"
          ],
          "description": "IANA time zone name."
        }
      }
    },
    "asn": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "number",
        "name",
        "domain"
      ],
      "properties": {
        "number": {
          "type": "integer"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "domain": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "network": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "datacenter",
            "residential",
            null
          ],
          "description": "Network class; null when the bundled datasets cannot classify the address."
        }
      }
    },
    "reputation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "listed_as_proxy"
      ],
      "properties": {
        "listed_as_proxy": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether the address appears in a known proxy list; null when the list is unavailable."
        }
      }
    }
  }
}

```

#### `#/components/schemas/PublicError`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "error",
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "error": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "description": "Stable public error code. PROXY_QUOTE_EXPIRED means the optional quote_version supplied at admission is no longer current; refresh the pricing view and submit again."
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

```

### Complete operation object

```json

{
  "operationId": "getIpInfo",
  "tags": [
    "IP Lookup API"
  ],
  "summary": "Describe an IPv4 or IPv6 address",
  "description": "Same location, network and proxy-list data as GET /api/v1/ip for the given address, without client or detection blocks. Data comes only from local datasets bundled with the API. Rate limited to 120 requests per minute per caller IP address.",
  "security": [],
  "x-mcp-exclude": true,
  "parameters": [
    {
      "name": "ip",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      },
      "description": "IPv4 or IPv6 address; IPv4-mapped IPv6 addresses are reported as IPv4."
    }
  ],
  "responses": {
    "200": {
      "description": "IP address information Error body uses the documented PublicError DTO.",
      "headers": {
        "Cache-Control": {
          "schema": {
            "type": "string",
            "enum": [
              "no-store"
            ]
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/IpInfo"
          },
          "example": {
            "ip": "8.8.8.8",
            "version": 4,
            "country": {
              "code": "US",
              "name": "United States"
            },
            "continent": {
              "code": "NA",
              "name": "North America"
            },
            "city": null,
            "location": {
              "latitude": 37.751,
              "longitude": -97.822,
              "timezone": "America/Chicago"
            },
            "asn": {
              "number": 15169,
              "name": "Google LLC",
              "domain": "google.com"
            },
            "network": {
              "type": "datacenter"
            },
            "reputation": {
              "listed_as_proxy": false
            }
          }
        }
      }
    },
    "400": {
      "description": "The path parameter is not an IP address Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "The path parameter is not an IP address Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "429": {
      "description": "Rate limit exceeded Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "RATE_LIMIT",
            "message": "Rate limit exceeded Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": true
    }
  },
  "servers": [
    {
      "url": "https://api.runharvester.com",
      "description": "RunHarvester public API"
    }
  ]
}

```