Developer Resources

Developer Blog

Tutorials, comparisons, and API guides

React NativeExpoMobileGeolocationTutorial

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.

May 14, 20265 min read
Read article
SvelteKitJavaScriptGeolocationTutorial

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.

May 14, 20265 min read
Read article
PythonGeolocationTutorial

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.

May 14, 20265 min read
Read article
WordPressPHPGeolocationTutorial

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.

May 14, 20266 min read
Read article
GeolocationRedirectURL RoutingTutorial

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.

May 14, 20265 min read
Read article
ReactPhoneCountries APITutorial

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.

May 14, 20265 min read
Read article
A/B TestingFeature FlagsIP GeolocationTutorial

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.

May 14, 20265 min read
Read article
Countries APIREST APITutorial

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.

May 14, 20265 min read
Read article
TimezoneIP GeolocationJavaScriptNode.jsTutorial

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.

May 14, 20265 min read
Read article
StripePaymentsIP GeolocationCurrencyTutorial

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.

May 14, 20267 min read
Read article
RemixIP GeolocationCountry DetectionTutorial

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.

May 14, 20266 min read
Read article
FlagsCountries APIHTMLCSSTutorial

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.

May 14, 20265 min read
Read article
CurrencyExchange RatesJavaScriptPythonTutorial

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.

May 14, 20266 min read
Read article
AWS LambdaServerlessIP GeolocationNode.jsTutorial

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.

May 14, 20266 min read
Read article
Cloudflare WorkersEdge ComputingIP GeolocationTutorial

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.

May 14, 20265 min read
Read article
SaaSPricingCurrencyLocalizationTutorial

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.

May 14, 20268 min read
Read article
JavaScriptIP GeolocationCountry DetectionTutorial

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.

May 14, 20267 min read
Read article
IP GeolocationFree TierComparisonAPI

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.

May 14, 20266 min read
Read article
Node.jsExpressTutorialGeolocationMiddleware

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.

May 14, 20265 min read
Read article
JavaSpring BootTutorialGeolocationAPI

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.

May 14, 20266 min read
Read article
PythonDjangoTutorialGeolocationAPI

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.

May 14, 20266 min read
Read article
AngularTypeScriptTutorialGeolocationRxJS

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.

May 14, 20266 min read
Read article
Next.jsReactTutorialGeolocationEdge

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.

May 14, 20266 min read
Read article
PHPLaravelTutorialGeolocationAPI

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.

May 14, 20266 min read
Read article
VueVue 3TutorialGeolocationNuxt

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.

May 14, 20265 min read
Read article
GoGolangTutorialGeolocationAPI

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.

May 14, 20265 min read
Read article
FlutterDartMobileGeolocationTutorial

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.

May 14, 20265 min read
Read article
RustActix-WebAxumGeolocationTutorial

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.

May 14, 20266 min read
Read article
KotlinKtorSpring BootGeolocationTutorial

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.

May 14, 20266 min read
Read article
GDPRGeolocationComplianceTutorial

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.

May 14, 20265 min read
Read article
Next.jsApp RouterGeolocationTutorial

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.

May 14, 20267 min read
Read article
C#.NETASP.NET CoreGeolocationTutorial

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.

May 14, 20266 min read
Read article
Nuxt.jsVue.jsGeolocationTutorial

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.

May 14, 20266 min read
Read article
Ruby on RailsRubyTutorialGeolocationExchange Rates

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.

May 12, 20265 min read
Read article
PythonFastAPITutorialGeolocationExchange Rates

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.

May 12, 20266 min read
Read article
n8nAutomationTutorialGeolocationExchange Rates

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.

May 12, 20267 min read
Read article
Next.jsVercelEdge

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.

April 28, 20266 min read
Read article
StripePricingTutorial

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.

April 28, 20267 min read
Read article
TailwindshadcnReact

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.

April 28, 20265 min read
Read article
CloudflareWorkersEdge

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.

April 28, 20266 min read
Read article
ShopifyCurrencyTutorial

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.

April 28, 20266 min read
Read article
AstroTutorialEdge

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.

April 28, 20265 min read
Read article
SvelteKitTutorialPricing

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.

April 28, 20265 min read
Read article
WebhooksArchitectureTutorial

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.

April 28, 20266 min read
Read article
IP GeolocationComparisonFree APIs

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?

April 2, 20266 min read
Read article
ReactTutorialPhone Codes

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.

April 1, 20267 min read
Read article
Exchange RatesComparisonFree APIs

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.

March 31, 20265 min read
Read article
Node.jsTutorialIP Geolocation

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.

March 30, 20265 min read
Read article
APICountriesTutorial

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.

March 29, 20266 min read
Read article
TimezonesAPITutorial

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.

March 28, 20265 min read
Read article
IP GeolocationSecurityTutorial

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.

March 27, 20266 min read
Read article
APIRestCountriesComparison

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.

March 26, 20264 min read
Read article
ReactExchange RatesTutorial

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.

March 25, 20265 min read
Read article
ReactTutorialCountries

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.

March 24, 20266 min read
Read article
ReactCitiesTutorial

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.

March 23, 20266 min read
Read article
Cities APIComparisonGeoDB

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.

March 22, 20264 min read
Read article
IP GeolocationComparisonipstack

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.

March 21, 20264 min read
Read article
TutorialExchange RatesJavaScript

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.

March 20, 20265 min read
Read article
Exchange RatesComparisonOpen Exchange Rates

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.

March 19, 20264 min read
Read article

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