Tor Relay & Exit Node API

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.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 12 fieldsv1.0

Data from onionoo.torproject.org/details

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Ipsoptional
IP addresses (IPv4 or IPv6) to check against current relays and exits. Leave empty to list relays. One per line, or separated by commas.
Example: 204.8.96.141
Exit onlyoptional
Only exit relays (relays that allow exit traffic).
Countryoptional
Two-letter country code filter, such as us or de.
Example: us

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/tor-relay-lookup/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/tor-relay-lookup/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"ips":["204.8.96.141"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

ipslist
IP addresses (IPv4 or IPv6) to check against current relays and exits. Leave empty to list relays.
example: 204.8.96.141
exit_onlyyes/no
Only exit relays (relays that allow exit traffic).
example: true
countrytext
Two-letter country code filter, such as us or de.
example: us

What's in each record

12 fields.

Basics

  • Nickname

    Relay nickname chosen by its operator.

    Example Quintex152

  • Fingerprint

    40-character relay fingerprint (unique id).

    Example 0008D9640FE4947F73E355F67E20C2D290BBC72C

  • Or addresses

    Addresses and ports the relay accepts Tor traffic on.

    Example 204.8.96.141:444, [2620:7:6003::141]:81

  • Exit addresses

    IP addresses traffic leaves the relay from, when it is an exit.

    Example 204.8.96.141

  • Asn

    Autonomous system number of the network hosting the relay.

    Example 62,744

  • As name

    Name of that network.

    Example Quintex Alliance Consulting

  • Flags

    Consensus flags such as Exit, Guard, Fast, Stable, HSDir.

    Example Exit, Fast

  • Bandwidth rate

    Bandwidth rate the operator allows, in bytes per second.

    Example 1,073,741,824

  • Exit

    Yes when the relay carries the Exit flag.

    Example Yes

Location

  • Country

    Two-letter country code (uppercase) the relay's IP is in.

    Example US

Dates

  • First seen

    When the relay was first seen in the Tor network (UTC).

    Example Jul 3, 2026

  • Last seen

    When the relay was last seen in the consensus (UTC).

    Example Dec 6, 2026

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
nicknametextNickname3 of 3
fingerprinttextFingerprint3 of 3
or_addresseslistOr addresses3 of 3
exit_addresseslistExit addresses3 of 3
countrytextCountry3 of 3
asnnumberAsn3 of 3
as_nametextAs name3 of 3
flagslistFlags3 of 3
first_seendate and timeFirst seen3 of 3
last_seendate and timeLast seen3 of 3
bandwidth_ratenumberBandwidth rate3 of 3
is_exityes or noExit3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNicknameFingerprintOr addressesExit addressesAsnAs nameFlagsBandwidth rateExitCountryFirst seenLast seen
1Quintex1520008D9640FE4947F73E355F67E20C2D290BBC72C204.8.96.141:444, [2620:7:6003::141]:81204.8.96.14162,744Quintex Alliance ConsultingExit, Fast, Guard, Running1,073,741,824YesUSJul 3, 2026Dec 6, 2026
2SENDNOOSEplz000F3EB75342BE371F1D8D3FAE90890AEB5664EE204.137.14.106:443204.137.14.106399,820SPARKED HOST LLCExit, Fast, Guard, HSDir12,697,600YesUSFeb 26, 2024Dec 6, 2026
3Quintex216004B5DD461C58121FF5BBDE8C9B295242013A3FC204.8.96.106:445, [2620:7:6003::106]:82204.8.96.10662,744Quintex Alliance ConsultingExit, Fast, Guard, HSDir1,073,741,824YesUSJul 3, 2026Dec 6, 2026

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • 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.

Version history

A run uses the live version unless the request names another one with version.