ASN Lookup for Business: What the Network Owner Tells You About a Customer
Introduction
A payment lands at 02:14 from an address in Frankfurt. You already have the card BIN country, a device fingerprint, the age of the email and a geolocation pin on a map. None of those tell you whose network the visitor is on, and that is the question an ASN lookup answers. Not the city. The organisation that announces the address block.
For a business team the useful part is rarely the number itself. It is whether the address belongs to a residential ISP, a mobile carrier, a university, or a cloud provider that rents servers by the hour. That one fact changes how much weight every other signal on the order deserves.
Abuse is not spread evenly across networks, and raw counts hide why. A study of phishing in hosting networks found that 84% of the variation in abuse counts across 45,358 hosting providers can be explained with structural factors alone (Rotten Apples or Bad Harvest, arXiv). Size and business model explain most of the difference, and both are visible in ASN data.
What an ASN lookup actually answers
An Autonomous System Number is the identifier a network uses to exchange routing information with the rest of the internet. Every routable IP belongs to a prefix, and every prefix is announced by one AS. So an IP to ASN lookup is a mapping question: which network announces this address, and who runs that network.
The registries keep the numbers, but the business answer you want is the organisation: the company name, its domain, its country, the registry that assigned the block and the date it was created. That is what an ASN lookup returns, and it is what a support agent, a risk analyst or an engineer can act on.
There are two directions, and both matter:
- IP to ASN: you have an address from a login or an order, and you want the network behind it.
- ASN to organisation: you have a suspicious network number from a report, and you want to know who owns it.
What the response fields tell you
A single lookup returns more than a number. Reading the fields in order is the fastest way to turn it into a decision.
| Field | What it means | How a team uses it |
|---|---|---|
| number | The AS number, such as AS14061 | Joins this event to every other event from the same network |
| name | Short network name | Fast triage for support and fraud queues |
| org | Registered organisation | Tells you if this is a cloud tenant or a consumer ISP |
| domain | The organisation's own domain | Cross check against the email domain on the account |
| type | hosting, isp, business, education | The most decision relevant field in the response |
| country_code | Registration country | Compare with the geolocation of the address |
| registry | RIPE, ARIN, APNIC and others | Points you to the source record when you need to escalate |
| created | When the block was assigned | Very new networks deserve a second look |
| prefixes | The IPv4 and IPv6 blocks announced | Shows how large the network is |
An IP to ASN check inside a full IP lookup gives you the same object next to geolocation and security flags, which saves a second round trip in a checkout flow.
Network type is the field most teams ignore
Country tells you where an address claims to be. Type tells you what kind of business is behind it, and that is usually the stronger signal.
- residential: a consumer ISP line. Consistent with a real customer at home.
- isp: consumer or business access network. Also consistent with a customer, but often shared by thousands of people.
- hosting: a data centre or cloud provider. Someone paid for a server, and a household order from a rack is unusual.
- business: a company network. Expect office hours and repeated users from the same block.
- education: a university. Shared labs and dormitories produce strange but legitimate patterns.
A hosting address is not proof of fraud. Plenty of real customers use a VPN on purpose, and many developers order from a cloud desktop. What matters is that a hosting address plus three other weak signals is a different case from a residential address plus the same three signals.
Where ASN data changes a payment decision
Payment teams already hold BIN country, AVS, CVV result, email age and order value. ASN data adds the network dimension to all of them, and three patterns show up quickly.
- Several cards, one network. Ten declined authorisations from one AS look like one actor testing cards, even when each attempt comes from a different address in the block.
- A new network with sudden volume. A block registered a few months ago that sends you forty signups in a week is worth a rule of its own.
- The mismatch that geography hides. A card issued in one country, an address geolocated in another, and an ASN registered to a hosting company in a third. Individually each is normal. Together they describe a proxy chain.
None of these rules needs a new data pipeline. The ASN comes back with the IP you already collect, and the rule is a comparison against a short list of network types and a counter per AS.
Where it changes a signup decision
Trial abuse and bonus abuse are network problems before they are account problems. Free tier signups from one hosting AS, each with a fresh email and a clean device, look unrelated in a per account view and obvious in a per network view.
A practical pattern is to score the network, not the address. Keep the ASN on the user record, then ask how many accounts share it, how old the network is, and whether its type is consistent with the product. A B2B tool with six signups from a university lab is normal. A consumer app with sixty from one small hosting reseller is not.
The routing case: performance, not only fraud
ASN data predates fraud tooling and still earns its place in network operations. Because an ASN tells you which network announces a prefix, it also tells you how traffic to that prefix will travel.
- Prefix size tells you how much address space the network holds, which helps when you size rate limits per network instead of per address.
- Registry and organisation records tell you who to contact when a block floods your endpoints, which is faster than a whois hunt during an incident.
- Peering and anycast decisions depend on knowing which networks your users actually sit on, and that distribution comes from the ASN field on real traffic.
The same lookup you run at checkout answers an infrastructure question on Monday morning. That is the reason an ASN number lookup belongs in a risk stack rather than a separate tool for the network team.
Why a raw abuse count misleads
The temptation is to rank networks by how many reports they attract and block the top ten. The study above explains why that ranking deceives: a large provider with thousands of customers collects more abuse reports simply because it is large.
The honest signals are structural. How big is the network. What does it sell. How old is the block. How does its abuse rate compare with networks of the same size and type. ASN data gives you the first three directly, and it gives you the group to compare against.
Reading prefixes: the size of the network behind the address
The prefixes array is the least used field in the response and one of the most useful. A network that announces two /16 blocks is a different animal from one that announces a single /24.
A short list of practical reads:
- Total prefixes give you a rough scale. Big networks carry more noise.
- IPv6 presence tells you how modern the network is. A hosting provider with no IPv6 is unusual.
- The CIDR on the IP response shows the exact block the address sits in, which is the right unit for a temporary rule.
When you write a rule, block the block and not the whole network. A /64 rule on IPv6 or a /24 rule on IPv4 protects the endpoint without punishing an entire provider.
What breaks a naive ASN rule
Any single field used alone fails. ASN data is no exception, and the failures are predictable.
| Case | What goes wrong | What to do instead |
|---|---|---|
| Mobile carriers | Thousands of subscribers share one large AS | Never block a mobile AS outright, score it |
| CGNAT | Many users share one public address | Combine the ASN with device and account signals |
| VPN resellers | A hosting AS serves ordinary customers | Treat as a signal, not a verdict |
| Shared cloud | Real businesses run on the same AS as abusers | Look at the account and the price of the order |
| Stale data | A block was transferred to another organisation | Check the created date and the registry record |
The pattern is the same one that applies to every risk input: a network observation raises or lowers confidence, it does not decide alone.
Running the lookup in code
Server side, one request gives you the network for an address. The v2 API returns the ASN object inside the IP lookup, next to geolocation and security flags.
curl --request GET \
--url https://v2.greipapi.com/lookup/ip/165.227.149.217 \
--header 'Authorization: Bearer <token>'The response carries the fields that matter for a decision:
{
"success": true,
"data": {
"asn": {
"number": "AS14061",
"cidr": "165.227.149.0/24",
"name": "DIGITALOCEAN-ASN",
"org": "DigitalOcean, LLC",
"domain": "digitalocean.com",
"created": "2012-05-14",
"type": "hosting"
},
"security": {
"vpn_or_proxy": true,
"hosting": true
}
}
}If you already hold a network number, the ASN endpoint returns the organisation record and its prefixes directly:
curl --request GET \
--url https://v2.greipapi.com/lookup/asn/AS14061 \
--header 'Authorization: Bearer <token>'Store the ASN number and type on the order or user record. Without that, every later question about the network means another lookup and a lost history.
Data quality checks before you buy
ASN data is public, which makes it easy to treat every source as equal. It is not. Five checks separate a usable feed from a decorative one.
- Freshness. Registries change every week. Ask when the data was last synchronised, not how many records it holds.
- Coverage. Test a sample of addresses from your own logs, including mobile ranges and small regional ISPs.
- Prefix accuracy. Confirm the CIDR returned for an address matches the block actually announced for it.
- Type accuracy. Spot check hosting addresses that resolve to consumer ISPs and the reverse.
- Lookup latency. A 200 millisecond lookup on the checkout path is a conversion problem. Bulk endpoints and caching fix it.
Run the same twenty addresses through two providers and compare field by field. The differences show up in minutes and tell you more than any feature list.
Combining ASN data with your other signals
The network signal earns its keep when it sits next to the ones you already trust. A workable order of operations:
- Resolve the IP once, keep geolocation, ASN and security flags together.
- Compare the ASN registration country with the geolocation country and the BIN country.
- Compare the network type with the product and the delivery address.
- Count accounts and orders per AS over a rolling window.
- Send the whole picture to your scoring model, not the ASN alone.
Teams that skip the first step end up calling three endpoints for one decision, and teams that skip the last step end up with a blocklist that grows every month.
A short implementation path
Start small and measure. Pick one flow, usually checkout or free signup. Log the ASN, the type and the organisation for two weeks without acting on them. Then look at chargebacks, declines and support tickets grouped by network.
You will usually find that a small number of networks hold a share of the losses that is out of proportion to their share of traffic. That is the point to add the first rule, and the point where an ASN lookup service pays for itself in declined fraud rather than in reports.
FAQs
What is the difference between an IP lookup and an ASN lookup?
An IP lookup returns details about a single address, including geolocation and the network that announces it. An ASN lookup returns the organisation record for a network number, including its name, registry, creation date, type and announced prefixes. Most risk teams need the first and keep the second for investigation.
How do I find the ASN for an IP address?
Send the address to an IP lookup endpoint such as GET /lookup/ip/{ip} and read the asn object in the response. It returns the number, the CIDR block, the organisation, the network type and the registration date in one request.
Is a hosting ASN always a fraud signal?
No. Many legitimate customers use a VPN or a cloud desktop. A hosting network raises the risk of an order, and it matters most when it appears with other weak signals such as a new account, a mismatched country or a high order value.
Can ASN data replace an IP blacklist?
No. A blacklist answers whether a specific address has been reported. ASN data answers whose network the address sits on. Blocklists catch known bad addresses, ASN rules catch patterns across addresses that no list has seen yet.
How often does ASN data change?
Registry records change continuously as blocks are assigned and transferred, and new networks appear every week. Use a provider that synchronises with the registries regularly, and re-check an organisation record before you escalate on it.
Does ASN lookup slow down a checkout?
A single server side lookup adds a network round trip, which is why teams call it from the backend rather than the browser, and why bulk and cached lookups exist. Measure the added latency on your own path before you put a rule in front of a live flow.
Conclusion
An ASN lookup is the cheapest way to learn whose network a customer is on, and the least used signal in most risk stacks. The number, the organisation type, the registry record and the prefixes answer questions that geography and device data cannot, and they are the base layer of any ASN intelligence you build on later.
Start by logging the network on the flows that lose money, then let the per network numbers write your first rules. Keep the block, not the whole provider, in the rule. Revisit the list when a network changes hands, and treat the type as a weight rather than a verdict.
Get started
Start protecting your business today
Our service is trusted by thousands of businesses worldwide.
- 1,000 requests during trial
- Cancel anytime