# PeeringDB API reference

> PeeringDB's REST API returns the same objects as the website: networks, internet exchanges and the connections between them. Investigators use it to look up who operates an autonomous system and where it peers. Prepend api/ to a web object URL to get JSON, for example /net/1 becomes /api/net/1.…

Source: https://osinttools.io/apis/peeringdb/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/peeringdb/

- Base URL: https://www.peeringdb.com/api
- Authentication: No key needed. Guests can read. An API key (`Authorization: Api-Key <KEY>`) is needed for writes.
- Rate limits: Not stated in the docs
- Vendor docs: https://docs.peeringdb.com/

## Overview

PeeringDB's REST API returns the same objects as the website: networks, internet exchanges and the connections between them. Investigators use it to look up who operates an autonomous system and where it peers.

Prepend `api/` to a web object URL to get JSON, for example `/net/1` becomes `/api/net/1`. Listings take `limit`, `skip`, `depth`, `fields` and `since`, exact matches as `field=value`, and modifiers such as `__contains`, `__startswith`, `__in`, `__lt` and `__gt`. Guests can read without authentication; writes need an API key. The full list of object types is at [peeringdb.com/apidocs](https://www.peeringdb.com/apidocs/). Rate limits are not stated in the docs read.

## Networks

### List networks, filtered by field values and modifiers.

`GET /net`

- Takes: Name
- Footprint: passive (the target is not contacted)

Returns networks in a `data` array. Filter with `name=...` or modifiers such as `name__contains`.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name__contains` | query | string | no | Substring match on a string field (here the network name) Example: example |
| `limit` | query | integer | no | Maximum rows returned Example: 10 |
| `skip` | query | integer | no | Rows to skip Example: 0 |
| `depth` | query | integer | no | Expands nested sets: 0 (default), 1 (set IDs) or 2 (set objects) Example: 0 One of: 0, 1, 2 |
| `fields` | query | string | no | Comma-separated fields to return Example: id,name |
| `since` | query | integer | no | Unix timestamp in seconds; objects updated since then Example: 1700000000 |

Response fields:

- `data[]` (object): Matching objects
- `data[].id` (integer): Object ID
- `data[].name` (string): Network name
- `meta` (object): Optional status and message

```bash
curl 'https://www.peeringdb.com/api/net'
```

Example response (200):

```json
{
  "data": [
    {
      "id": 1,
      "name": "Example Network"
    }
  ]
}
```

### Fetch one network by ID.

`GET /net/{id}`

- Footprint: passive (the target is not contacted)

A single-object GET defaults to depth=2 and accepts depth 0 to 4; it also expands single relationships such as `net_id` into objects.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Network ID Example: 1 |
| `depth` | query | integer | no | Expansion depth, 0 to 4 Example: 2 One of: 0, 1, 2, 3, 4 |

Response fields:

- `data[]` (object): One object in an array
- `data[].id` (integer): Object ID
- `data[].name` (string): Network name

```bash
curl 'https://www.peeringdb.com/api/net/1'
```

Example response (200):

```json
{
  "data": [
    {
      "id": 1,
      "name": "Example Network"
    }
  ]
}
```

## Exchanges

### List internet exchanges, filtered like any other object type.

`GET /ix`

- Takes: Name
- Footprint: passive (the target is not contacted)

Returns exchanges in a `data` array; same query parameters and modifiers as the network list.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name__contains` | query | string | no | Substring match on the name Example: example |
| `limit` | query | integer | no | Maximum rows returned Example: 10 |

Response fields:

- `data[]` (object): Matching objects
- `data[].id` (integer): Object ID
- `data[].name` (string): Exchange name

```bash
curl 'https://www.peeringdb.com/api/ix'
```

Example response (200):

```json
{
  "data": [
    {
      "id": 10,
      "name": "Example IX"
    }
  ]
}
```

## Connections

### List network connections to exchanges (addresses and speed).

`GET /netixlan`

- Footprint: passive (the target is not contacted)

Filter by `net_id`, `ix_id` or the `__in` modifiers, as in the docs' example query.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `net_id` | query | integer | no | Network ID Example: 694 |
| `ix_id` | query | integer | no | Exchange ID Example: 10 |
| `limit` | query | integer | no | Maximum rows returned Example: 10 |

Response fields:

- `data[].id` (integer): Object ID
- `data[].net_id` (integer): Network ID
- `data[].ix_id` (integer): Exchange ID
- `data[].ipaddr4` (string): IPv4 address
- `data[].ipaddr6` (string): IPv6 address
- `data[].speed` (integer): Port speed

```bash
curl 'https://www.peeringdb.com/api/netixlan'
```

Example response (200):

```json
{
  "data": [
    {
      "id": 1,
      "net_id": 694,
      "ix_id": 10,
      "ipaddr4": "192.0.2.10",
      "ipaddr6": "2001:db8::10",
      "speed": 10000
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
