ix.watch

Data

Everything on ix.watch is public, and the pages are built on the same API you can use. No key, no sign-up, and CORS is open.

Endpoints

RequestReturns
GET https://api.ix.watch/snapshot.jsonEvery source seen in the last 7 days, the IXPs we watch and whether each capture is up, and how many sources we couldn't tie to a network.
GET https://api.ix.watch/eventsServer-sent events: a packet event per sampled frame, carrying the source's full state, and every 30 seconds a frames event with the frames we inspect per second, all IXPs together (framesPerSecond).
?ix=<IXP> on either of the aboveOnly one IXP, by name or slug (Frys-IX or frys-ix). An IXP we don't watch is a 404.
GET https://api.ix.watch/ix/<slug>.jsonOne IXP: its sources with their recent frames, whether our capture is up, plus hourly frame counts on its LAN over 7 days, including sources we couldn't tie to a network (null while that history is unavailable).
GET https://api.ix.watch/as/<asn>.jsonOne network: its sources with their recent frames, plus hourly frame counts over 7 days.
GET https://api.ix.watch/as/<asn>.pcapThe raw frames behind that network's page, for Wireshark.
GET https://api.ix.watch/mac/<mac>.jsonOne MAC address (aa:bb:cc:dd:ee:ff): its sources on every IXP, the IXPs it sent on, and hourly frame counts over 7 days.

The older paths under /ix-violators/ (/ix-violators.json, /ix-violators/as/<asn>.json and so on) keep working.

A source

A source is one MAC address on one IXP. Times are Unix seconds. recent holds the decoded headers of the last few frames; the network's pcap has the raw frames, payload included. via names who runs the sensor when it isn't us.

{
  "ix": "AMS-IX",
  "mac": "00:00:5e:00:53:01",
  "asn": 64500,
  "name": "Example Networks",
  "vendor": "MikroTik",
  "ports": [{ "ipv4": "192.0.2.10", "ipv6": "2001:db8::10" }],
  "types": [{ "type": "ra", "count": 1340, "first": 1791100000, "last": 1791700000 }],
  "total": 1340,
  "first": 1791100000,
  "last": 1791700000,
  "recent": [{ "ts": 1791700000.1, "type": "ra", "layers": [ ... ] }],
  "via": null
}

Badges

A live status image for each IXP we watch, for the IXP's own site: https://ix.watch/badge/<IXP>.svg, or .png where SVG isn't allowed. clean means no network has leaked onto the LAN for 7 days. Otherwise it counts the networks leaking now, or those that have this week, as listed here. While our capture is down it says so instead.

ENS-IX on ix.watch

<a href="https://ix.watch/?ix=ENS-IX"><img src="https://ix.watch/badge/ENS-IX.svg" alt="ENS-IX on ix.watch" height="40"></a>

And one for each network, for its own site: https://ix.watch/badge/as<ASN>.svg. clean means we haven't seen a violating frame from it for 7 days, on an IXP we watch where PeeringDB lists it. Otherwise it says it's leaking now, or was seen this week. A network we can't see says not watched, never clean. Each network's page has its snippet.

AS202585 on ix.watch

<a href="https://ix.watch/as202585"><img src="https://ix.watch/badge/as202585.svg" alt="AS202585 on ix.watch" height="40"></a>

Try it

# who's sending right now
curl -s https://api.ix.watch/snapshot.json | jq '.sources[] | select(.last > now - 300) | .name'

# everyone leaking on one IXP this week
curl -s 'https://api.ix.watch/snapshot.json?ix=frys-ix' | jq '.sources[] | {asn, name, total}'

# follow the live stream, for one IXP
curl -N 'https://api.ix.watch/events?ix=frys-ix'

Only sources we could tie to a network are listed; /mac/<mac>.json also shows the others, without IPs or frames, to whoever asks for that exact MAC. The snapshot is cached for a few seconds; follow the event stream for anything live.