# My Geocode > Geocoding, address autocomplete, IP lookup, timezone, elevation and postal code APIs. 2,500 free requests a day, then prepaid credit at €0.0001 a request, or an Unlimited key at €50 a month (€500 a year). One base URL, one JSON format, one price. - Website: https://www.mygeocode.com/ - Base URL: https://api.mygeocode.com/v1/ - Endpoints: GET /v1/forward, /v1/reverse, /v1/autocomplete, /v1/ip, /v1/ipv4, /v1/ipv6, /v1/timezone, /v1/elevation, /v1/postcode - Example: https://api.mygeocode.com/v1/forward?q=Brandenburg+Gate,+Berlin&limit=1 - OpenAPI 3.1 description of every endpoint: https://www.mygeocode.com/openapi.json (also listed in https://www.mygeocode.com/apis.json) - Keys are optional for the free daily requests. CORS is enabled on every endpoint. - 17 drop-in hosts answer other providers' APIs in their own paths and response formats: change one hostname and keep your code. - MCP server for AI agents: https://mcp.mygeocode.com/mcp (docs: https://www.mygeocode.com/docs/mcp/). - Every page is also available as Markdown: add index.md to its address (https://www.mygeocode.com/docs/index.md) or send Accept: text/markdown. All the pages below in one file: https://www.mygeocode.com/llms-full.txt - For agents: how to get access https://www.mygeocode.com/auth.md, the API catalog https://www.mygeocode.com/.well-known/api-catalog and agent skills https://www.mygeocode.com/.well-known/agent-skills/index.json - The public site is also available in Spanish, French, Portuguese, German, Arabic, Chinese, Russian, Japanese and Hindi, under /es/, /fr/, /pt/, /de/, /ar/, /zh/, /ru/, /ja/ and /hi/. ## Documentation - [API documentation](https://www.mygeocode.com/docs/): base URL, request format, the JSON envelope, keys, quotas, headers, CORS and versioning - [Authentication](https://www.mygeocode.com/docs/authentication/): optional keys with 2,500 free requests a day, prepaid credit, Unlimited keys, IP slots, and keys in browsers and apps - [Rate limits and quotas](https://www.mygeocode.com/docs/rate-limits/): free requests, prepaid credit, Unlimited keys, rolling IP slots, what counts as a request and the quota headers - [Errors and status codes](https://www.mygeocode.com/docs/errors/): the JSON error envelope, HTTP status codes, codes such as invalid_key, no_credits and key_ip_limit, and how to handle each - [MCP server](https://www.mygeocode.com/docs/mcp/): remote MCP server at https://mcp.mygeocode.com/mcp for Claude, ChatGPT, Cursor and VS Code, setup steps, keys, the tools, buying credit in crypto, charging and errors - [Forward geocoding](https://www.mygeocode.com/docs/forward-geocoding/): GET /v1/forward parameters, structured queries, country and proximity filters, response fields, precision, curl, JS and Python examples - [Reverse geocoding](https://www.mygeocode.com/docs/reverse-geocoding/): GET /v1/reverse, coordinates in, nearest address out, with level, lang, distance_m and precision - [Address autocomplete](https://www.mygeocode.com/docs/address-autocomplete/): GET /v1/autocomplete, suggestions as the user types with coordinates, precision, proximity and country filters, place_id - [IPv4 lookup](https://www.mygeocode.com/docs/ipv4-lookup/): GET /v1/ipv4, geolocate an IPv4 address or the caller, every response field including ASN and proxy flags, batch lookups - [IPv6 lookup](https://www.mygeocode.com/docs/ipv6-lookup/): GET /v1/ipv6, accepted address forms, the prefix field, IPv4-mapped addresses and batch lookups - [Timezone lookup](https://www.mygeocode.com/docs/timezone-lookup/): GET /v1/timezone, IANA zone, offset, DST and local time for a coordinate, now or at a Unix timestamp, including international waters - [Elevation lookup](https://www.mygeocode.com/docs/elevation-lookup/): GET /v1/elevation, one point or 100 per call, polylines and sampled paths, the 15 arc-second grid, ocean depth - [Postal code lookup](https://www.mygeocode.com/docs/postal-code-lookup/): GET /v1/postcode, a postcode or ZIP code to place, region and coordinates, with normalisation and multi-place codes - [Drop-in compatibility](https://www.mygeocode.com/docs/compatibility/): how the 17 drop-in hosts work, where the key goes, how quotas and errors map, JavaScript map drop-ins and a migration checklist - [SDKs](https://www.mygeocode.com/sdks/): official client libraries for JavaScript, Python, PHP, Go, Java, C#, Ruby and Rust, with install commands, supported versions and release status - [JavaScript SDK](https://github.com/mygeocode/mygeocode-js): official JavaScript and TypeScript client, `npm install mygeocode` (npm: https://www.npmjs.com/package/mygeocode), Node.js 10 or newer, Deno, Bun and browsers, types included, no dependencies - [.NET SDK](https://github.com/mygeocode/mygeocode-dotnet): official C# / .NET client, `dotnet add package MyGeocode` (NuGet: https://www.nuget.org/packages/MyGeocode), .NET Standard 2.0 (.NET Framework 4.6.2 or newer, .NET Core 2.0 or newer, .NET 5 to 11), async, no dependencies - [Go SDK](https://github.com/mygeocode/mygeocode-go): official Go client, `go get github.com/mygeocode/mygeocode-go` (reference: https://pkg.go.dev/github.com/mygeocode/mygeocode-go), Go 1.13 or newer, a context on every call, standard library only - [Java SDK](https://github.com/mygeocode/mygeocode-java): official Java client, Maven `com.mygeocode:mygeocode:1.1.1` (Maven Central: https://central.sonatype.com/artifact/com.mygeocode/mygeocode), Java 8 or newer, normal and async (CompletableFuture) calls, no dependencies - [PHP SDK](https://github.com/mygeocode/mygeocode-php): official PHP client, `composer require mygeocode/mygeocode` (Packagist: https://packagist.org/packages/mygeocode/mygeocode), PHP 7.0 or newer, no dependencies - [Python SDK](https://github.com/mygeocode/mygeocode-python): official Python client, `pip install mygeocode` (PyPI: https://pypi.org/project/mygeocode/), Python 3.6 or newer, normal and asyncio clients, no dependencies - [Ruby SDK](https://github.com/mygeocode/mygeocode-ruby): official Ruby client, `gem install mygeocode` (RubyGems: https://rubygems.org/gems/mygeocode), Ruby 2.4 or newer, Net::HTTP, no dependencies - [Rust SDK](https://github.com/mygeocode/mygeocode-rust): official Rust client, `cargo add mygeocode` (crates.io: https://crates.io/crates/mygeocode, docs: https://docs.rs/mygeocode), Rust 1.63 or newer, async and blocking clients, TLS is the only dependency - [Service status](https://status.mygeocode.com/): live checks every minute of every API endpoint, the drop-in hosts and the website, with uptime for 24 hours, 30 days and 90 days and the incidents of the last 30 days - [Integrations](https://www.mygeocode.com/integrations/): open-source projects with My Geocode as a built-in provider (Traccar from 6.17.0) and the libraries it is being added to, with status, version and setup - [Demo](https://www.mygeocode.com/demo/): try any endpoint in the browser, edit the values and see the JSON response ## APIs - [All APIs](https://www.mygeocode.com/api/): every My Geocode API on one page - [Forward Geocoding API](https://www.mygeocode.com/api/forward-geocoding/): addresses to latitude and longitude with components, bounding box and precision - [Reverse Geocoding API](https://www.mygeocode.com/api/reverse-geocoding/): latitude and longitude to the nearest street address, its distance and precision - [Address Autocomplete API](https://www.mygeocode.com/api/address-autocomplete/): addresses suggested as users type, each with coordinates and a precision level - [IPv4 Lookup API](https://www.mygeocode.com/api/ipv4-lookup/): country, city, coordinates, timezone, ASN and network owner, with datacentre and proxy flags - [IPv6 Lookup API](https://www.mygeocode.com/api/ipv6-lookup/): country, city, coordinates, timezone, ASN, prefix, datacentre and proxy flags for any IPv6 address - [Timezone Lookup API](https://www.mygeocode.com/api/timezone-lookup/): IANA zone, UTC offset, DST and local time for any coordinate, now or at any timestamp - [Elevation Lookup API](https://www.mygeocode.com/api/elevation-lookup/): metres above sea level for one point or 100 per call, global 15 arc-second data, land and sea floor - [Postal Code Lookup API](https://www.mygeocode.com/api/postal-code-lookup/): a postcode or ZIP code to place, region and coordinates in 121 countries ## Drop-in replacements - [All drop-in replacements](https://www.mygeocode.com/compatibility/): 17 geocoding and IP APIs answered in their own paths and response formats, with our data - [Google Maps Platform](https://www.mygeocode.com/compatibility/google-maps/): replace maps.googleapis.com with gapi.mygeocode.com - [Bing Maps REST Services](https://www.mygeocode.com/compatibility/bing-maps/): replace dev.virtualearth.net with bing.mygeocode.com - [HERE Geocoding and Search](https://www.mygeocode.com/compatibility/here/): replace geocode.search.hereapi.com with here.mygeocode.com - [Mapbox Geocoding](https://www.mygeocode.com/compatibility/mapbox/): replace api.mapbox.com with mapbox.mygeocode.com - [TomTom Search](https://www.mygeocode.com/compatibility/tomtom/): replace api.tomtom.com with tomtom.mygeocode.com - [MapQuest Geocoding](https://www.mygeocode.com/compatibility/mapquest/): replace www.mapquestapi.com with mapquest.mygeocode.com - [OpenStreetMap Nominatim](https://www.mygeocode.com/compatibility/nominatim/): replace nominatim.openstreetmap.org with osm.mygeocode.com - [OpenCage](https://www.mygeocode.com/compatibility/opencage/): replace api.opencagedata.com with opencage.mygeocode.com - [LocationIQ](https://www.mygeocode.com/compatibility/locationiq/): replace us1.locationiq.com with locationiq.mygeocode.com - [Geoapify](https://www.mygeocode.com/compatibility/geoapify/): replace api.geoapify.com with geoapify.mygeocode.com - [Geocodio](https://www.mygeocode.com/compatibility/geocodio/): replace api.geocod.io with geocodio.mygeocode.com - [PositionStack](https://www.mygeocode.com/compatibility/positionstack/): replace api.positionstack.com with positionstack.mygeocode.com - [Geocode.Farm](https://www.mygeocode.com/compatibility/geocode-farm/): replace api.geocode.farm with farm.mygeocode.com - [ipinfo.io](https://www.mygeocode.com/compatibility/ipinfo/): replace ipinfo.io with ipinfo.mygeocode.com - [ip-api.com](https://www.mygeocode.com/compatibility/ip-api/): replace ip-api.com with ipapi.mygeocode.com - [ipstack](https://www.mygeocode.com/compatibility/ipstack/): replace api.ipstack.com with ipstack.mygeocode.com - [Open-Elevation](https://www.mygeocode.com/compatibility/open-elevation/): replace api.open-elevation.com with openelevation.mygeocode.com - [JavaScript map drop-ins](https://www.mygeocode.com/compatibility/javascript/): Google Maps, Bing Maps V8, Mapbox GL, MapLibre, Leaflet, HERE and MapQuest.js on My Geocode; loading a library is free, maps use OpenStreetMap tiles, geocoding counts as usual ## Pricing and coverage - [Pricing](https://www.mygeocode.com/pricing/): 2,500 free requests a day per account, then prepaid credit at €0.0001 a request or an Unlimited key at €50 a month or €500 a year; cards and crypto accepted - [Coverage](https://www.mygeocode.com/coverage/): geocoding precision by country for 252 countries and territories (house, street, postcode or region), plus IP, timezone, elevation and postcode coverage - [FAQ](https://www.mygeocode.com/faq/): free requests, signup, prepaid credit, card and crypto payments, IP limits, precision, coverage, caching and drop-in hosts - [Source attributions](https://www.mygeocode.com/attributions/): the open data sources behind My Geocode, with the attribution each publisher asks for and a link to the source ## Open data downloads - [Open data downloads](https://www.mygeocode.com/download/): free downloads of open address and building data by country, as GeoJSON and CSV, each with its publisher's licence - [Albania](https://www.mygeocode.com/download/albania/): address register, cadastral parcels and buildings, geographical names, roads, railways, public services, census and land data from the ASIG geoportal, free under CC BY 4.0 - [Albania: addresses and buildings](https://www.mygeocode.com/download/albania/addresses/): house numbers, the buildings of Tirana, the named roads of the address register, and the census buildings of 2023 and 2011 - [Albania: cadastre](https://www.mygeocode.com/download/albania/cadastre/): cadastral parcels, buildings and zones of the State Cadastre Agency (ASHK) - [Albania: boundaries, map sheets and imagery](https://www.mygeocode.com/download/albania/boundaries/): administrative boundaries from the state border down to towns and villages, map sheet grids and orthophoto coverage - [Albania: places, transport and public services](https://www.mygeocode.com/download/albania/places/): geographical names, road and railway networks, schools, health and public institutions - [Albania: statistics](https://www.mygeocode.com/download/albania/statistics/): INSTAT local government units and population grids from the 2011 and 2023 censuses - [Albania: water and land](https://www.mygeocode.com/download/albania/water-and-land/): rivers, basins, wetlands, dams, protected areas, land use, forests and land cover - [Albania: protected and designated zones](https://www.mygeocode.com/download/albania/zones/): zones set by the Council of Ministers, historic centres, archaeological zones and protected cultural heritage sites - [Albania: environmental monitoring](https://www.mygeocode.com/download/albania/environment/): air, water, noise, soil and forest monitoring networks from 2019 to 2022, and the forest fires of 2022 to 2024 ## Blog - [Blog](https://www.mygeocode.com/blog/): notes on geocoding, IP data and building on the My Geocode API - [Guides](https://www.mygeocode.com/blog/category/guides/): geocode an address list, geolocate visitors, build an elevation profile, find the time zone of a point - [Migration](https://www.mygeocode.com/blog/category/migration/): moving from Google Maps, Bing Maps, Mapbox, ipinfo, ip-api and others, and how to test the switch - [Use cases](https://www.mygeocode.com/blog/category/use-cases/): fraud checks, delivery zones, store finders, local times and analytics - [Data quality](https://www.mygeocode.com/blog/category/data/): coverage by country, accuracy measurements, and how to read the precision and confidence in each answer - [News](https://www.mygeocode.com/blog/category/news/): new endpoints, new drop-in hosts, coverage improvements and changes to pricing or limits - [Our takes](https://www.mygeocode.com/blog/category/our-takes/): opinion on the location data business, pricing, lock-in and privacy ## Optional - [About](https://www.mygeocode.com/about/): a geocoding and IP lookup API with a free allowance that stays free, one price per request and a stated precision on every result - [Contact](https://www.mygeocode.com/contact/): support@mygeocode.com for the API, accounts, billing and data; sales@mygeocode.com for larger deployments - [Terms of service](https://www.mygeocode.com/terms/): accounts, API keys and IP limits, prepaid credit, card and crypto payments, Unlimited packages and drop-in hosts - [Privacy policy](https://www.mygeocode.com/privacy/): what is logged when you use the API and the website, how long it is kept, who it is shared with, and your rights over it - [Site map](https://www.mygeocode.com/sitemap/): every page on www.mygeocode.com - [XML sitemap](https://www.mygeocode.com/sitemap.xml) and [blog sitemap](https://www.mygeocode.com/blog/sitemap.xml): every page in every language