{"api":{"id":"api_f8712ebed600863a822b3909","slug":"tor-relay-lookup","name":"Tor Relay & Exit Node API","description":"Current Tor relays and exit nodes: nickname, fingerprint, addresses, country, network (ASN and name), flags, first and last seen, bandwidth and an exit flag. Check IP addresses in bulk or list exits by country.","kind":"ready_made","visibility":"public","domain":"onionoo.torproject.org","source_url":"https://onionoo.torproject.org/details","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:57:27.715Z","updated_at":"2026-12-06T03:57:27.715Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"nickname","type":"string","description":"Relay nickname chosen by its operator.","required":false,"coverage":1,"example":"Quintex152"},{"name":"fingerprint","type":"string","description":"40-character relay fingerprint (unique id).","required":true,"coverage":1,"example":"0008D9640FE4947F73E355F67E20C2D290BBC72C"},{"name":"or_addresses","type":"array","description":"Addresses and ports the relay accepts Tor traffic on.","required":false,"coverage":1,"example":["204.8.96.141:444","[2620:7:6003::141]:81"]},{"name":"exit_addresses","type":"array","description":"IP addresses traffic leaves the relay from, when it is an exit.","required":false,"coverage":1,"example":["204.8.96.141"]},{"name":"country","type":"string","description":"Two-letter country code (uppercase) the relay's IP is in.","required":false,"coverage":1,"example":"US"},{"name":"asn","type":"integer","description":"Autonomous system number of the network hosting the relay.","required":false,"coverage":1,"example":62744},{"name":"as_name","type":"string","description":"Name of that network.","required":false,"coverage":1,"example":"Quintex Alliance Consulting"},{"name":"flags","type":"array","description":"Consensus flags such as Exit, Guard, Fast, Stable, HSDir.","required":false,"coverage":1,"example":["Exit","Fast"]},{"name":"first_seen","type":"datetime","description":"When the relay was first seen in the Tor network (UTC).","required":false,"coverage":1,"example":"2026-07-03T01:00:00.000Z"},{"name":"last_seen","type":"datetime","description":"When the relay was last seen in the consensus (UTC).","required":false,"coverage":1,"example":"2026-12-06T02:00:00.000Z"},{"name":"bandwidth_rate","type":"integer","description":"Bandwidth rate the operator allows, in bytes per second.","required":false,"coverage":1,"example":1073741824},{"name":"is_exit","type":"boolean","description":"True when the relay carries the Exit flag.","required":false,"coverage":1,"example":true}],"inputs":[{"name":"ips","type":"array","description":"IP addresses (IPv4 or IPv6) to check against current relays and exits. Leave empty to list relays.","example":["204.8.96.141"]},{"name":"exit_only","type":"boolean","description":"Only exit relays (relays that allow exit traffic).","example":true},{"name":"country","type":"string","description":"Two-letter country code filter, such as us or de.","example":"us"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"as_name":{"description":"Name of that network.","type":"string"},"asn":{"description":"Autonomous system number of the network hosting the relay.","type":"integer"},"bandwidth_rate":{"description":"Bandwidth rate the operator allows, in bytes per second.","type":"integer"},"country":{"description":"Two-letter country code (uppercase) the relay's IP is in.","type":"string"},"exit_addresses":{"description":"IP addresses traffic leaves the relay from, when it is an exit.","type":"array"},"fingerprint":{"description":"40-character relay fingerprint (unique id).","type":"string"},"first_seen":{"description":"When the relay was first seen in the Tor network (UTC).","format":"date-time","type":"string"},"flags":{"description":"Consensus flags such as Exit, Guard, Fast, Stable, HSDir.","type":"array"},"is_exit":{"description":"True when the relay carries the Exit flag.","type":"boolean"},"last_seen":{"description":"When the relay was last seen in the consensus (UTC).","format":"date-time","type":"string"},"nickname":{"description":"Relay nickname chosen by its operator.","type":"string"},"or_addresses":{"description":"Addresses and ports the relay accepts Tor traffic on.","type":"array"}},"required":["fingerprint"],"title":"Tor Relay & Exit Node API","type":"object"},"samples":[{"nickname":"Quintex152","fingerprint":"0008D9640FE4947F73E355F67E20C2D290BBC72C","or_addresses":["204.8.96.141:444","[2620:7:6003::141]:81"],"exit_addresses":["204.8.96.141"],"country":"US","asn":62744,"as_name":"Quintex Alliance Consulting","flags":["Exit","Fast","Guard","Running"],"first_seen":"2026-07-03T01:00:00.000Z","last_seen":"2026-12-06T02:00:00.000Z","bandwidth_rate":1073741824,"is_exit":true},{"nickname":"SENDNOOSEplz","fingerprint":"000F3EB75342BE371F1D8D3FAE90890AEB5664EE","or_addresses":["204.137.14.106:443"],"exit_addresses":["204.137.14.106"],"country":"US","asn":399820,"as_name":"SPARKED HOST LLC","flags":["Exit","Fast","Guard","HSDir"],"first_seen":"2024-02-26T20:00:00.000Z","last_seen":"2026-12-06T02:00:00.000Z","bandwidth_rate":12697600,"is_exit":true},{"nickname":"Quintex216","fingerprint":"004B5DD461C58121FF5BBDE8C9B295242013A3FC","or_addresses":["204.8.96.106:445","[2620:7:6003::106]:82"],"exit_addresses":["204.8.96.106"],"country":"US","asn":62744,"as_name":"Quintex Alliance Consulting","flags":["Exit","Fast","Guard","HSDir"],"first_seen":"2026-07-03T15:00:00.000Z","last_seen":"2026-12-06T02:00:00.000Z","bandwidth_rate":1073741824,"is_exit":true}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"as_name":1,"asn":1,"bandwidth_rate":1,"country":1,"exit_addresses":1,"fingerprint":1,"first_seen":1,"flags":1,"is_exit":1,"last_seen":1,"nickname":1,"or_addresses":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_f8712ebed600863a822b3909/run","openapi":"https://pullrow.dev/v1/apis/api_f8712ebed600863a822b3909/openapi.json","contract":"https://pullrow.dev/v1/apis/api_f8712ebed600863a822b3909/contract.json","page":"https://pullrow.dev/catalog/tor-relay-lookup"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Only relays that were running in the latest hourly consensus are returned; bridges are never included.","One run returns at most 6,000 relays, read 500 at a time. Tor has roughly 7,000 relays in total, so use country or exit_only to narrow it.","With ips, each address is checked against relay and exit addresses (IPv4 and IPv6); an address that is not a relay returns no record. At most 100 addresses per run, and at most 100 relays per address.","Tor Project data is refreshed about once an hour; an exit can appear in the list for up to an hour after it went offline.","The exit flag shows relays that allow exit traffic; exit_addresses can be empty for a new exit that has not been tested yet.","Data comes from the Tor Project's public metrics service (Onionoo); credit the Tor Project. Not affiliated with or endorsed by the Tor Project.","About one request per second is made to be polite to the source."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"nickname","label":"Nickname","description":"Relay nickname chosen by its operator.","group":"Basics","shown":true,"written":false},{"name":"fingerprint","label":"Fingerprint","description":"40-character relay fingerprint (unique id).","group":"Basics","shown":true,"written":false},{"name":"or_addresses","label":"Or addresses","description":"Addresses and ports the relay accepts Tor traffic on.","group":"Basics","shown":true,"written":false},{"name":"exit_addresses","label":"Exit addresses","description":"IP addresses traffic leaves the relay from, when it is an exit.","group":"Basics","shown":true,"written":false},{"name":"country","label":"Country","description":"Two-letter country code (uppercase) the relay's IP is in.","group":"Location","shown":true,"written":false},{"name":"asn","label":"Asn","description":"Autonomous system number of the network hosting the relay.","group":"Basics","shown":true,"written":false},{"name":"as_name","label":"As name","description":"Name of that network.","group":"Basics","shown":true,"written":false},{"name":"flags","label":"Flags","description":"Consensus flags such as Exit, Guard, Fast, Stable, HSDir.","group":"Basics","shown":true,"written":false},{"name":"first_seen","label":"First seen","description":"When the relay was first seen in the Tor network (UTC).","group":"Dates","shown":true,"written":false},{"name":"last_seen","label":"Last seen","description":"When the relay was last seen in the consensus (UTC).","group":"Dates","shown":true,"written":false},{"name":"bandwidth_rate","label":"Bandwidth rate","description":"Bandwidth rate the operator allows, in bytes per second.","group":"Basics","shown":true,"written":false},{"name":"is_exit","label":"Exit","description":"Yes when the relay carries the Exit flag.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"ips","label":"Ips","help":"IP addresses (IPv4 or IPv6) to check against current relays and exits. Leave empty to list relays.","example":"204.8.96.141","written":false},{"name":"exit_only","label":"Exit only","help":"Only exit relays (relays that allow exit traffic).","example":"true","written":false},{"name":"country","label":"Country","help":"Two-letter country code filter, such as us or de.","example":"us","written":false}]}},"incidents":[]}