Show different content, pricing, or calls-to-action to visitors from different countries — entirely client-side, no server required.
Showing different content to visitors from different countries typically requires server-side rendering or a CDN with edge logic — both of which add architectural complexity. Static sites, SPAs, and CDN-hosted frontends have no straightforward way to personalise content by country out of the box. The result is a single generic experience for every visitor, regardless of their location.
VisitorAPI returns the visitor’s countryCode — an ISO 3166-1 alpha-2 code like "GB" or "AU" — from a client-side API call in ~25ms. Your frontend reads the code and conditionally renders the appropriate content. Because the call happens in the browser, it works on any static site, SPA, or CDN-hosted page with no backend changes.
data.countryCode — a two-letter country code, e.g. "GB" or "AU"Select the option that fits your stack — each links to full documentation and setup instructions.
Start using VisitorAPI today and enhance your website with intelligent visitor detection.