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

# IP Network

> Inspect an IP's network and routing RDAP allocation, BGP routing, routing history with hijack detection, PeeringDB operator/IXP context, and passive DNS.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Request

<ParamField body="ip" type="string" required>
  The IP address to inspect (IPv4 or IPv6).
</ParamField>

## Response

Returns the standard IP lookup shape with only the network sections populated: `network` (RDAP), `asn`, `company`, `bgp`, `routing_history`, `peering`, and `passive_dns`.

<ResponseExample>
  ```json theme={"dark"}
  {
    "query": "8.8.8.8",
    "ip": "8.8.8.8",
    "credits": 1,
    "network": { "cidr": "8.8.8.0/24", "rir": "ARIN", "registrant_org": "Google LLC", "allocated_at": "2014-03-14" },
    "bgp": { "prefix": "8.8.8.0/24", "announced": true, "upstreams": ["AS15169"] },
    "routing_history": { "origin_changes": 0, "possible_hijack": false }
  }
  ```
</ResponseExample>

## Credits

1 credit per lookup.
