$ man ip-asn
/ip-asn(1)
PRICE / CALL
$0.001
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
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.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| ip | string | IPv4 or IPv6 address. | required |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| ip | string | Echoes back the IPv4 or IPv6 address that was looked up. |
| asn | string | Autonomous System Number announcing the prefix (e.g. AS15169). |
| asn_org | string | Organization name registered to that ASN (e.g. Google LLC, Cloudflare Inc). |
| country_code | string | ISO 3166-1 alpha-2 country code for the IP (e.g. US, DE, JP). |
| country | string | Full country name geolocated for the IP. |
| region | string | State, province, or top-level administrative region for the IP. |
| city | string | City name geolocated for the IP. |
| postal | string | Postal or ZIP code geolocated for the IP. |
| latitude | string | Approximate latitude of the IP in decimal degrees as a string. |
| longitude | string | Approximate longitude of the IP in decimal degrees as a string. |
| timezone | string | IANA timezone name for the IP's location (e.g. America/Los_Angeles). |
| source | string | Upstream backend that served the lookup: ipapi.co (primary) or ip-api.com (fallback). |
EXAMPLES — two 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
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| hacker-news-search | Hacker News search / HN search / yc-news / Algolia HN. | $0.001 |
| hn-search | HN search / Hacker News search / yc-news / startup-news search / Algolia HN / who-is-hiring scraper / programmer-news firehose. | $0.001 |
| qr-code-generate | QR code generator / QR maker / vCard QR / WiFi QR / URL to QR / SVG QR / PNG QR / customizable error correction. | $0.001 |
| tld-info | TLD info / top-level domain registry lookup / ccTLD vs gTLD / TLD introduction year / new gTLD registry. | $0.001 |
| user-agent-parse | User-Agent parser / UA classifier / browser detection / OS detection / bot detection / AI crawler identifier (GPTBot, ClaudeBot, Perplexi… | $0.001 |
| arxiv-bibtex | arXiv to BibTeX / arxiv citation generator / paper bibtex / LaTeX citation builder / academic citation lookup. | $0.002 |
| github-readme | GitHub README fetch / repo readme / open-source-readme-as-markdown / package documentation puller. | $0.002 |
| keyword-suggest | Keyword autocomplete / search suggest / SEO keyword research / query expansion / autocomplete suggestions. | $0.002 |
SEE ALSO