Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man ip-asn

/ip-asn(1)

PRICE / CALL
$0.001
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobe
CATEGORY
uncategorized
STATUS
live
NAME
ip-asn ip to asn / ip geolocation / ip-to-isp lookup / whois for ip / cloud-provider attribution
SYNOPSIS
POST https://x402.org/v1/ip-asn
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

IP to ASN / IP geolocation / IP-to-ISP lookup / WHOIS for IP / cloud-provider attribution. For any IPv4 or IPv6 address, returns ASN number, ASN org, ISP, country, region, city, postal, latitude/longitude, and timezone. Primary backend: ipapi.co (1k req/day free). Fallback: ip-api.com (45 req/min free). Both are free public APIs with no auth.

INPUTrequest schema
propertytypedescriptionreq?
ipstringIPv4 or IPv6 address.required
OUTPUTresponse shape
fieldtypedescription
ipstringEchoes back the IPv4 or IPv6 address that was looked up.
asnstringAutonomous System Number announcing the prefix (e.g. AS15169).
asn_orgstringOrganization name registered to that ASN (e.g. Google LLC, Cloudflare Inc).
country_codestringISO 3166-1 alpha-2 country code for the IP (e.g. US, DE, JP).
countrystringFull country name geolocated for the IP.
regionstringState, province, or top-level administrative region for the IP.
citystringCity name geolocated for the IP.
postalstringPostal or ZIP code geolocated for the IP.
latitudestringApproximate latitude of the IP in decimal degrees as a string.
longitudestringApproximate longitude of the IP in decimal degrees as a string.
timezonestringIANA timezone name for the IP's location (e.g. America/Los_Angeles).
sourcestringUpstream backend that served the lookup: ipapi.co (primary) or ip-api.com (fallback).
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/ip-asn \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the ip-asn tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
web-probeip-lookupgeolocationasnwhoisispip-intelligence
methods
POST
cluster
webprobe
price
$0.001 USDC per call
ADJACENTother endpoints in webprobe
endpointdescriptionprice
hacker-news-searchHacker News search / HN search / yc-news / Algolia HN.$0.001
hn-searchHN search / Hacker News search / yc-news / startup-news search / Algolia HN / who-is-hiring scraper / programmer-news firehose.$0.001
qr-code-generateQR code generator / QR maker / vCard QR / WiFi QR / URL to QR / SVG QR / PNG QR / customizable error correction.$0.001
tld-infoTLD info / top-level domain registry lookup / ccTLD vs gTLD / TLD introduction year / new gTLD registry.$0.001
user-agent-parseUser-Agent parser / UA classifier / browser detection / OS detection / bot detection / AI crawler identifier (GPTBot, ClaudeBot, Perplexi…$0.001
arxiv-bibtexarXiv to BibTeX / arxiv citation generator / paper bibtex / LaTeX citation builder / academic citation lookup.$0.002
github-readmeGitHub README fetch / repo readme / open-source-readme-as-markdown / package documentation puller.$0.002
keyword-suggestKeyword autocomplete / search suggest / SEO keyword research / query expansion / autocomplete suggestions.$0.002
SEE ALSO
agentutility(7) · webprobe(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org