curl --location --request POST 'https://nostrapi.com/api/v1/utils/relay-info' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>' \
--data-raw '{
"relays": ["wss://nostr.zbd.gg", "wss://relay.damus.io"]
}'
{
"success": true,
"message": "Successfully fetched relay information.",
"data": [
{
"contact": "[email protected]",
"description": "Damus strfry relay",
"name": "damus.io ",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"software": "git+https://github.com/hoytech/strfry.git",
"supported_nips": [
1,
9,
11,
12,
15,
16,
20,
22
],
"version": "v78-30b8c38"
},
{
"contact": "unset",
"description": "Notes and other stuff from ZEBEDEE users.",
"name": "ZBD Social",
"pubkey": "unset",
"software": "git+https://github.com/hoytech/strfry.git",
"supported_nips": [
1,
9,
11,
12,
15,
16,
20,
22
],
"version": "v126-fbbfc3a"
}
]
}
Fetch public information about the provided Nostr relays
curl --location --request POST 'https://nostrapi.com/api/v1/utils/relay-info' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>' \
--data-raw '{
"relays": ["wss://nostr.zbd.gg", "wss://relay.damus.io"]
}'
{
"success": true,
"message": "Successfully fetched relay information.",
"data": [
{
"contact": "[email protected]",
"description": "Damus strfry relay",
"name": "damus.io ",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"software": "git+https://github.com/hoytech/strfry.git",
"supported_nips": [
1,
9,
11,
12,
15,
16,
20,
22
],
"version": "v78-30b8c38"
},
{
"contact": "unset",
"description": "Notes and other stuff from ZEBEDEE users.",
"name": "ZBD Social",
"pubkey": "unset",
"software": "git+https://github.com/hoytech/strfry.git",
"supported_nips": [
1,
9,
11,
12,
15,
16,
20,
22
],
"version": "v126-fbbfc3a"
}
]
}
true if successful, false if not.Show Toggle
curl --location --request POST 'https://nostrapi.com/api/v1/utils/relay-info' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>' \
--data-raw '{
"relays": ["wss://nostr.zbd.gg", "wss://relay.damus.io"]
}'
{
"success": true,
"message": "Successfully fetched relay information.",
"data": [
{
"contact": "[email protected]",
"description": "Damus strfry relay",
"name": "damus.io ",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"software": "git+https://github.com/hoytech/strfry.git",
"supported_nips": [
1,
9,
11,
12,
15,
16,
20,
22
],
"version": "v78-30b8c38"
},
{
"contact": "unset",
"description": "Notes and other stuff from ZEBEDEE users.",
"name": "ZBD Social",
"pubkey": "unset",
"software": "git+https://github.com/hoytech/strfry.git",
"supported_nips": [
1,
9,
11,
12,
15,
16,
20,
22
],
"version": "v126-fbbfc3a"
}
]
}