$ man ip-asn
/ip-asn
PRICE / CALL
$0.001
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
uncategorized
STATUS
● live
NAME
ip-asn — looks up asn and geolocation for any ipv4 or ipv6 address: asn number, asn org, isp, country, region, city, postal, latitude/longitude, a…
SYNOPSIS
POST https://x402.agentutility.ai/ip-asn
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Looks up ASN and geolocation for any IPv4 or IPv6 address: 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. Use it as an IP-to-ASN, IP geolocation, IP-to-ISP lookup, WHOIS for IP, or cloud-provider attribution tool.
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.agentutility.ai/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 the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the ip-asn tool from your MCP-aware agent.
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 | Search 30M+ Hacker News stories and comments via the Algolia HN index. | $0.001 |
| hn-search | Searches 30M+ Hacker News stories and comments via the public Algolia HN index. | $0.001 |
| qr-generator | Generates PNG or SVG QR codes from text, URLs, vCards, WiFi strings, and plain text with configurable size, margin, colors, and error cor… | $0.001 |
| qr-maker | Makes a QR code from text, URL, vCard, WiFi join string, or plain text and returns it as PNG or SVG. | $0.001 |
| keyword-suggest | Keyword and autocomplete suggestions for any seed query. | $0.002 |
| crates-io-stats | Fetches the public crates.io API record for a Rust crate and returns description, license, repository, homepage, documentation, keywords,… | $0.003 |
| crypto-news-api | Returns recent cryptocurrency headline metadata and sentiment. | $0.003 |
| homoglyph-check | Detects Unicode lookalike characters that impersonate ASCII Latin letters, a common phishing-domain trick. | $0.003 |
SEE ALSO