{"uid":"cap_vFl3Wx7LmzDo18Th07Ssn","slug":"ip-geolocation-lookup-24k-labs-c1097c83","name":"IP Geolocation Lookup (24K Labs)","description":"Country, city, region, ISP/org, and lat/lon for an IPv4/IPv6 address (ipwho.is, keyless).","url":"https://api.24klabs.ai/api/v1/ip-geolocate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ip":{"type":"string"}}},"responseSchema":{"type":"json","example":{"country":"United States"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aqhRnmnoGpkbUhdhYXHl9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns country, city, region, ISP/org, latitude, and longitude for a given IPv4 or IPv6 address using the ipwho.is data source, with no API key required.","exampleAgentPrompt":"Can you look up the geolocation for the IP address 203.0.113.42 and tell me what country, city, region, and ISP it belongs to?","exampleUseCases":[{"title":"Geoblock suspicious login attempt","prompt":"We got a login attempt from IP 198.51.100.77 — can you look up where that IP is coming from, including the country, city, and ISP?"},{"title":"Enrich analytics with visitor location","prompt":"For this batch of visitor IPs starting with 104.28.0.1, can you resolve the first one to find the country, region, city, and organization so I can tag the analytics record?"},{"title":"Detect traffic origin for fraud review","prompt":"Flag this transaction for review — the IP address 45.33.32.156 was used during checkout. Can you find out what country and ISP it resolves to so I can check if it matches the billing address?"}],"resultDescription":"A structured response containing the IP address's resolved country (name and code), region, city, latitude, longitude, ISP name, and organization name, sourced from the ipwho.is dataset.","failureModes":["Invalid or malformed IP address returns an error or empty result","Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no geolocation data","IPv6 addresses with limited coverage may return partial or null fields","Network timeouts or upstream ipwho.is unavailability cause lookup failures","Payment failure via x402 protocol results in 402 response before lookup is attempted"],"whenToPreferThis":"Choose this endpoint when you need a keyless, pay-per-call IP geolocation lookup with no account registration, suitable for one-off enrichment or low-volume agent workflows. It is ideal for agents operating in x402-enabled environments where micropayment-based access is preferred over subscription APIs. Best for use cases requiring country, city, region, ISP, and coordinates without needing advanced features like threat scoring or proxy detection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:28.261Z","isFirstParty":false}