[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"content:en:blog\u002Fip-geolocation-accuracy":3},{"path":4,"locale":5,"section":6,"title":7,"description":8,"html":9,"headings":10,"faq":46,"updated":68,"order":69,"words":70,"meta":71},"blog\u002Fip-geolocation-accuracy","en","blog","IP geolocation accuracy: what an IP address can and cannot tell you","How IP geolocation works, why the country is dependable and the city is approximate, what moves a location, and how to use it without misleading yourself.","\u003Cp>IP geolocation maps an IP address to the place its network is registered or routed, not to the device or the person using it. The country is the most dependable part of a lookup; region and city are approximate, and VPNs, mobile networks, carrier-grade NAT and corporate gateways can move the apparent location far from the user. Use it to set sensible defaults and to add context to risk decisions, never to identify or pinpoint a person.\u003C\u002Fp>\n\u003Ch2 id=\"where-the-location-in-a-lookup-comes-from\">Where the location in a lookup comes from\u003C\u002Fh2>\n\u003Cp>No IP address carries a location. Every location you see was inferred and stored in a database, from several kinds of evidence:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Evidence\u003C\u002Fth>\n\u003Cth>What it says\u003C\u002Fth>\n\u003Cth>Limits\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Registration\u003C\u002Ftd>\n\u003Ctd>IANA hands address space to five regional internet registries (AFRINIC, APNIC, ARIN, LACNIC, RIPE NCC), which assign blocks to organizations. The registration names the holder and its country, published through WHOIS and RDAP.\u003C\u002Ftd>\n\u003Ctd>The holder's country, not where each address is used\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Routing\u003C\u002Ftd>\n\u003Ctd>Each block is announced on the internet by an autonomous system (ASN), the network that routes it.\u003C\u002Ftd>\n\u003Ctd>Says whose network it is, not where the user is\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Self-published feeds\u003C\u002Ftd>\n\u003Ctd>RFC 8805 defines geofeeds: files in which a network operator states the location of its own prefixes.\u003C\u002Ftd>\n\u003Ctd>Only as good, and as current, as the operator keeps them\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Measurements and corrections\u003C\u002Ftd>\n\u003Ctd>Database publishers add network measurements, user corrections and other signals of their own.\u003C\u002Ftd>\n\u003Ctd>Methods differ by publisher and are rarely published in full\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Each database combines these differently, and each updates on its own schedule. That is why two databases can disagree about the same address, and why both can be wrong.\u003C\u002Fp>\n\u003Cp>In the Qelka API, \u003Ccode>country\u003C\u002Fcode> and the ASN fields come from IPinfo Lite, updated daily, and \u003Ccode>region\u003C\u002Fcode> and \u003Ccode>city\u003C\u002Fcode> from DB-IP Lite, updated monthly. Both are free databases published under Creative Commons licenses.\u003C\u002Fp>\n\u003Ch2 id=\"what-a-lookup-can-tell-you\">What a lookup can tell you\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Field\u003C\u002Fth>\n\u003Cth>How dependable\u003C\u002Fth>\n\u003Cth>Good uses\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Country\u003C\u002Ftd>\n\u003Ctd>The most dependable part\u003C\u002Ftd>\n\u003Ctd>Default country in forms, currency and language suggestions, country-level rules, comparing with a billing country\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>ASN and organization\u003C\u002Ftd>\n\u003Ctd>Reliable: it comes from routing, not inference\u003C\u002Ftd>\n\u003Ctd>Grouping traffic by network, recognizing cloud providers and mobile carriers\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Network type\u003C\u002Ftd>\n\u003Ctd>A classification of the ASN\u003C\u002Ftd>\n\u003Ctd>Telling servers (hosting) from homes (ISP) and phones (mobile)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Region\u003C\u002Ftd>\n\u003Ctd>Approximate\u003C\u002Ftd>\n\u003Ctd>Analytics, a regional default you let people change\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>City\u003C\u002Ftd>\n\u003Ctd>Approximate, often the network's location\u003C\u002Ftd>\n\u003Ctd>Analytics at an aggregate level, never enforcement\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>The network fields often tell you more than the location fields. An address in a hosting network is a server, whatever city it is in. An address in a mobile network is shared and moves. \u003Ca href=\"\u002Fblog\u002Fvpn-detection\">VPN detection\u003C\u002Fa> builds on those fields.\u003C\u002Fp>\n\u003Ch2 id=\"what-a-lookup-cannot-tell-you\">What a lookup cannot tell you\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Where the person is.\u003C\u002Fstrong> The location belongs to the address block, and a block can serve a city, a region, a country or, for anycast addresses, the whole world.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Who the person is.\u003C\u002Fstrong> Geolocation data contains no names, accounts or street addresses. Only the internet provider can link an address to a subscriber.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Whether a home address is relaying someone else.\u003C\u002Fstrong> Residential proxy networks route traffic through ordinary home connections, which look like any other provider's address.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>What changed since the last release.\u003C\u002Fstrong> A block sold or reassigned last week keeps its previous country, city and holder until the database catches up.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 id=\"coordinates-and-false-precision\">Coordinates and false precision\u003C\u002Fh3>\n\u003Cp>Some services return latitude and longitude for every address. A point on a map looks precise even when the data only knows the country, and a database that knows nothing better may place an address at a default point inside the country. Treat coordinates without a stated accuracy radius as decoration. The Qelka API returns country, region and city, and leaves them \u003Ccode>null\u003C\u002Fcode> when the data has nothing, rather than guessing.\u003C\u002Fp>\n\u003Ch2 id=\"why-a-location-looks-wrong\">Why a location looks wrong\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Situation\u003C\u002Fth>\n\u003Cth>What the lookup shows\u003C\u002Fth>\n\u003Cth>What to do\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Mobile connection\u003C\u002Ftd>\n\u003Ctd>The area of the carrier's gateway, which can be another region\u003C\u002Ftd>\n\u003Ctd>Use the country, ignore the city\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Carrier-grade NAT (RFC 6598)\u003C\u002Ftd>\n\u003Ctd>One public address shared by many customers of the same provider\u003C\u002Ftd>\n\u003Ctd>Never block an address for one user's behavior: you block the others too\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Corporate network\u003C\u002Ftd>\n\u003Ctd>The company's exit point, sometimes in another country\u003C\u002Ftd>\n\u003Ctd>The organization and network type reveal it\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>VPN, proxy or privacy relay\u003C\u002Ftd>\n\u003Ctd>The server's location\u003C\u002Ftd>\n\u003Ctd>Treat the location as unknown when a flag is set\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Anycast address\u003C\u002Ftd>\n\u003Ctd>One location for an address served from many places\u003C\u002Ftd>\n\u003Ctd>The location says nothing useful\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Satellite or long-distance links\u003C\u002Ftd>\n\u003Ctd>The location of the operator's ground infrastructure\u003C\u002Ftd>\n\u003Ctd>Rely on the country at most\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Recently transferred block\u003C\u002Ftd>\n\u003Ctd>The previous holder's location and name\u003C\u002Ftd>\n\u003Ctd>Check again after the next data release\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>IPv4 addresses are scarce and traded between organizations, sometimes across regions, so the last row is common. IPv6 changes the picture in another way: a device may change its address often, as with the temporary addresses of RFC 8981, but geolocation works on prefixes, which stay put.\u003C\u002Fp>\n\u003Ch2 id=\"how-to-judge-an-accuracy-claim\">How to judge an accuracy claim\u003C\u002Fh2>\n\u003Cp>You will see accuracy figures quoted for geolocation. Before trusting one, ask what it measures: country or city, which networks, which countries, measured against what ground truth, and when. City accuracy for home broadband in one country says nothing about mobile traffic elsewhere.\u003C\u002Fp>\n\u003Cp>The figure that matters is the one for your traffic, and you can measure it. Take paid orders with a billing address, look up the IP address of each checkout, and compare countries. Then do the same for cities if you need them. A few hundred orders give you a number that describes your own customers, which no published figure can.\u003C\u002Fp>\n\u003Ch2 id=\"look-up-an-address-with-the-api\">Look up an address with the API\u003C\u002Fh2>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">curl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> https:\u002F\u002Fapi.qelka.com\u002Fv1\u002Fip\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -H\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"Authorization: Bearer \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">$API_KEY\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -H\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"Content-Type: application\u002Fjson\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -d\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> '{\"ip\": \"8.8.8.8\"}'\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-json\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"id\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"lkp_01M84BQ42CYKZT70N43DNMM29E\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"object\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"ip\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"input\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"8.8.8.8\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"version\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">4\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"country\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"code\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"US\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"name\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"United States\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"region\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">null\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"city\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">null\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"asn\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"number\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">15169\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"org\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"Google LLC\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"type\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"hosting\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"flags\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"tor\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"vpn\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"proxy\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"datacenter\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">true\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"risk\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"score\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">35\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"level\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"medium\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"credits_used\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">1\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"cached\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Values are illustrative. This address is a public DNS resolver served by anycast, so a city would be meaningless. The network fields do the talking: a hosting network, flagged as a data center.\u003C\u002Fp>\n\u003Cp>In JavaScript, a function that uses the country only as a default and leaves the city out:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-javascript\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">export\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> async\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> function\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> countryDefault\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">ip\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">acceptLanguage\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> fromLanguage\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \u002F\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#DBEDFF\">-(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">[A-Z]\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">{2}\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#DBEDFF\">)\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">\\b\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\u002F\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">exec\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(acceptLanguage \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">??\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> ''\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)?.[\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">1\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">] \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">??\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> null\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> response\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> await\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> fetch\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'https:\u002F\u002Fapi.qelka.com\u002Fv1\u002Fip'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    method: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'POST'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    headers: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">      Authorization: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">`Bearer ${\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">process\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">env\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">API_KEY\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">}`\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">      'Content-Type'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'application\u002Fjson'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    body: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">JSON\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">stringify\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">({ ip }),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    signal: AbortSignal.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">timeout\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">3000\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">  }).\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">catch\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(() \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=>\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> null\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">response?.ok) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> fromLanguage\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> result\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> await\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> response.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">json\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> anonymized\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> result.flags.vpn \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">||\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> result.flags.proxy \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">||\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> result.flags.tor\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (anonymized \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">||\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> !\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">result.country) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> fromLanguage\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> result.country.code\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The function preselects a country, for a phone field or a shipping form, and falls back to the browser's language when the address is anonymized, private or unknown. Private and loopback addresses, such as \u003Ccode>127.0.0.1\u003C\u002Fcode> in local development, return \u003Ccode>422 unprocessable_input\u003C\u002Fcode> and are not billed. Each lookup costs 1 credit, cached or not, so look an address up once per session, not on every page.\u003C\u002Fp>\n\u003Ch2 id=\"what-to-do-with-the-result\">What to do with the result\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>What you want to do\u003C\u002Fth>\n\u003Cth>Field to use\u003C\u002Fth>\n\u003Cth>How\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Preselect a country in a form\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>country.code\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>As a default the person can change\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Show prices in a local currency\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>country.code\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Suggest, and let the person switch\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Apply a country-level rule, such as licensing\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>country.code\u003C\u002Fcode> plus the flags\u003C\u002Ftd>\n\u003Ctd>Treat flagged traffic as unknown location; offer a way to correct\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Review an order or a signup\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>country.code\u003C\u002Fcode> next to billing country, \u003Ccode>asn.type\u003C\u002Fcode>, flags\u003C\u002Ftd>\n\u003Ctd>A mismatch adds weight to other signals; it proves nothing alone\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Analytics by region\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>region\u003C\u002Fcode>, \u003Ccode>city\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Aggregate only; expect noise\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Find a person or an address\u003C\u002Ftd>\n\u003Ctd>Nothing\u003C\u002Ftd>\n\u003Ctd>Geolocation cannot do this\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch2 id=\"ip-country-next-to-other-country-signals\">IP country next to other country signals\u003C\u002Fh2>\n\u003Cp>The IP country is one of several ways to guess where someone is, and each has its own failure mode. When a decision matters, compare two or three of them instead of trusting one.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Signal\u003C\u002Fth>\n\u003Cth>Where it comes from\u003C\u002Fth>\n\u003Cth>Strength\u003C\u002Fth>\n\u003Cth>Weakness\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>IP country\u003C\u002Ftd>\n\u003Ctd>A geolocation lookup of the connection\u003C\u002Ftd>\n\u003Ctd>Available on every request, no input needed\u003C\u002Ftd>\n\u003Ctd>VPNs, proxies, travel, corporate gateways\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Browser language\u003C\u002Ftd>\n\u003Ctd>The \u003Ccode>Accept-Language\u003C\u002Fcode> header\u003C\u002Ftd>\n\u003Ctd>Reflects the person's settings\u003C\u002Ftd>\n\u003Ctd>Says which language, not which country; many people use English settings everywhere\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Browser time zone\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>Intl.DateTimeFormat().resolvedOptions().timeZone\u003C\u002Fcode> in the page\u003C\u002Ftd>\n\u003Ctd>Follows the device clock, not the network\u003C\u002Ftd>\n\u003Ctd>Easy to change; shared by several countries\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Phone number country\u003C\u002Ftd>\n\u003Ctd>The calling code and ranges of a validated number\u003C\u002Ftd>\n\u003Ctd>Tied to a plan the person subscribed to\u003C\u002Ftd>\n\u003Ctd>People keep their number when they move abroad\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Billing address\u003C\u002Ftd>\n\u003Ctd>What the person typed at checkout\u003C\u002Ftd>\n\u003Ctd>Their own statement\u003C\u002Ftd>\n\u003Ctd>Typed, so it can be false\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Device location\u003C\u002Ftd>\n\u003Ctd>The W3C Geolocation API, with permission\u003C\u002Ftd>\n\u003Ctd>Precise\u003C\u002Ftd>\n\u003Ctd>Needs consent, and only works in the browser or app\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Agreement between independent signals is worth more than any one of them. An IP country, a phone country and a billing country that all match describe a consistent customer. When one disagrees, ask which failure mode explains it: a VPN flag explains a foreign IP, a move abroad explains a foreign phone number. \u003Ca href=\"\u002Fblog\u002Fphone-number-validation\">Phone number validation\u003C\u002Fa> shows how to get the country of a number.\u003C\u002Fp>\n\u003Ch2 id=\"privacy\">Privacy\u003C\u002Fh2>\n\u003Cp>An IP address can identify a person indirectly. In the EU, the Court of Justice held in the Breyer case (C-582\u002F14, 2016) that a dynamic IP address can be personal data for a website operator who has legal means to identify the subscriber through the provider. Treat addresses and their lookups like other personal data: keep what you need, for as long as you need it.\u003C\u002Fp>\n\u003Cp>When you need a precise location, ask for it. The W3C Geolocation API lets a web page request the device's position, and browsers require the user's permission first. That is more accurate than any IP database and it respects the person's choice.\u003C\u002Fp>\n\u003Ch2 id=\"where-to-go-next\">Where to go next\u003C\u002Fh2>\n\u003Cp>The free \u003Ca href=\"\u002Ftools\u002Fip-lookup\">IP lookup\u003C\u002Fa> shows the location and network of any address, and \u003Ca href=\"\u002Ftools\u002Fwhat-is-my-ip\">what is my IP\u003C\u002Fa> shows yours as sites see it. The \u003Ca href=\"\u002Ftools\u002Fasn-lookup\">ASN lookup\u003C\u002Fa> describes the network behind an address. Every field, and the list of addresses that cannot be looked up, is in the \u003Ca href=\"\u002Fdocs\u002Fapi-reference\u002Fip\">IP API reference\u003C\u002Fa>. To use the network fields against fake accounts, read \u003Ca href=\"\u002Fblog\u002Fprevent-fake-signups\">stopping fake signups\u003C\u002Fa>.\u003C\u002Fp>\n",[11,15,18,21,25,28,31,34,37,40,43],{"id":12,"text":13,"depth":14},"where-the-location-in-a-lookup-comes-from","Where the location in a lookup comes from",2,{"id":16,"text":17,"depth":14},"what-a-lookup-can-tell-you","What a lookup can tell you",{"id":19,"text":20,"depth":14},"what-a-lookup-cannot-tell-you","What a lookup cannot tell you",{"id":22,"text":23,"depth":24},"coordinates-and-false-precision","Coordinates and false precision",3,{"id":26,"text":27,"depth":14},"why-a-location-looks-wrong","Why a location looks wrong",{"id":29,"text":30,"depth":14},"how-to-judge-an-accuracy-claim","How to judge an accuracy claim",{"id":32,"text":33,"depth":14},"look-up-an-address-with-the-api","Look up an address with the API",{"id":35,"text":36,"depth":14},"what-to-do-with-the-result","What to do with the result",{"id":38,"text":39,"depth":14},"ip-country-next-to-other-country-signals","IP country next to other country signals",{"id":41,"text":42,"depth":14},"privacy","Privacy",{"id":44,"text":45,"depth":14},"where-to-go-next","Where to go next",[47,50,53,56,59,62,65],{"q":48,"a":49},"How accurate is IP geolocation?","It depends on the level and the network. The country is the most dependable part, because address blocks are registered and routed per organization and country. Region and city are approximate: a database may place an address where its network is registered or routed, which can be far from the user. Mobile networks, VPNs and corporate gateways move it further. Be wary of any single accuracy figure that does not say how it was measured.",{"q":51,"a":52},"Can someone find my home address from my IP address?","Not from public geolocation data. A lookup returns the network that holds the address, its country and an approximate region or city, never a street address or a name. Only your internet provider can link an address to a subscriber, through its own records, and it normally discloses that only under legal process. Sites that need your precise location must ask for it, for example through the browser's geolocation permission.",{"q":54,"a":55},"Why does my IP address show the wrong city?","Usually because the address block is registered or routed somewhere else than where you sit. Mobile carriers send traffic out through a few gateways, internet providers share addresses between customers, companies route staff through a central exit point, and VPNs show the server's location. A block that recently changed hands can also keep its old location until the databases update. The country is usually right even when the city is not.",{"q":57,"a":58},"Is IP geolocation accurate on mobile networks?","Less than on home broadband. Mobile operators route traffic through a small number of gateways and often share one public address between many subscribers behind carrier-grade NAT. The location of the gateway can be a different region from the phone. Use the country from a mobile address and ignore the city. For precise location in a mobile app, ask for the device's location permission instead.",{"q":60,"a":61},"Can a VPN change my IP location?","Yes. A VPN sends your traffic out through its own server, so every site sees the server's address and locates you where the server is. That is why the location of a VPN user says nothing about the person. Detection services flag addresses of known VPN networks, but the flags are best effort: a VPN on an unknown network, or a private one on a home connection, carries no flag.",{"q":63,"a":64},"Is IP geolocation good enough for geo-blocking?","It is the usual tool for country-level rules such as content licensing or showing a local price, and it works for most visitors. It is easy to get around with a VPN or a proxy, and it can misplace travelers and corporate users. Where a rule has legal weight, combine the IP country with stronger evidence, such as a billing address or a verified phone number, and offer a way to correct mistakes.",{"q":66,"a":67},"How often does IP geolocation data change?","Constantly, in small amounts. Internet providers reassign blocks between regions, organizations buy and sell IPv4 space, and cloud providers move ranges between data centers. Databases follow with each release. Of the free databases behind the Qelka API, IPinfo Lite updates daily and DB-IP Lite monthly. Store the location you saw with the date of the lookup, instead of expecting the same answer months later.","2026-11-23",9,1859,{},1795474029009]