Skip to main content

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.

ASN Lookup for Fraud Detection: How to Run It in 2026

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.

ASN lookup in Didit at a glance
ItemDetail
OutcomeThe ASN, network and device fields on the decision. Risk codes appear in warnings[].
MethodDevice 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 landsip_analyses[] on GET /v3/session/{sessionId}/decision/
Risk bucketLOCATION: VPN, proxy, Tor, data center, high-risk country, country mismatch, duplicate device, impossible travel
Free to testSandbox 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:sessions privilege.
  • 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 http or https callback, 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

  1. 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.
  2. 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.
  3. Create the session. The call below is the documented Create Session API call. It returns a session_id and 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"
    }'
  4. Open session.url for 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.
  5. Fetch the decision. Call the Retrieve Session API, or subscribe to the session.status.updated webhook 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>"
  6. Read ip_analyses[] and act. Each entry is one IP and device collection point in the workflow. Branch on session_kind first, 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
      }
    }
  }
}
Session overview in the Didit Business Console with the warnings raised on one verification
A session overview in the Didit Business Console. The network and device warnings sit with the rest of the session's risk signals.

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

ASN and network signals: what you send, what you get back
DirectionFieldWhat it holds
Sendworkflow_idThe workflow the session runs. A KYC workflow creates a user session
Sendvendor_dataYour stable identifier for the person. It binds the session to that entity and drives duplicate detection across sessions
SendcallbackWhere the hosted flow returns the user. Must be on an allowed domain for http and https
Receivesession_kinduser or business. Branch on it before anything else
ReceivestatusSession-level status such as Approved, Declined or In Review
Receiveip_analyses[].statusStatus of that collection point: Not Started, In Progress, Approved, In Review, Declined, Abandoned, Kyc Expired
Receiveip_analyses[].warnings[]Risk objects with feature, risk, additional_data, log_type and node_id
ReceiveGeo and ASNCountry, region, city and coordinates for the connection, plus the ASN that announces the address
ReceiveConnection flagsVPN, proxy, Tor, data center and private-network detection, plus expected-IP and blocklist checks where configured
ReceiveDeviceFingerprint 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.

Network and device risk codes, emitted on the LOCATION bucket
Risk codeWhat it meansCommon policy
DATACENTER_IPThe connection comes from hosting or cloud infrastructure, not a consumer lineScore up. Challenge at account creation, review on payouts
VPN_DETECTEDThe traffic exits through a VPNDepending on your market, accept, challenge or review. Rarely an automatic block
PROXY_DETECTEDThe traffic exits through a proxyReview when paired with a new device or a high-value action
TOR_DETECTEDThe connection comes through the Tor networkBlock or hard review, matched to your regulation
HIGH_RISK_COUNTRYThe IP resolves to a country on your risk listExtra step, not an automatic decline
LOCATION_MISMATCH_WITH_DOCUMENTThe IP country does not match the document's issuing countryRoute to review
DUPLICATED_DEVICEThe same device was already enrolled under a different vendor_dataMerge accounts or block, per policy
POSSIBLE_DUPLICATED_DEVICEA high-confidence fingerprint match short of an exact device identityReview, do not auto-block
IMPOSSIBLE_TRAVELTwo locations that cannot be reached in the time between sessionsStep-up authentication
DEVICE_FINGERPRINT_BLOCKLISTEDThe device matches a fingerprint on your blocklistBlock, per policy
DEVICE_LINKED_TO_LIVENESS_ATTACKThe device was seen in a session with a liveness attackHard review
DEVICE_MODEL_INCONSISTENTThe reported device model does not match the signals around itScore up, watch the account
Academy lesson thumbnail on real-time transaction monitoring and fraud rules
The Academy lesson on fraud rules shows how signals like these become routing decisions instead of report lines.

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

What goes wrong with an ASN lookup, and what to do
SymptomCauseRecovery
ip_analyses[] is empty or nullThe user blocked the SDK fingerprinting script with a privacy extension or a content blockerDecide once whether that case fails closed or falls back to softer signals, and apply the same rule everywhere
401 from the decision callInvalid API keyRotate the key and retry
403 from the decision callThe key lacks read:sessionsGrant the privilege to that key
404 from the decision callThe session does not exist or belongs to a different applicationCheck the application the key belongs to
400 on callbackThe callback origin is not on the application's allowed domainsAdd the origin, or drop the callback and read the decision by API
Every office worker lands in reviewVPN_DETECTED fires on managed corporate networksChallenge instead of decline, and keep hard rules for payouts and limit increases
One person, two accountsDUPLICATED_DEVICE across two vendor_data valuesMerge or block per policy, and check the linked records on the session
An ASN value looks unexpectedThe value does not match the network you expected for that addressIf 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.

One transaction monitoring rule open in the Didit Business Console with its conditions and action
One rule in the Didit Business Console, with the conditions that trigger it and the action it takes.

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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.