{"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},"version":"1.0","contract_hash":"c1cc7d5148d1be021daa5ded0592707a49299038d9cd90194e1514117b11ab08","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.715Z","activated_at":"2026-12-06T03:57:27.715Z","active":true,"contract_hash":"c1cc7d5148d1be021daa5ded0592707a49299038d9cd90194e1514117b11ab08","fields_count":12}]}