🐈⬛ on Nostr: You can get the online ones at the moment from https://api.nostr.watch/v1/online ...
You can get the online ones at the moment from https://api.nostr.watch/v1/online clean up the list a bit and use something like :
```
#!/bin/bash
input_file="cleaned_relays.txt"
output_file="relay_nips_output.txt"
specific_nip=45
> "$output_file"
while IFS= read -r relay; do echo "Querying $relay"
relay_name=$(echo "$relay" | awk -F[/:] '{print $4}')
response=$(curl -s --max-time 10 -H "Accept: application/nostr+json" "$relay")
nips=$(echo "$response" | jq '.supported_nips | @csv' | tr -d '"')
if echo "$nips" | grep -q "\b$specific_nip\b"; then echo "Supported NIPs for $relay_name ($relay): $nips"
echo "Relay Name: $relay_name" >> "$output_file" echo "Relay URL: $relay" >> "$output_file" echo "Supported NIPs: $nips" >> "$output_file" echo "" >> "$output_file"
fi done < "$input_file"
```
Takes awhile but will give you something like this:
```
#!/bin/bash
input_file="cleaned_relays.txt"
output_file="relay_nips_output.txt"
specific_nip=45
> "$output_file"
while IFS= read -r relay; do echo "Querying $relay"
relay_name=$(echo "$relay" | awk -F[/:] '{print $4}')
response=$(curl -s --max-time 10 -H "Accept: application/nostr+json" "$relay")
nips=$(echo "$response" | jq '.supported_nips | @csv' | tr -d '"')
if echo "$nips" | grep -q "\b$specific_nip\b"; then echo "Supported NIPs for $relay_name ($relay): $nips"
echo "Relay Name: $relay_name" >> "$output_file" echo "Relay URL: $relay" >> "$output_file" echo "Supported NIPs: $nips" >> "$output_file" echo "" >> "$output_file"
fi done < "$input_file"
```
Takes awhile but will give you something like this: