IP & ASN Network Lookup API
Who runs an IP address or an autonomous system: for each IP the announcing ASN and holder, the network name, range, organisation, country and registry; for each ASN its holder, prefix count and optionally every prefix it announces.
$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.
Data from stat.ripe.net
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/ip-asn-lookup/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"ips":["8.8.8.8"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields.
Basics
- Search words
The IP, prefix or ASN you asked about.
Example 8.8.8.8
- Asn
The autonomous system number (for an IP, the one announcing it).
Example 15,169
- Holder
Name of the ASN's holder.
Example GOOGLE - Google LLC
- Announced
Whether the address or ASN is announced in global routing.
Example Yes
- Prefix
The announced prefix covering the IP, or one prefix announced by the ASN.
Example 8.8.8.0/24
- Network name
Registry name of the network block holding the IP.
Example GOGL
- Network range
First and last address of that block.
Example 8.8.8.0 - 8.8.8.255
- Organisation
Organisation registered as holder of the block, when the registry names one.
Example Google LLC
- Registry
Regional registry that manages the block: ARIN, RIPE NCC, APNIC, LACNIC or AFRINIC.
Example ARIN
- Allocation type
Registry allocation type, such as DIRECT ALLOCATION or ASSIGNED PA.
Example DIRECT ALLOCATION
- Prefix count
On an ASN summary record, how many prefixes the ASN announces.
Example 5,932
Location
- Country
Country code the registry gives for the block, when it gives one.
Example NL
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
query | text | Search words | 3 of 3 |
asn | number | Asn | 3 of 3 |
holder | text | Holder | 3 of 3 |
is_announced | yes or no | Announced | 3 of 3 |
prefix | text | Prefix | 2 of 3 |
network_name | text | Network name | 2 of 3 |
network_range | text | Network range | 2 of 3 |
org | text | Organisation | 2 of 3 |
country | text | Country | 1 of 3 |
registry | text | Registry | 2 of 3 |
allocation_type | text | Allocation type | 2 of 3 |
prefix_count | number | Prefix count | 1 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Search words | Asn | Holder | Announced | Prefix | Network name | Network range | Organisation | Registry | Allocation type | Prefix count | Country |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 8.8.8.8 | 15,169 | GOOGLE - Google LLC | Yes | 8.8.8.0/24 | GOGL | 8.8.8.0 - 8.8.8.255 | Google LLC | ARIN | DIRECT ALLOCATION | — | — |
| 2 | 193.0.0.1 | 3,333 | RIPE-NCC-AS Reseaux IP Europeens Network Coordination Centre (RIPE NCC) | Yes | 193.0.0.0/21 | RIPE-NCC | 193.0.0.0 - 193.0.7.255 | Reseaux IP Europeens Network Coordination Centre (RIPE NCC) | RIPE NCC | ASSIGNED PA | — | NL |
| 3 | AS13335 | 13,335 | CLOUDFLARENET - Cloudflare, Inc. | Yes | — | — | — | — | — | — | 5,932 | — |
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.
- An IP gives one record: routing facts (asn, holder, prefix) come from RIPEstat, ownership facts (network_name, network_range, org, country, registry, allocation_type) from the regional registry's public RDAP service.
- An ASN gives one summary record with prefix_count; with include_prefixes it is followed by one record for each prefix it announces (a large network can have several thousand, one run returns at most 10,000 records).
- Prefix records carry only the query, asn, holder and prefix; the ownership fields are filled on IP records.
- An IP that is not announced in routing has no asn; announced is then false and prefix is the closest announced block.
- org and country are often empty: registries show an organisation only when it is registered as one, and some give no country (ARIN often omits it).
- Routes seen by very few routing collectors are left out, and routing data is a live view that changes during the day.
- RIPEstat asks for fair use and the registries rate-limit RDAP, so large lists of IPs run slowly (about two requests a second at most).
- Registry data is public network information, not data about private people; no contact details are returned.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.