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.

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

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

Ipsoptional
IPv4 or IPv6 addresses (or prefixes such as 8.8.8.0/24) to look up. One per line, or separated by commas.
Example: 8.8.8.8
Asnsoptional
Autonomous system numbers, such as AS13335 or 13335. One per line, or separated by commas.
Example: AS13335
Include prefixesoptional
For each ASN, also list every prefix it announces, one record each.

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/ip-asn-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/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.

ipslist
IPv4 or IPv6 addresses (or prefixes such as 8.8.8.0/24) to look up.
example: 8.8.8.8
asnslist
Autonomous system numbers, such as AS13335 or 13335.
example: AS13335
include_prefixesyes/no
For each ASN, also list every prefix it announces, one record each.
default: falseexample: true

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 nameTypeShown on this page asFilled
querytextSearch words3 of 3
asnnumberAsn3 of 3
holdertextHolder3 of 3
is_announcedyes or noAnnounced3 of 3
prefixtextPrefix2 of 3
network_nametextNetwork name2 of 3
network_rangetextNetwork range2 of 3
orgtextOrganisation2 of 3
countrytextCountry1 of 3
registrytextRegistry2 of 3
allocation_typetextAllocation type2 of 3
prefix_countnumberPrefix count1 of 3

How it reads the site

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

Sample records

Sample records
RecordSearch wordsAsnHolderAnnouncedPrefixNetwork nameNetwork rangeOrganisationRegistryAllocation typePrefix countCountry
18.8.8.815,169GOOGLE - Google LLCYes8.8.8.0/24GOGL8.8.8.0 - 8.8.8.255Google LLCARINDIRECT ALLOCATION——
2193.0.0.13,333RIPE-NCC-AS Reseaux IP Europeens Network Coordination Centre (RIPE NCC)Yes193.0.0.0/21RIPE-NCC193.0.0.0 - 193.0.7.255Reseaux IP Europeens Network Coordination Centre (RIPE NCC)RIPE NCCASSIGNED PA—NL
3AS1333513,335CLOUDFLARENET - 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.
Known limits
  • 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.