DEV Community

Cover image for Fast Country Data Lookup - Secure & API-First
PEAKIQ
PEAKIQ

Posted on • Originally published at peakiq.in

Fast Country Data Lookup - Secure & API-First

Originally published on PEAKIQ

Source: https://www.peakiq.in/showcase/fast-country-data



Country codes, flags, and dial prefixes in one clean place.

A security-hardened country lookup experience for countrycode.peakiq.in, built to stay fast, cache-friendly, and API-first.

The raw JSON dataset is protected β€” search returns only limited matching results instead of exposing the full country list in a single response.


What it does

This country code tool helps developers find dial codes, ISO country codes, unicode flags, and inline SVG flag markup through a searchable web interface and REST API.

Example β€” India

Field Value
Dial code +91
ISO code IN
Unicode U+1F1EE U+1F1F3

Features

πŸ”’ Protected dataset

The raw JSON file is hidden. Search fetches only a small set of matching results, so the full country list is never exposed in a single response.

🏳️ Inline flag preview

SVG flags are rendered inline β€” browsing countries no longer requires a separate flag asset request per country.

⚑ Local-first browsing

After the first page load, search and filtering stay lean so the project remains a clean public showcase.

πŸ› οΈ API access

Use code-based endpoints instead of downloading the full dataset.

GET /api/country/IN          β†’ lookup a single country
GET /api/countries?search=india  β†’ search matching countries
Enter fullscreen mode Exit fullscreen mode

Live endpoints:


Browsing

Browse all countries β†’

Type at least 2 characters to fetch a small set of matching countries from the API.


Powered by peakiq.in

Top comments (0)