Country Flags Scraper - Flag Images & Data avatar

Country Flags Scraper - Flag Images & Data

Pricing

from $10.00 / 1,000 results

Go to Apify Store
Country Flags Scraper - Flag Images & Data

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

lulz bot

Maintained by Community

Actor 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

FieldDescription
nameCountry name (common)
codeISO 3166-1 alpha-2 code (e.g. US, GB, JP)
regionContinent/region
subregionSub-region (e.g. Northern Europe)
flagUrlPNG flag image URL at selected size
flagSvgUrlSVG flag image URL (vector, scalable)
coatOfArmsUrlCoat of arms SVG/PNG URL
populationCountry population
capitalCapital city name(s)
scrapedAtISO 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


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.

Try Apify free