fourzerotwo
← IP Geolocation & ASN
network by fourzerotwo

IP to country

Country and continent for one IP.

IP to country Free

Country and continent for one IP.

cost
Free then $0.0005 / call
MCP tool
ip-geolocation__country
method
GET

Free up to 50 calls a day over MCP (500 with a free key), then $0.0005 per call by card credit or USDC. Free key · Pay by card

GET https://fourzerotwo.si/v1/ip-geolocation/country

ParamTypeDescription
ip string IPv4 or IPv6 address
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/ip-geolocation/country?ip=81.2.69.142"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/ip-geolocation/country?ip=81.2.69.142"

by fourzerotwo

Report this endpoint

Use it from an AI agent (MCP)

Add the server once, then ask for this data in plain English. The agent finds the endpoint with search_apis and runs it with call_api.

{
  "mcpServers": {
    "fourzerotwo": { "type": "http", "url": "https://fourzerotwo.si/mcp" }
  }
}
# the call the agent makes
call_api {"tool": "ip-geolocation__country", "arguments": {"ip":"81.2.69.142"}}

More from IP Geolocation & ASN

  • IP lookup — Country, continent, EU membership, network block, ASN, organisation and hosting flag for one IP.
  • IP to network owner — ASN, organisation and hosting flag for one IP.
  • Batch lookup — Full lookup for up to 100 IPs in one call.

IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0.