ASN Lookup for Fraud: How to Run One in 2026
An ASN lookup resolves an IP to the network that announces it. In Didit you read the ASN and its network risk codes from ip_analyses[] on a verification session.

Contents
In this guide
Jump to the part you need.
ASN lookup fits fraud and onboarding teams that need to know which network a signup or login comes from, not just which city the IP claims. Inside Didit you read the ASN and the network risk codes from ip_analyses[] on a verification session. Device & IP Analysis is $0.03 per check as its own published line and also the fourth line of the $0.33 full ID check. The caveat: Didit documents no standalone ASN endpoint, so the signal arrives with a session.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
ASN lookup at a glance
| Item | What it is |
|---|---|
| Outcome | You know the network operator behind a connection and whether it is a data center, VPN, proxy, Tor relay, private network, or a device already seen on another account |
| Where it runs | Device & IP Analysis, collected in-band by the Web or Mobile SDK during a verification session |
| Price | $0.03 per check at list price, $0.027 on Scale. It is published as its own Device & IP Analysis line, and it is also the fourth line of the $0.33 full ID check |
| Where you read it | ip_analyses[] on GET /v3/session/{sessionId}/decision/, or in the status.updated webhook payload |
| Risk codes | VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED, DATACENTER_IP, HIGH_RISK_COUNTRY, LOCATION_MISMATCH_WITH_DOCUMENT, DUPLICATED_DEVICE |
| Standalone API | Not documented. IP Analysis is session-only; there is no /v3/ip-analysis/ endpoint in the docs |
| Human boundary | Didit flags and can set In Review; your policy decides, and reviewers record changes through status_override and decision_trace |
Start free in the sandbox at business.didit.me with no sales call. Developers who want an assistant to build the flow can connect Didit through the Didit MCP server. Every number on this page is on the public price list.
What an ASN lookup answers
An autonomous system is a group of IP networks run by one operator under one routing policy. The ASN identifies it, and an ASN lookup resolves an IP address back to that operator. That one field tells you whether the connection came from a residential ISP, a mobile carrier, a hosting provider, a corporate gateway, a university, or a network built to hide where traffic came from.
A user can pick a VPN and appear in another country. The exit IP still belongs to a network, and that network still has an ASN and an owner. The ASN turns "the city says Lisbon" into "the connection left a hosting provider that announces many other addresses". That difference is where fraud rules live.
An ASN number on its own is just a label. The useful part is the judgement next to it: is this network a hosting provider, a consumer VPN exit, a Tor relay this month, or a corporate gateway? Didit returns risk codes next to the resolved geo and ASN, as one of 25+ composable modules and one slice of the 200+ fraud signals Didit can collect per session.
The method we recommend
Do not build a standalone ASN service. Run the network check inside the verification session you already need, then route on the risk codes it returns.
Three reasons. First, the ASN arrives with the device fingerprint, so a hosting ASN and a device already seen on three other accounts land in the same payload and can be judged together. Second, the result is attached to a session with a decision status, so a human reviewer sees exactly what the automatic rules saw. Third, the price is published per check, so the cost of the signal is a line in a formula rather than a contract negotiation.
The docs are explicit about delivery mode: IP Analysis is session-only. The SDK collects the fingerprint and the IP in the hosted flow, and there is no standalone /v3/ip-analysis/ endpoint. If you need an ASN for traffic that never passes through a session, the documented route is to create a session, not to call a separate lookup. Read the Device & IP Analysis documentation before you design the flow.
Prerequisites
- A Didit organization and application. The sandbox is free and unlimited on every plan.
- An API key that holds the
read:sessionsprivilege, used in thex-api-keyheader. - A workflow UUID from your application. Workflow Builder lists Device & IP Analysis as a feature you can add to the flow; see the Workflow Builder docs.
- A stable
vendor_datavalue per user. Duplicate device and duplicate IP detection compares the session against earlier sessions from a differentvendor_data, so a random value per session defeats the check. - A callback URL on one of your application's allowed domains, or no callback at all. A callback outside the allowed origins fails session creation with a 400.
- A browser or app session for the user. Server-to-server calls alone do not produce a fingerprint or a connection to analyse.
Step-by-step: read the ASN on a session
- Build the workflow. IP Analysis runs automatically during the session. Optionally configure strict-mode rules in the Business Console, then publish any other workflow changes. Publishing creates an immutable version, and each session stays pinned to the version it was created with, so a later edit does not change what an old decision means. Copy the workflow UUID.
- Write the routing policy first. The docs list optional console rules such as decline on VPN, review on duplicate device, and decline on country mismatch with the document. Decide in advance which codes decline, which go to review, and which are informational. You will read better data if the policy is not written after the fact.
- Create the session. Send
workflow_id, yourvendor_dataand acallback. See Create Session for the full request body.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" }' - Send the user to
session.url. The verification client posts the device fingerprint and the IP in-band. Nothing in the network check runs until the user is in the flow. - Fetch the decision. Either poll the decision endpoint or subscribe a webhook destination to
status.updated.curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \ -H "x-api-key: <API_KEY>" - Read
ip_analyses[]. Each entry carries the resolved geo, the ASN, the VPN, proxy and Tor flags, the device fingerprint id, duplicate-device matches, and awarningsarray. The array is plural because a multi-step workflow can collect at several nodes, and every entry has anode_id. - Read the warnings in the LOCATION bucket. Network and device risk codes are emitted under
feature: "LOCATION", not under anIP_ANALYSISfeature name. The full catalogue is on the IP analysis warnings page. - Route, then record. Apply your policy, store the risk codes next to the decision, and send the ambiguous cases to review. Store codes, not raw ASN numbers, as your rule input; the codes are stable strings and the ASN range list is not something you want to own.

ip_analyses[].What the response looks like
Call the decision endpoint with the session id and the key that created it.
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
-H "x-api-key: <API_KEY>"
In an illustrative example, a clean session from a residential connection returns an ip_analyses entry with an empty warnings array and the session status Approved. A connection that left a hosting provider can look like this shape, with risk codes from the catalogue. This is an example, not a guaranteed response.
{
"status": "In Review",
"ip_analyses": [
{
"status": "In Review",
"warnings": [
{ "feature": "LOCATION", "risk": "DATACENTER_IP" },
{ "feature": "LOCATION", "risk": "LOCATION_MISMATCH_WITH_DOCUMENT" }
]
}
]
}
Each warning object also carries short_description, long_description, log_type and, for V3 multi-instance workflows, the node_id it was raised against. The schemas are in the data models reference.
Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
workflow_id | Input, required | Workflow UUID; the workflow type decides whether a user or business session is created |
vendor_data | Input, recommended | Your stable identifier for the person; binds the session and feeds duplicate detection across accounts |
callback | Input, optional | Where the hosted flow returns the user; must be on an allowed domain |
metadata, tags | Input, optional | Echoed back in responses and webhooks; tags show in the console and can be filtered |
expected_details | Input, optional | Expected name, date of birth and document country; mismatches surface as decision warnings |
ip_analyses[] | Output | One entry per collection point: resolved geo, ASN, VPN, proxy and Tor flags, device fingerprint id, duplicate matches |
ip_analyses[].warnings[].risk | Output | The stable risk code your rules branch on |
ip_analyses[].warnings[].feature | Output | LOCATION for network and device signals |
status | Output | Session status: Approved, Declined, In Review, In Progress, Abandoned and the rest of the enum |
decision_trace | Output | How the status was reached, including decided_by as manual, automatic or investigator |
Risk codes and what we do with them
| Code | What it means | Starting policy |
|---|---|---|
DATACENTER_IP | The exit IP belongs to a hosting or cloud network, not a consumer line | Additional step or review, not an automatic decline |
VPN_DETECTED / PROXY_DETECTED / TOR_DETECTED | The connection is routed through an anonymising service | Tor can decline on its own; VPN and proxy usually add evidence |
HIGH_RISK_COUNTRY | The resolved country is on the risk list you configure | Route to review when the document country differs |
LOCATION_MISMATCH_WITH_DOCUMENT | The IP country does not match the document's issuing country | Review, as the docs recommend |
DUPLICATED_DEVICE / POSSIBLE_DUPLICATED_DEVICE | The same device appears under a different vendor_data; the possible variant uses the v2 fingerprint vector with high-confidence gates | Merge, block or review per policy; never treat as proof on its own |
IMPOSSIBLE_TRAVEL | Two sessions from places a person could not reach in the elapsed time | Step up authentication before any account change |
DEVICE_FINGERPRINT_BLOCKLISTED | The fingerprint is on your blocklist | Decline, and keep the blocklist current |
DEVICE_LINKED_TO_LIVENESS_ATTACK | The device previously appeared in a liveness attack | Decline or full manual review |
DEVICE_MODEL_INCONSISTENT | Device model signals contradict each other | Treat as a spoofing signal, combine with other codes |
The ASN is context, not a replacement for the listed risk codes. A risk code is the trigger your rule reads; the ASN explains what kind of network produced it. DATACENTER_IP plus an ASN owned by a hosting provider is a stronger story than the code alone, while VPN_DETECTED on a corporate network may deserve a different policy from VPN_DETECTED on a consumer VPN exit. Read the code first, then use the ASN and the resolved geo to decide how much weight to give it.
Patterns ASN data catches
The old ASN playbook still holds, with one addition: you no longer need the ASN number itself to act on it. A high-value order shipping to one country from a hosting ASN in another, a loan application whose network is a server farm, twelve gaming accounts registered from different IPs that all resolve to one hosting provider, a login from a data center when the account always signs in from a home line. Each is a risk code plus context, and each is cheaper to answer with an extra verification step than with a chargeback.
- IP hopping and botnets. Different addresses, same announcing network.
DATACENTER_IPrepeated across sessions in a short window is the shape of coordinated activity. - Account takeover. A residential user suddenly signing in from a hosting ASN, with a fresh device, is two signals on one session.
- Multi-accounting and bonus abuse.
DUPLICATED_DEVICEplus a shared network is stronger than either alone. - Geo restriction bypass. Licensing terms tied to a country are not enforced by geo alone when the exit IP is a commercial VPN.

Failure cases and recovery
ip_analyses[]is empty. The user blocked the fingerprinting script with a privacy extension or content blocker. Decide in advance whether you fail closed or fall back to soft signals, and write the choice down so support can explain it.- A code fires on a legitimate user. VPN use is common among privacy-conscious and corporate users. Add a step instead of declining: an active liveness check at $0.15, a questionnaire at $0.10, or a manual review.
DUPLICATED_DEVICEon a shared phone. Family devices and shared handsets exist. Check whether the linked accounts share payment instruments or addresses before you merge or block.- Session creation returns 400 on
callback. The callback is not on one of the application's allowed domains. Fix the domain list or drop the callback and use the workflow default. - 401, 403 or 404 on the decision call. 401 means the API key is invalid; 403 means it lacks
read:sessions; 404 means the session does not exist or belongs to a different application. The rules are in the Retrieve Session docs. - A webhook arrives but your handler rejects it. Verify
X-Signature-V2against the raw body and check thatX-Timestampis within 300 seconds; the rules are in the webhooks documentation. - A legitimate user is stuck in review. Reviewers can override and the change is recorded in
status_overridewith the automatic status preserved, so you can measure how often your own policy was wrong.
Paid steps and where a human decides
Two published prices matter on this path. Device & IP Analysis is $0.03 per check. Any extra verification you trigger on a risk code is priced at its own line, for example active liveness at $0.15 or a custom questionnaire at $0.10. Sessions are billed per completed check from prepaid credit, and plan credit is added monthly and does not roll over.
The boundary is simple: Didit returns flags and a status, your policy decides what a flag means for your business. The platform records who decided through decision_trace, so an automatic decline and a reviewer's override are distinguishable after the fact. A human review is a policy step; the network check is billed per completed check.
Worked cost example
Take 10,000 onboarding sessions a month on the full ID check, each one priced as ID document verification plus biometrics plus the network signal.
- Per check: $0.15 ID document + $0.10 passive liveness + $0.05 face match + $0.03 device and IP = $0.33.
- Monthly at list price: 10,000 x $0.33 = $3,300.00.
- Network analysis share: 10,000 x $0.03 = $300.00, which is 300 / 3,300 = 9.1% of the bill.
- On Scale, every Didit price takes 10% off: $0.33 x 0.90 = $0.297 per check, so 10,000 x $0.297 = $2,970.00. The network line becomes $0.03 x 0.90 = $0.027, so 10,000 x $0.027 = $270.00. Scale costs $299 a month and carries $350 of monthly credit.
The network signal is a tenth of the check and it is the cheapest reason to add a step instead of accepting a loss. A human review, if you route a case to one, is a separate policy and staffing decision and is not part of this calculation.

Sources
- Didit docs: Device Fingerprinting & IP Risk API
- Didit docs: IP analysis warnings catalogue
- Didit docs: data models, warning objects and
ip_analyses[] - Didit docs: Create Session API
- Didit docs: Retrieve Session decision API
- Didit docs: webhooks and HMAC signing
- Didit docs: Workflow Builder
- Didit docs: pricing and billing rules
- Didit pricing page and the live price feed, read November 26, 2026
Run one sandbox session with Device & IP Analysis and read the risk codes yourself before you change a production rule. Create the account at business.didit.me; the sandbox is free and there is no sales call.
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 tells you the network operator behind a connection: a residential ISP, a mobile carrier, a hosting provider, a university or a VPN service. Fraud teams use it to spot connections that do not look like a home line. In Didit the resolved ASN and the network risk codes arrive on a verification session rather than as a separate query.
Does Didit have a standalone ASN lookup API?
No standalone endpoint is documented. Didit's Device & IP Analysis is session-only: the Web or Mobile SDK collects the device fingerprint and the IP during the hosted flow, and the result lands under ip_analyses[] in the session decision. The docs state there is no separate /v3/ip-analysis/ endpoint, so the documented route is to create a session and read the decision.
How much does an ASN lookup cost in Didit?
Device & IP Analysis costs $0.03 per check at list price and $0.027 on the Scale plan. It is published as its own line and is also the fourth line of the $0.33 full ID check: $0.15 ID document, $0.10 passive liveness, $0.05 face match and $0.03 device and IP. You pay per completed check from prepaid credit, and sandbox testing is free.
Which risk codes does the network check return?
The codes are emitted in the LOCATION bucket: 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. Each warning object also carries a short and long description and the node it was raised against.
Should I decline every VPN or data center IP?
No. VPN use is common among privacy-conscious users and corporate networks, and a blanket decline raises false positives and support load. Map the code to more evidence first: a document country mismatch, an AML hit, a duplicated device or an impossible travel flag. Declines are safest when two independent signals fire, and single signals belong in review.
What happens if ip_analyses comes back empty?
An empty array usually means the fingerprinting script was blocked by a privacy extension or content blocker, and the docs list it as a known failure mode. Your policy has to choose between failing closed and falling back to softer signals. Whatever you choose, write it into the workflow so support can explain the outcome to a user.
Can ASN data help stop account takeover and multi-accounting?
Yes, as one signal among several. A login from a hosting network when the account normally signs in from a residential ISP is an anomaly, and several accounts from different addresses that all resolve to the same hosting network suggests coordinated activity. Pair the network code with a duplicated device match before you act, because shared devices and shared offices are real.
Where do I see the network result in the Didit Console?
The warnings appear on the session detail screen in the Business Console, next to the document, liveness and AML results for the same session. The decision payload returns the same data through the API, so an automatic rule and a human reviewer look at identical risk codes. Reviewers can override the status, and the override is recorded against the automatic status.
Does a session need the full document and selfie to get network data?
Device & IP Analysis runs automatically during a verification session and the basic signal set does not need a workflow feature toggle, according to the docs. The signal is collected in-band by the SDK during the flow, so it arrives with the session you create. Didit documents no standalone ASN endpoint, so read ip_analyses[] from that session's decision.
How fast is the decision?
Didit states sub-2-second p99 inference across the platform, and the network analysis is collected in-band rather than as a batch job. You can poll GET /v3/session/{sessionId}/decision/ or wait for a status.updated webhook, whichever fits your flow. There is no batch file to reconcile later.
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


