PayAPI Market

IP Geolocation API

4 endpoints for IP geolocation: single IP lookup (country, region, city, ISP, ASN, lat/lng, timezone, datacenter heuristic), batch lookup of up to 20 IPs in parallel, caller's-IP introspection (via x-forwarded-for chain), and great-circle distance between two IPs in km/miles. Backed by ip-api.com (primary) with ipapi.co fallback.

1 of 4 routes settlement-verified · $0.001 USDC/request · 4 endpoints / 4 tools · Data · base network · x402 protocol

Verified routes

Other routes are unverified.

Networks: Base (settlement-verified)

Discovery is free. Agents search the catalogue here. Payment happens on the listing 402, not on PayAPI.

url https://payapi.market/mcp

Turn an IP address into country, city, ASN, ISP and timezone. Single, bulk, caller-IP and distance lookups.

Endpoints

Example request

curl -X POST https://ipgeo.payapi.market/lookup/ip \
  -H 'content-type: application/json' \
  -d '{"ip":"8.8.8.8"}'

Example response

{
  "ip": "8.8.8.8",
  "country": "United States",
  "country_code": "US",
  "city": "Mountain View",
  "asn": "AS15169",
  "isp": "Google LLC",
  "timezone": "America/Los_Angeles"
}

How an agent calls this

Where is IP 8.8.8.8 located and which network operator owns it?

An MCP-connected agent discovers this API, picks it for the task, and pays per call in USDC. No keys, no account.

About this API

IP Geolocation API is listed in the Data category with pricing at $0.001 USDC/request. One route has been settlement-verified by PayAPI Market on 2026-08-03. View receipt on Basescan.

Payments settle on base in USDC via the x402 protocol. AI agents discover this API through the PayAPI Market MCP server and pay per request without API keys or accounts.

This API exposes 4 endpoints. Only the verified route has been tested by PayAPI Market. Other routes are unverified.

How to call this API

Every protected route returns HTTP 402 with x402 payment requirements. An agent pays the stated USDC amount on Base and retries with the payment header. No API keys, no accounts. Browse the marketplace or list your own API.

Related APIs

More from PayAPI Market

By PayAPI Market