On Fri, Feb 16, 2018 at 3:27 AM flipchan <flipchan@riseup.net> wrote:
Im trying to write an ip checker script for a mail server/firewall and i want to be able check if the ip is a tor relay, is their a api for looking up ips on atlas.torproject.org ?

Do you want to check if it's any relay, or do you want to check if it's an exit? 

To check for an exit I've used: 
https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=X.X.X.X&port=NNN

Q
--
0101100101000001010010000101010101000001010010000010000001000010
0100110001000101010100110101001100100000010110010100111101010101