# Network Info

Routing truth for an IP address or ASN — which announced prefix it lives in, and which networks originate that prefix, from the RIPE NCC's open data platform.

- Method: `GET`
- Path: `/v1/network-info/{resource}`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `resource` | path segment | required | An IP address or an ASN. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/network-info/%7Bresource%7D \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "resource": "8.8.8.8",
    "ip": "8.8.8.8",
    "prefix": "8.8.8.0/24",
    "asns": ["AS15169"],
    "bgp_prefix": "8.8.8.0/24",
    "url": "https://stat.ripe.net/8.8.8.8"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T16:30:00.000Z",
    "age_seconds": 60,
    "next_update_at": "2026-08-20T16:35:00.000Z"
  }
}
```