{"uid":"cap_GW3qAsmBD5JV4rvL_kwTc","slug":"ip-to-asn-lookup-5d1caa0f","name":"IP to ASN Lookup","description":"IP to ASN lookup: the autonomous system number and name that announces an IP, the BGP prefix, country code, regional registry and allocation date (Team Cymru data via DNS). Network attribution for logs, security and analytics. $0.01 per IP.","url":"https://intel.rallylive.ca/ip/asn","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qtwoQwJj912suchXb4ssB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the Autonomous System Number (ASN), AS name, BGP prefix, country code, regional registry, and allocation date for a given IP address using Team Cymru data via DNS.","exampleAgentPrompt":"What ASN, BGP prefix, and country is the IP address 8.8.8.8 associated with? I need the full network attribution including the registry and allocation date.","exampleUseCases":[{"title":"Security log attribution","prompt":"I have a suspicious IP 185.220.101.45 appearing in my server logs — can you tell me which autonomous system and BGP prefix it belongs to, and which country and registry it comes from?"},{"title":"Network traffic analysis","prompt":"For the IP 1.1.1.1, look up the ASN name and number, the BGP prefix it's announced under, and when it was allocated — I'm building a report on the networks hitting our API."},{"title":"Threat intelligence enrichment","prompt":"I'm screening a list of IPs from a DDoS event and need to start with 45.33.32.156 — fetch me the ASN, AS name, BGP prefix, country code, and allocation date so I can attribute the attack traffic."}],"resultDescription":"Returns the ASN number, AS organization name, BGP prefix (CIDR), ISO country code, regional internet registry (e.g. ARIN, RIPE, APNIC), and the allocation date for the queried IP address, sourced from Team Cymru via DNS lookups.","failureModes":["IP not found in BGP routing tables (unrouted or reserved IPs may return no ASN)","Invalid IP address format returns an error","Private/RFC1918 addresses may not resolve to a public ASN","DNS resolution failure if Team Cymru backend is unavailable","Rate limiting or payment failure if $0.01 USDC payment is not processed"],"whenToPreferThis":"Choose this endpoint when you need fast, authoritative ASN and BGP attribution for individual IPs using Team Cymru's well-established dataset — ideal for log enrichment, security investigations, and network analytics where you need the full routing context (prefix, registry, allocation date) rather than just a geolocation or WHOIS lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:36.035Z","isFirstParty":false}