/v1/relays
Relays queried
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/nostr-api/v1/relays" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nostr-api/v1/relays", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nostr-api/v1/relays");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/nostr-api/v1/relays",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"count": 6,
"relays": [
"wss://relay.damus.io",
"wss://nos.lol",
"wss://relay.primal.net",
"wss://relay.nostr.band",
"wss://nostr.wine",
"wss://relay.snort.social"
],
"protocol": "Nostr NIP-01 over WebSocket"
},
"meta": {
"timestamp": "2026-06-09T11:40:02.973Z",
"request_id": "e47ba7d0-5b4c-4e40-ba6b-d8856c611937"
},
"status": "ok",
"message": "Relays retrieved successfully",
"success": true
}