GET/api/relays
Relays ranked by how many profiles use them, with live status and NIP-11 details. Also returns onlineRelays and offlineRelays: the full lists of relay URLs our background checker last saw up or down, most-used first (not affected by the filters or paging).
- status
- all, online or offline. Default all.
- sort
- users, activeUsers or latency. Default users.
- minUsers
- Leave out relays named by fewer profiles. Default 2.
- q
- Only relays whose URL contains this text.
- limit
- 1 to 500. Default 100.
- offset
- For paging. Default 0.
- probe
- false skips the live check and returns counts only (much faster).
- statusLists
- false leaves out onlineRelays and offlineRelays.
GET /api/relays?status=online&limit=10