Country Flags Scraper - Flag Images & Data
Pricing
from $10.00 / 1,000 results
Go to Apify Store

Country Flags Scraper - Flag Images & Data
Scrape country flags in multiple sizes with country data. Get flag images, population, capital, and region info for 250+ countries.
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer
lulz bot
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
Country Flags Scraper
Scrape country flags in multiple sizes along with country data for 250+ countries. Uses flagcdn.com for flag images and restcountries.com for country metadata.
Features
- Multiple flag sizes: Choose from 8 resolutions (20px to 2560px wide)
- Region filtering: Filter by Africa, Americas, Asia, Europe, or Oceania
- Rich data: Population, capital, subregion, coat of arms alongside flags
- SVG support: Each result includes both PNG and SVG flag URLs
- Fast: Single API call fetches all countries at once
Output Fields
| Field | Description |
|---|---|
name | Country name (common) |
code | ISO 3166-1 alpha-2 code (e.g. US, GB, JP) |
region | Continent/region |
subregion | Sub-region (e.g. Northern Europe) |
flagUrl | PNG flag image URL at selected size |
flagSvgUrl | SVG flag image URL (vector, scalable) |
coatOfArmsUrl | Coat of arms SVG/PNG URL |
population | Country population |
capital | Capital city name(s) |
scrapedAt | ISO timestamp |
Input Options
- Region: Filter by continent (all, Africa, Americas, Asia, Europe, Oceania)
- Flag Image Size: PNG width in pixels (w20 to w2560)
- Limit: Max countries to return (0 = all)
Use Cases
- Education: Build interactive geography apps with flag images
- Localization: Populate country selectors with flags and metadata
- Data enrichment: Add flag images and population data to country datasets
- Design: Download flag images in bulk at consistent sizes
- Analytics: Country population and regional data for dashboards
Example Output
{"name": "Japan","code": "JP","region": "Asia","subregion": "Eastern Asia","flagUrl": "https://flagcdn.com/w320/jp.png","flagSvgUrl": "https://flagcdn.com/jp.svg","coatOfArmsUrl": "https://mainfacts.com/media/images/coats_of_arms/jp.svg","population": 125836021,"capital": "Tokyo","scrapedAt": "2026-04-26T12:00:00.000Z"}
Data Sources
- flagcdn.com -- Free, open-source country flag images
- REST Countries -- Free REST API for country data
Run on Apify
This scraper runs on the Apify platform -- a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.