Technical
ASN Lookup for Fraud Detection: How to Run It in 2026
An ASN lookup returns the network behind an IP. In Didit, Device and IP Analysis surfaces the ASN plus VPN, proxy, Tor and data center flags on every session for $0.03, inside the $0.33 full ID check.

Contents
In this guide
Jump to the part you need.
An ASN lookup maps an IP address to the network that announces it, so a signup from a data center, a VPN exit or a mobile carrier is scored on what it is. This guide is for fraud and onboarding teams wiring that signal into a decision. Didit returns the ASN in Device and IP Analysis at $0.03 per check, inside the $0.33 full ID check. Caveat: it runs inside a verification session, not as a standalone ASN endpoint.
Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Outcome | The ASN, network and device fields on the decision. Risk codes appear in warnings[]. |
| Method | Device and IP Analysis inside a verification session. There is no standalone /v3/ip-analysis/ endpoint |
| Price | $0.03 per Device and IP Analysis check, included in the $0.33 full ID check |
| Where it lands | ip_analyses[] on GET /v3/session/{sessionId}/decision/ |
| Risk bucket | LOCATION: VPN, proxy, Tor, data center, high-risk country, country mismatch, duplicate device, impossible travel |
| Free to test | Sandbox testing is free and unlimited on every plan. |
Start free in the sandbox at business.didit.me with no sales call, read the list prices at didit.me/pricing, and if you build with an AI assistant, connect Didit through the MCP server.
What an ASN lookup tells you
An Autonomous System Number is the identifier a network operator uses when it announces a block of IP addresses to the rest of the internet. Every publicly routed address is announced by some ASN, and Border Gateway Protocol carries those announcements between networks. The routing table says which organization announces the range, whether that organization is a consumer ISP, a mobile carrier, a hosting provider, a content delivery network, a university or an enterprise. That makes ASN data useful context when an IP geolocation alone is ambiguous.
An IP address changes with a new DHCP lease, a new browser or a cleared cookie jar. The ASN often remains stable longer than an individual IP address, although routing and network changes can alter it. That stability makes it a useful description of where a request came from, and a useful key for spotting accounts that share a network.
Three things follow for fraud work:
- Network type. Hosting and data center ranges often carry automated traffic, but this is a heuristic, not proof of automation or fraud. Residential ranges can also be abused.
- Anonymization. VPN, proxy and Tor exits show up as networks with a known character instead of an unexplained IP.
- Reuse. Many accounts created from the same hosting ASN in a short window is a pattern that geolocation hides completely.
ASN ownership and network type are context signals, not identity proof. They tell you which organization announces the address and what kind of network it looks like. They do not tell you who the person is, or that they are committing fraud. A network signal is one input. It becomes a decision when it sits next to the document, the face, the device and the transaction history. The Device and IP Analysis documentation describes the full signal set and the decision surface.
Before you start: prerequisites
- A Didit organization and a sandbox application. Sandbox testing is free and unlimited on every plan.
- An API key. The key you use to read a decision must hold the
read:sessionsprivilege. - A published workflow, so you have its
workflow_id. Device and IP Analysis runs automatically on every session and does not need a feature toggle for the basic signal set. - If you pass an
httporhttpscallback, its origin must be on your application's allowed domains, or session creation fails with a 400. - Your fraud policy written down first: which risk codes decline, which go to review, which only raise a score. Deciding that after launch is how good users get blocked.
How to run an ASN lookup with Didit, step by step
- Confirm the feature sits in the workflow. In the Business Console, open your workflow and check that Device and IP Analysis is one of its nodes. Copy the
workflow_id. - Set your routing policy. In the Business Console you can enable strict-mode rules for IP and device, for example decline on VPN, review on a duplicate device, or decline when the IP country does not match the document. Leave them off while you are still measuring how much traffic they catch.
- Create the session. The call below is the documented Create Session API call. It returns a
session_idand a hosted URL.curl -X POST 'https://verification.didit.me/v3/session/' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "user-123", "callback": "https://yourapp.com/post-kyc" }' - Open
session.urlfor the user. The SDK collects the device fingerprint and the IP in band during the hosted flow. You do not make a second call for the network data, and the fingerprint is not something you assemble yourself. - Fetch the decision. Call the Retrieve Session API, or subscribe to the
session.status.updatedwebhook so you do not have to poll. The webhook payload carries the same decision envelope.curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \ -H "x-api-key: <API_KEY>" - Read
ip_analyses[]and act. Each entry is one IP and device collection point in the workflow. Branch onsession_kindfirst, then send the risk codes to your policy: continue, challenge with an extra liveness step, or route to review.
A minimal handler branches on session_kind and reads ip_analyses[].warnings[].risk:
const decision = await (await fetch(url, { headers: { "x-api-key": API_KEY } })).json();
if (decision.session_kind === "user") {
for (const analysis of decision.ip_analyses ?? []) {
for (const warning of analysis.warnings ?? []) {
if (warning.risk === "DATACENTER_IP") {
// route to your policy
}
}
}
}

Expected output: reading ip_analyses
A decision with a data center connection and a country mismatch comes back in this shape. The excerpt keeps the fields you route on and drops the rest of the payload.
{
"session_id": "...",
"session_kind": "user",
"status": "In Review",
"ip_analyses": [
{
"status": "In Review",
"node_id": "device_ip_analysis",
"warnings": [
{ "feature": "LOCATION", "risk": "DATACENTER_IP" },
{ "feature": "LOCATION", "risk": "LOCATION_MISMATCH_WITH_DOCUMENT" }
]
}
]
}
Each entry also carries the resolved geography, the ASN of the IP, the VPN, proxy, Tor, data center and private-network flags, the device fingerprint id and any duplicate-device matches. The per-entry status uses the feature enum: Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. If a feature did not run, its array is absent or null, never a placeholder.
The human-readable label for each risk code lives in the warnings catalogue, so build your mapping from the stable risk value, not from the description text. The full warning object also carries additional_data, log_type and node_id, and node_id pins the warning to the workflow node that raised it.
Inputs and outputs
| Direction | Field | What it holds |
|---|---|---|
| Send | workflow_id | The workflow the session runs. A KYC workflow creates a user session |
| Send | vendor_data | Your stable identifier for the person. It binds the session to that entity and drives duplicate detection across sessions |
| Send | callback | Where the hosted flow returns the user. Must be on an allowed domain for http and https |
| Receive | session_kind | user or business. Branch on it before anything else |
| Receive | status | Session-level status such as Approved, Declined or In Review |
| Receive | ip_analyses[].status | Status of that collection point: Not Started, In Progress, Approved, In Review, Declined, Abandoned, Kyc Expired |
| Receive | ip_analyses[].warnings[] | Risk objects with feature, risk, additional_data, log_type and node_id |
| Receive | Geo and ASN | Country, region, city and coordinates for the connection, plus the ASN that announces the address |
| Receive | Connection flags | VPN, proxy, Tor, data center and private-network detection, plus expected-IP and blocklist checks where configured |
| Receive | Device | Fingerprint id, exact duplicate matches and high-confidence recovered-device matches |
Building an ASN reputation check from the signals
An ASN reputation check is not one number you buy. It is the network type, the anonymization flags, your blocklist and your own history with that network, joined together. Didit gives you the facts of the connection; the verdict is yours to set, which is what keeps false positives manageable. ASN ownership and network type are context signals, not identity proof.
| Risk code | What it means | Common policy |
|---|---|---|
DATACENTER_IP | The connection comes from hosting or cloud infrastructure, not a consumer line | Score up. Challenge at account creation, review on payouts |
VPN_DETECTED | The traffic exits through a VPN | Depending on your market, accept, challenge or review. Rarely an automatic block |
PROXY_DETECTED | The traffic exits through a proxy | Review when paired with a new device or a high-value action |
TOR_DETECTED | The connection comes through the Tor network | Block or hard review, matched to your regulation |
HIGH_RISK_COUNTRY | The IP resolves to a country on your risk list | Extra step, not an automatic decline |
LOCATION_MISMATCH_WITH_DOCUMENT | The IP country does not match the document's issuing country | Route to review |
DUPLICATED_DEVICE | The same device was already enrolled under a different vendor_data | Merge accounts or block, per policy |
POSSIBLE_DUPLICATED_DEVICE | A high-confidence fingerprint match short of an exact device identity | Review, do not auto-block |
IMPOSSIBLE_TRAVEL | Two locations that cannot be reached in the time between sessions | Step-up authentication |
DEVICE_FINGERPRINT_BLOCKLISTED | The device matches a fingerprint on your blocklist | Block, per policy |
DEVICE_LINKED_TO_LIVENESS_ATTACK | The device was seen in a session with a liveness attack | Hard review |
DEVICE_MODEL_INCONSISTENT | The reported device model does not match the signals around it | Score up, watch the account |

Two rules of thumb hold across all of them. First, treat a network signal as a reason to ask for more evidence, not as proof. Second, look at the ASN over time: if a paying customer who has always connected from one mobile carrier suddenly connects from a hosting ASN you have never seen, that is a stronger signal than the same ASN on a first-time visitor.
Failure cases and recovery
| Symptom | Cause | Recovery |
|---|---|---|
ip_analyses[] is empty or null | The user blocked the SDK fingerprinting script with a privacy extension or a content blocker | Decide once whether that case fails closed or falls back to softer signals, and apply the same rule everywhere |
| 401 from the decision call | Invalid API key | Rotate the key and retry |
| 403 from the decision call | The key lacks read:sessions | Grant the privilege to that key |
| 404 from the decision call | The session does not exist or belongs to a different application | Check the application the key belongs to |
400 on callback | The callback origin is not on the application's allowed domains | Add the origin, or drop the callback and read the decision by API |
| Every office worker lands in review | VPN_DETECTED fires on managed corporate networks | Challenge instead of decline, and keep hard rules for payouts and limit increases |
| One person, two accounts | DUPLICATED_DEVICE across two vendor_data values | Merge or block per policy, and check the linked records on the session |
| An ASN value looks unexpected | The value does not match the network you expected for that address | If an ASN value is unexpected, validate it against the decision payload and an authoritative registry before acting on it. |
What you pay, and where a human review starts
Device and IP Analysis costs $0.03 per check at list price, and it is one of the four parts of the $0.33 full ID check: ID document verification at $0.15, passive liveness at $0.10, face match 1:1 at $0.05 and Device and IP Analysis at $0.03. Growth takes 4% off, so the network step is $0.0288, and Scale takes 10% off, so it is $0.027. You pay for a check when it finishes with a result, from prepaid credit: plan credit first, then top-ups, which last 12 months.
Device and IP Analysis is session-only. There is no standalone /v3/ip-analysis/ endpoint to price, so build on the $0.03 session price. A review is a policy outcome, not a separate check with a published fee in this calculation. That is why the sensible default for a network warning is review or an extra step, not an automatic decline you cannot reverse.

Didit has 4,000+ active companies and supports checks in 220+ countries. You can estimate a mixed workload on the pricing page and read the billing rules in the pricing docs.
Worked cost example
Take 10,000 full ID checks a month with the network signal on every one, at list prices from the live feed:
- ID document verification: 10,000 x $0.15 = $1,500.00
- Passive liveness: 10,000 x $0.10 = $1,000.00
- Face match 1:1: 10,000 x $0.05 = $500.00
- Device and IP Analysis: 10,000 x $0.03 = $300.00
- Total: $1,500.00 + $1,000.00 + $500.00 + $300.00 = $3,300.00, which is 10,000 x $0.33
On Scale the same month costs 10,000 x $0.297 = $2,970.00, and the network step inside it is 10,000 x $0.027 = $270.00. The Scale month is $2,970.00. A review decision is a policy outcome in this example, so no review fee is added. On the Free plan, $10 of monthly credit buys about 30 full checks at $0.33 each, enough to see the risk codes on real traffic before you pay anything.
Sources
- Didit docs: Device Fingerprinting and IP Risk API, read November 26, 2026
- Didit docs: IP analysis warnings catalogue, read November 26, 2026
- Didit docs: IP analysis report, read November 26, 2026
- Didit docs: Create Session API, read November 26, 2026
- Didit docs: Retrieve Session API, read November 26, 2026
- Didit docs: Data Models, read November 26, 2026
- Didit docs: Webhooks, read November 26, 2026
- Didit docs: Workflow Builder, read November 26, 2026
- Didit docs: Pricing and billing, read November 26, 2026
- Didit pricing page and live price feed, read November 26, 2026
- Didit MCP server setup, read November 26, 2026
Next step: create a free sandbox application at business.didit.me, run a session, and read ip_analyses[] on your own traffic. No sales call, and sandbox testing is free and unlimited on every plan.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is an ASN lookup?
An ASN lookup resolves an IP address to the autonomous system that announces it, which identifies the organization carrying the traffic. That organization might be a residential ISP, a mobile carrier, a hosting provider or a CDN. The result tells you the character of the network, not the identity of the person using it.
Can I run an ASN lookup without a verification session in Didit?
No. Didit's Device and IP Analysis is session-only: the Web and Mobile SDK collect the device fingerprint and the IP inside the hosted flow, and the results appear under ip_analyses[] on the session decision. There is no standalone /v3/ip-analysis/ endpoint.
How much does an ASN lookup cost in Didit?
Device and IP Analysis is $0.03 per check at list price. It is already included in the $0.33 full ID check, which is ID document verification at $0.15, passive liveness at $0.10, face match 1:1 at $0.05 and Device and IP Analysis at $0.03. Growth takes 4% off that step and Scale takes 10% off.
What is an ASN reputation check?
An ASN reputation check combines what kind of network the ASN is, whether it anonymizes traffic, whether it appears on your blocklist and what your own history with it looks like. Didit supplies the connection facts: the ASN, the data center, VPN, proxy and Tor flags and the device identity. Your policy turns those facts into a verdict, which is what stops one noisy signal from blocking good users.
Which risk codes does Didit return for network and device signals?
They arrive on the LOCATION warning bucket, not on an IP bucket of their own. The codes are VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED, DATACENTER_IP, HIGH_RISK_COUNTRY, LOCATION_MISMATCH_WITH_DOCUMENT, DUPLICATED_DEVICE, POSSIBLE_DUPLICATED_DEVICE, IMPOSSIBLE_TRAVEL, DEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACK and DEVICE_MODEL_INCONSISTENT. Map your logic to the risk value, not to the description text.
What should I do when ip_analyses comes back empty?
An empty array usually means the user blocked the fingerprinting script with a privacy extension or a content blocker, so no network data was collected. Decide in advance whether that case fails closed or falls back to softer signals, and apply the same rule to every session. Do not treat an empty array as a clean result.
Should I block every connection from a data center ASN?
No. Corporate infrastructure, monitoring tools and some privacy services route through hosting ranges, so a blanket block creates false positives you then have to unwind. Treat DATACENTER_IP as a signal that raises the score, and let the document, the device, the behavior and the transaction history decide whether to challenge or review.
Can ASNs be spoofed?
Route announcements can be hijacked or misconfigured, and BGP does not authenticate the origin of an announcement by itself, which is why route hijacks happen. That is a routing incident, not a way to fake the ASN resolved for an ordinary connection, which reflects the network actually carrying the traffic. Treat an unexplained, sudden change of network on an established account as a reason to review.
What should I do if an ASN value looks unexpected?
If an ASN value is unexpected, validate it against the decision payload and an authoritative registry before acting on it. Do not attach a reputation verdict to a number you cannot resolve.
How do I look up who owns an ASN?
Regional internet registries publish whois and RDAP records for the ASNs they allocate: ARIN for North America, RIPE NCC for Europe and the Middle East, APNIC for Asia Pacific, LACNIC for Latin America and AFRINIC for Africa. The record gives the organization name, the country and the address ranges the ASN announces. Inside Didit you do not query them separately, because the resolved ASN arrives in ip_analyses[] with the session.
Does a VPN always mean fraud?
No. Many legitimate users work behind a corporate VPN or a consumer privacy service. In markets where VPN use is ordinary, a hard rule costs you more good customers than it stops fraud. Keep hard rules for payouts, limit increases and account recovery, and use a challenge elsewhere.
What happens when the IP country does not match the document?
Didit emits LOCATION_MISMATCH_WITH_DOCUMENT on the session, and the documented default is to route that case to review. A mismatch is common and usually benign for travelers and recent migrants. Review is a policy outcome, not a fee line in this example.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


