Developer Resources
Developer Blog
Tutorials, comparisons, and API guides
IP Geolocation in React Native and Expo — Detect Country Without Exposing API Keys
How to add IP-based country detection to a React Native or Expo app. Learn why you must never bundle API keys in mobile apps, and how to use a simple backend proxy to safely call ApogeoAPI from iOS and Android.
IP Geolocation in SvelteKit — Server-Side Country Detection and Currency Display
How to add IP geolocation to a SvelteKit app. Covers a server hook for automatic country detection, a +page.server.ts loader, a Svelte store, and currency localisation with load() functions.
Python IP Geolocation with requests — Country Detection and Currency Localisation
How to get IP geolocation data in Python using the requests library. Covers single-IP lookup, batch patterns, subnet caching, async with httpx, and combining IP country with currency exchange rates.
WordPress IP Geolocation: Detect Country and Localize Content
How to add IP geolocation to WordPress — show different content, prices, or messages based on visitor country. Covers a free plugin, plain PHP, WooCommerce currency switching, and Gutenberg block patterns.
Geo-Redirect: Country-Based URL Routing and Regional Redirects
How to redirect users to country-specific URLs, regional subdomains, or localized pages based on IP geolocation. Covers Next.js, Nginx, Cloudflare, and Express.js redirect patterns.
Phone Dial Code Country Selector in React with Auto-Detection
Build a phone number input with country dial code selector in React. Auto-detect visitor country from IP, show correct flag and dial code, and validate international phone numbers.
Geo-Based A/B Testing and Feature Flags: Show Features by Country
How to use IP geolocation to show different features, pricing, or UI by country. Implement country-based feature flags without a third-party service, using just IP detection.
Countries REST API: Get Country Data, Flags, Currencies, and More
A guide to building with the ApogeoAPI Countries endpoint. Get country name, flag, dial code, capital, currency, languages, and more for all 250 countries in one REST API.
Get Timezone from IP Address in JavaScript and Node.js
How to detect a visitor's timezone from their IP address in JavaScript and Node.js. Use IANA timezone for date/time formatting, scheduling, and showing local time — with caching patterns.
Stripe Checkout with Localized Currency: Show Prices by Country
How to show localized prices in Stripe Checkout based on visitor country. Detect country from IP, convert USD price to local currency, and pass it to Stripe Checkout Session.
IP Geolocation in Remix: Country Detection and Localized Pricing
How to detect visitor country from IP in Remix loaders, show localized prices with live exchange rates, and set geo cookies at the edge. Works on Cloudflare Pages and Vercel.
Country Flags API: Display Country Flags in HTML and CSS
How to display country flags in web apps using API-sourced SVG flags, CSS emoji flags, and flag CDNs. Covers flag by country code, IP-based flag detection, and accessible flag components.
Currency Conversion API: JavaScript and Python Examples with Live Rates
How to convert currencies with a REST API in JavaScript and Python. Covers live exchange rates, caching, formatting currency amounts, and combining currency conversion with IP geolocation.
IP Geolocation in AWS Lambda with Node.js: Country Detection Guide
How to add IP geolocation to AWS Lambda functions: detect country, city, and currency from the caller's IP using ApogeoAPI. Covers API Gateway, ALB, CloudFront, and Lambda@Edge patterns.
IP Geolocation in Cloudflare Workers: Country Detection Without an API Call
Cloudflare injects country data into every Worker request for free. Learn how to use cf.country, add currency lookup from ApogeoAPI, and build geo-aware edge functions without extra latency.
How to Localize SaaS Pricing by Country: Implementation Guide
Learn how to show localized prices by country in your SaaS app. Detect user country from IP, convert USD prices to local currency, and handle purchasing power parity — with code examples.
How to Detect Country from IP Address in JavaScript (Browser + Node.js)
Step-by-step guide to detecting a visitor's country from their IP address in JavaScript — browser fetch, Node.js, Next.js middleware, and React hook patterns with caching.
Best Free IP Geolocation APIs in 2026: Features, Limits, and Trade-offs
Comprehensive comparison of free IP geolocation APIs: ApogeoAPI, ipinfo.io, ip-api.com, and ipstack. Covers free tier limits, HTTPS support, accuracy, and which one to choose.
IP Geolocation Middleware for Express.js: Country Detection and Currency Rates
Build a production Express.js middleware for IP geolocation — with node-cache subnet caching, currency localization helpers, and TypeScript support.
IP Geolocation in Spring Boot: Country Detection with RestTemplate and Caffeine Cache
Build a production-ready GeoService in Spring Boot using RestTemplate, Spring Cache with Caffeine, a WebFilter for per-request country injection, and Thymeleaf helpers.
IP Geolocation in Django: Country Detection, Currency, and Middleware
Add IP geolocation to Django projects with a reusable GeoService, a Django middleware for automatic country injection, and template tags for localized pricing.
IP Geolocation in Angular: Country Detection Service, HTTP Interceptor, and Pipe
Build a production-ready Angular service for IP geolocation and live currency rates — with RxJS caching, an HTTP interceptor for automatic country injection, and a currency pipe.
IP Geolocation in Next.js 14: Middleware, App Router, and Edge Runtime
Detect visitor country in Next.js 14 using Edge Middleware — no cold starts, no server-side secrets exposure. Redirect, localize prices, and gate content in one file.
IP Geolocation in Laravel and PHP: Country, Currency, and Exchange Rates
Add IP geolocation to Laravel 10/11 apps with a reusable GeoService, middleware for per-request country detection, and Blade helpers for currency-localized pricing.
Country Detection in Vue 3: IP Geolocation with Pinia and Composables
A Vue 3 composable for IP geolocation and currency detection — with Pinia store, SSR support via Nuxt, and a country selector component that initializes from the visitor's location.
IP Geolocation in Go: Detect Country and Currency with One API Call
A production-ready Go implementation for IP geolocation and live exchange rates — with sync.Map caching, graceful fallback, and a net/http middleware pattern.
Flutter & Dart IP Geolocation: Detect Country from IP in Mobile Apps
How to get country, currency, and timezone from an IP address in Flutter and Dart — using http package, Dio, a Dart backend proxy, and caching with shared_preferences.
Rust IP Geolocation: reqwest, Actix-Web and Axum Examples
How to look up country, city and timezone from an IP address in Rust using reqwest, with async caching, Actix-Web middleware, and an Axum extractor. Production-ready patterns.
Kotlin IP Geolocation: Ktor, Spring Boot, and Android Examples
How to detect country, city and timezone from an IP address in Kotlin using Ktor client, Spring Boot WebClient, and coroutines. Includes caching, middleware, and Android usage.
Show Cookie Consent Only to EU Visitors Using IP Geolocation (GDPR)
How to detect EU visitors by IP and conditionally show a GDPR cookie consent banner — with Next.js, React, vanilla JS, and server-side patterns. Avoid showing the banner to non-EU users.
Next.js App Router IP Geolocation: Server Components, Route Handlers & Middleware
Complete guide to IP geolocation in Next.js 14+ App Router — reading country from middleware headers in Server Components, Route Handlers, and edge functions without extra API calls.
C# .NET IP Geolocation: ASP.NET Core, HttpClient & Minimal API Examples
How to get country, city and coordinates from an IP address in C# and ASP.NET Core using the ApogeoAPI REST API. Includes HttpClient setup, DI integration, typed response models, and middleware.
Nuxt 3 IP Geolocation: Server Middleware, useAsyncData & Country Detection
How to detect a visitor's country from their IP in Nuxt 3 — using server middleware, H3 event utilities, useAsyncData, and composables. Covers SSR, ISR and edge deployments.
IP Geolocation and Live Currency in Ruby on Rails: A Practical Guide
How to detect a visitor's country and local currency in a Rails app using a single API call — with Rails.cache integration, an ApplicationController concern, and a locale-aware price helper.
IP Geolocation in Python with FastAPI: Detect Country, City & Currency in 15 Lines
How to detect a visitor's country, city, and local currency from their IP address in a FastAPI app — with Redis caching, Django example, and a subnet-based quota strategy.
Automating Geo-Enrichment Workflows with n8n + ApogeoAPI
How to use the ApogeoAPI community node for n8n to auto-enrich IPs with location data, normalize CRM currencies, and send localized welcome emails — without writing a line of backend code.
Geo-Redirect Users at the Edge with Vercel + ApogeoAPI in 10 Lines
Detect a visitor's country before your page renders and route them to the right locale. Works on every Vercel plan, no extra runtime cost. Full code below.
Localize Stripe Prices to the Visitor's Currency in 25 Lines
Stripe charges in whatever currency you set. But for conversion, you want to SHOW prices in the visitor's currency at the live FX rate. Here's how with Stripe + ApogeoAPI.
Country Dropdown for Tailwind / shadcn — Drop-In Component
A production-ready country dropdown with flags, search, and accessibility. Tailwind classes only, no extra deps. Copy-paste into your project.
Cloudflare Workers + ApogeoAPI: Country Detection at the Edge in 30 Lines
Cloudflare Workers run in 300+ cities. Combine with ApogeoAPI for country, city, and live FX data anywhere. Full code with KV caching.
Shopify Currency Widget with Live Exchange Rates (No App Required)
Show prices in the visitor's currency on your Shopify store using ApogeoAPI. Free, no monthly app fee, no theme lock-in. Just JavaScript.
Astro Middleware: Detect Visitor Country in 15 Lines (with ApogeoAPI)
Astro's middleware API lets you geo-personalize content before it ships to the visitor. Here's a complete drop-in implementation with ApogeoAPI + caching.
SvelteKit Localized Pricing with ApogeoAPI in 30 Lines (Server Hooks)
Show prices in the visitor's local currency in SvelteKit using server hooks. Zero client-side flicker, full TypeScript types, free tier compatible.
Webhooks for Country Data Changes — Get Notified When ISO Codes Update
ApogeoAPI exposes webhooks so your downstream caches can react to country, state, or city updates instead of polling. Setup, payload spec, and signature verification.
Free IP Geolocation API in 2026 — Top 5 Compared
Comparing the best free IP geolocation APIs in 2026: ipstack, ip-api.com, ipinfo.io, Abstract API, and ApogeoAPI. Which one is actually free for production?
How to Build a Phone + Flag Selector in React (with Country Codes)
Step-by-step tutorial: build a phone number input with country flag and dial code in React using the ApogeoAPI countries endpoint. TypeScript included.
Exchange Rate API Free Tier — Which Ones Actually Work in 2026
Honest comparison of free exchange rate APIs: Open Exchange Rates, Frankfurter, ExchangeRate-API, and ApogeoAPI. What's truly free and what are the gotchas.
How to Detect User Country from IP in Node.js (2026)
Tutorial: detect a user's country, city, and timezone from their IP address in Node.js using ApogeoAPI. Express.js and Next.js edge function examples.
Countries, States, and Cities API — Complete Guide 2026
Everything you need to know about using a countries, states, and cities API. Comparison of options, code examples, and how to build cascading dropdowns.
Timezone API by Country — Full Guide 2026
How to get timezone data by country using a free API. Code examples for converting times, handling multiple timezones per country, and caching strategies.
IP Geolocation for Fraud Detection — A Developer's Guide
How to use IP geolocation to detect fraud, enforce geo-restrictions, and flag suspicious signups. Node.js examples with risk scoring.
The Best RestCountries Alternative in 2026
RestCountries is great for basic country data. But if you need cities, exchange rates, or IP geolocation — here's why developers switch to ApogeoAPI.
How to Localize Prices in React Using Exchange Rates
Tutorial: show product prices in the user's local currency automatically in React. Uses IP geolocation to detect currency + live exchange rates. TypeScript.
How to Build a Country Selector in React with ApogeoAPI
A step-by-step tutorial to build a searchable country selector dropdown in React using the ApogeoAPI countries endpoint. Includes flags, ISO codes, and TypeScript types.
Building a City Autocomplete with 150K Cities — Tutorial
How to build a city search autocomplete in React using a cities API. Includes debouncing, pagination, and showing country + state context. TypeScript.
GeoDB Cities Alternative — Simpler API, Better Price
Tired of GeoDB Cities limits and RapidAPI pricing? ApogeoAPI offers the same 150K+ cities with a simple REST API, plus exchange rates and IP geo. Free trial.
ipstack Alternative — Free IP Geolocation API with Geographic Data
Looking for an ipstack alternative? ApogeoAPI includes IP geolocation plus countries, states, cities, and live exchange rates — all in one API. Free 14-day trial.
Add Live Exchange Rates to Your App in 5 Minutes
Tutorial: fetch live USD exchange rates for 161 currencies using ApogeoAPI. Show prices in the user's local currency with a single API call.
Open Exchange Rates Alternative — Live Rates + Geo Data Bundled
Looking for an Open Exchange Rates alternative? ApogeoAPI gives you live exchange rates for 161 currencies plus country data, cities, and IP geolocation in one API.
Ready to try ApogeoAPI?
Free tier forever. 14-day trial with full access to all features. No credit card required.
Get your free API key