{"uid":"cap_fao6MtmYPGrsSTU2BYb5v","slug":"24k-labs-ip-geolocation-62c1a519","name":"24K Labs IP Geolocation","description":"A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.","url":"https://api.24klabs.ai/api/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_HIr8Va2GnIFpTHG4HqDRI","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":"Geolocates an IP address and returns country-level location data","exampleAgentPrompt":"Can you geolocate the IP address 203.0.113.42 and tell me which country it's from?","exampleUseCases":[{"title":"Block traffic from restricted regions","prompt":"I need to know what country the IP 198.51.100.77 is coming from — can you look it up so I can decide whether to block it based on our geo-restriction policy?"},{"title":"Enrich user signup data","prompt":"We just got a new signup and their IP is 91.108.4.1 — can you find out what country they're connecting from so we can pre-fill their region in the onboarding form?"},{"title":"Detect suspicious login origin","prompt":"There's a login attempt from IP 185.220.101.34 — can you geolocate it and tell me which country it originates from so I can flag it if it doesn't match the user's usual location?"}],"resultDescription":"A JSON object containing the resolved country name for the queried IP address, e.g. {\"country\": \"United States\"}.","failureModes":["Invalid or malformed IP address returns an error","Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may not resolve to a country","IPv6 addresses may not be supported or may return incomplete data","Rate limiting or payment failure returns a 402 or 429 error","Unroutable or bogon IPs may return null or empty country field"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call IP-to-country lookup without a subscription, especially within an x402-compatible agent workflow. It is ideal for lightweight geolocation needs where only country-level data is required and cost-per-query matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:25.685Z","isFirstParty":false}