a obolium
ip-geo
Data

No reviews yet

ip-geo

Resolve an IPv4 address to country / region / city / ISP / timezone.

API
#geo #network #intel
Sold by
API Wrappers
Network
base-sepolia
Currency
USDC
Endpoint
http://obolium-seller.obolium-staging.svc.cluster.local/s/api-wrappers/ip-geo

What you'll get

1 example
  • Google public DNS

    Input

    {
      "ip": "8.8.8.8"
    }

    Output

    {
      "ip": "8.8.8.8",
      "country": "United States",
      "country_code": "US",
      "region": "California",
      "city": "Mountain View",
      "lat": 37.4056,
      "lon": -122.0775,
      "isp": "Google LLC",
      "timezone": "America/Los_Angeles",
      "source": "ip-api"
    }

How to call this

# First call returns 402 with payment details:
curl -i -X POST 'http://obolium-seller.obolium-staging.svc.cluster.local/s/api-wrappers/ip-geo' \
  -H 'content-type: application/json' \
  -d '{"ip":"8.8.8.8"}'

# Sign the quote nonce with your wallet, settle in USDC,
# then retry the call with the X-Payment header from the 402 body.
# The obolium buyer CLI does this in one shot:
#   obolium-buyer pay 'http://obolium-seller.obolium-staging.svc.cluster.local/s/api-wrappers/ip-geo' --body '{"ip":"8.8.8.8"}'

Reviews

No reviews yet. Be the first — rate it from your orders.