Country Flags Scraper (250+ Countries, 8 Sizes) avatar

Country Flags Scraper (250+ Countries, 8 Sizes)

Pricing

from $9.00 / 1,000 result items

Go to Apify Store
Country Flags Scraper (250+ Countries, 8 Sizes)

Country Flags Scraper (250+ Countries, 8 Sizes)

Fetch country flag image URLs in multiple sizes (16, 24, 32, 48, 64, 80, 96, 128, 160, 192, 256 pixels) plus SVG vector format. Get ISO 3166-1 alpha-2 codes and country names. Export to JSON, CSV, or Excel for apps, dashboards, ecommerce localization, and i18n design pipelines.

Pricing

from $9.00 / 1,000 result items

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 hours ago

Last modified

Share

ParseForge Banner

🏳️ Country Flags CDN Scraper

πŸš€ Export CC-BY country flag URLs in seconds. Pull 250+ country flags at 8 resolutions (w20 to w2560) with localized country names in 9 languages. CDN-hosted PNGs, no rate limits.

πŸ•’ Last updated: 2026-05-23 Β· πŸ“Š 7 fields per record Β· 🏳️ 250+ countries Β· πŸ–ΌοΈ 8 resolutions Β· 🌍 9 languages

The Country Flags CDN Scraper queries the public FlagCDN catalog, the most widely used CC-BY licensed flag CDN online. It returns 7 structured fields per record, including the preview URL, ISO 3166-1 alpha-2 country code, localized country name, language code, the full flag URL set at the chosen resolutions, and the scrape timestamp.

The catalog covers 250+ countries and territories including all UN member states, dependencies, observer states (e.g. EU, XK), and select non-sovereign codes (e.g. UN). Eight raster resolutions (w20, w40, w80, w160, w320, w640, w1280, w2560) ship per country, plus localized country names in English, Spanish, French, German, Italian, Portuguese, Chinese, Japanese, and Korean. Downloadable as CSV, Excel, JSON, or XML.

🎯 Target AudienceπŸ’‘ Primary Use Cases
Travel and booking platforms, edtech, dashboards, language-learning apps, news outlets, civic-tech, design systems, internationalized SaaSCountry picker dropdowns, dashboard country tiles, language-learning flashcards, travel-app country chips, news topic icons, internationalized email templates

πŸ“‹ What the Country Flags CDN Scraper does

Two lookup workflows in a single run:

  • πŸ–ΌοΈ Flag URLs mode. Per-country PNG URLs at every resolution you request, plus an ISO code and localized country name.
  • 🌐 Codes mode. Compact reference: just the alpha-2 code and localized country name.
  • 🌍 Localization. Country names are returned in your chosen language (en, es, fr, de, it, pt, zh, ja, ko).
  • 🎯 Country filter. Optional alpha-2 list to scope the run to a subset of countries.
  • πŸ“ Resolution picker. Choose any subset of the 8 supported widths.

Each record bundles the preview URL (defaults to w320), country code, localized name, language, the full URL set keyed by width, and the scrape timestamp.

πŸ’‘ Why it matters: every country picker, every dashboard tile, every language flashcard app needs flag assets. Self-hosting means paying for storage and bandwidth, plus tracking flag-design updates. This Actor delivers a CC-BY URL set you can plug directly into any UI, with zero hosting cost.


🎬 Full Demo

🚧 Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded dataset.


βš™οΈ Input

InputTypeDefaultBehavior
maxItemsinteger10Records to return. Free plan caps at 10, paid plan at 1,000,000.
modestring"flagUrls"One of flagUrls (full URL set) or codes (compact reference).
languagestring"en"Localization for the country name field. 9 languages supported.
countriesarray[]Optional ISO 3166-1 alpha-2 filter. Empty returns all 250+.
resolutionsarray["w80","w160","w320","w640"]PNG widths to include. Pick any subset of the 8 supported.

Example: full flag set for the G7 in English.

{
"maxItems": 7,
"mode": "flagUrls",
"language": "en",
"countries": ["US", "GB", "DE", "FR", "IT", "CA", "JP"],
"resolutions": ["w80", "w160", "w320", "w640", "w1280"]
}

Example: every country with Spanish names, codes only.

{
"maxItems": 300,
"mode": "codes",
"language": "es"
}

⚠️ Good to Know: flags are CC-BY licensed PNGs hosted on a CDN. Attribution to the source CDN is appreciated and detailed on their site. Smaller resolutions (w20-w160) are ideal for inline UI badges; w640+ for hero images and presentations.


πŸ“Š Output

Each record contains 7 fields. Download the dataset as CSV, Excel, JSON, or XML.

🧾 Schema

FieldTypeExample
πŸ–ΌοΈ flagPreviewUrlstring"https://flagcdn.com/w320/de.png"
πŸ†” countryCodestring"DE"
🏳️ countryNamestring"Germany"
🌍 languagestring"en"
πŸ“ flagUrlsobject{ "w80": "...", "w160": "...", "w320": "..." }
πŸ”§ modestring"flagUrls"
πŸ•’ scrapedAtISO 8601"2026-05-23T10:00:00.000Z"

πŸ“¦ Sample records


✨ Why choose this Actor

Capability
🏳️250+ countries. UN members, dependencies, observer states, EU and UN codes.
πŸ–ΌοΈ8 resolutions. From w20 favicon-size to w2560 hero-image-size in one record.
🌍9 languages. Country names localized to English, Spanish, French, German, Italian, Portuguese, Chinese, Japanese, Korean.
πŸ“¦CDN-hosted. No rate limits, no hotlink-blocking, ready to drop into any frontend.
βš–οΈCC-BY licensed. Commercial reuse permitted with attribution to the source.
🎯Country filter. Pass an alpha-2 list to scope to your supported markets.
🚫No authentication. Works against the public CDN catalog. No login or API key needed.

πŸ“Š Flags are the universal visual shorthand for countries. Good flag UX makes country pickers, dashboards, and language tools instantly readable.


πŸ“ˆ How it compares to alternatives

ApproachCostCoverageRefreshSetup
⭐ Country Flags CDN Scraper (this Actor)$5 free credit, then pay-per-use250+ countries, 8 sizesLive per run⚑ 2 min
Self-host flag PNGsStorage + bandwidthBuild it yourselfManualπŸ› οΈ Hours
Emoji flagsFreeLimited, font-dependentStatic⏳ Inconsistent across OS
Commercial icon packs$50+StylizedStaticπŸ’Έ Per-developer license

Pick this Actor when you want CDN-hosted CC-BY flags ready for production without hosting your own assets.


πŸš€ How to use

  1. πŸ“ Sign up. Create a free account with $5 credit (takes 2 minutes).
  2. 🌐 Open the Actor. Go to the Country Flags CDN Scraper page on the Apify Store.
  3. 🎯 Set input. Pick a mode, a language, an optional country filter, and the resolutions you need. Set maxItems.
  4. πŸš€ Run it. Click Start and let the Actor collect your data.
  5. πŸ“₯ Download. Grab your results in the Dataset tab as CSV, Excel, JSON, or XML.

⏱️ Total time from signup to downloaded dataset: 3-5 minutes. No coding required.


πŸ’Ό Business use cases

✈️ Travel & Booking

  • Country picker dropdowns with flag icons
  • Destination tiles on home pages
  • Booking confirmation emails with country branding
  • Localized landing pages per market

πŸ“š Edtech & Language Learning

  • Flag flashcards for geography lessons
  • Language-learning country chips
  • Cultural studies course materials
  • Quiz apps and trivia games

πŸ“Š Dashboards & Analytics

  • Country tiles in KPI dashboards
  • Geographic distribution charts
  • User-base maps and visualizations
  • Internationalized admin panels

🌐 SaaS & E-commerce

  • Localized billing currency badges
  • International shipping selectors
  • Multi-language settings UI
  • Country-specific feature toggles

πŸ”Œ Automating Country Flags CDN Scraper

Control the scraper programmatically for scheduled runs and pipeline integrations:

  • 🟒 Node.js. Install the apify-client NPM package.
  • 🐍 Python. Use the apify-client PyPI package.
  • πŸ“š See the Apify API documentation for full details.

The Apify Schedules feature lets you trigger this Actor on any cron interval. A quarterly refresh keeps your flag catalog in sync with any design updates.


🌟 Beyond business use cases

Country flags are foundational visual data. The same structured records support research, education, civic projects, and personal initiatives.

πŸŽ“ Research and academia

  • Geography and political-science coursework
  • International relations visualizations
  • Open-data exercises on country reference sets
  • Multilingual UX studies

🎨 Personal and creative

  • Travel scrapbooks and photo journals
  • Personal blogs with country tagging
  • Custom map prints and infographics
  • Hobbyist geography quiz apps

🀝 Non-profit and civic

  • Humanitarian aid dashboards
  • Election monitoring visualizations
  • International advocacy campaigns
  • Refugee resettlement program tooling

πŸ§ͺ Experimentation

  • Train image-recognition models on flags
  • Prototype language-learning agents
  • Build country-aware browser extensions
  • Test internationalized email templates

πŸ€– Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:


❓ Frequently Asked Questions

🧩 How does it work?

Pick a mode (flagUrls or codes), choose a language and optional country filter, select the resolutions you need, click Start, and the Actor emits one clean structured record per country.

πŸ“ How accurate is the data?

ISO 3166-1 alpha-2 codes are the global standard. Country names are localized translations maintained by the source CDN. For unrecognized regions or contested territories, the catalog follows ISO conventions.

πŸ” How often is the dataset refreshed?

The catalog updates whenever country flag designs change, which is rare (a handful of times per decade). Every run pulls the live URL set so any new entries flow through.

🌍 How many countries are supported?

250+ entries, including all UN member states, dependent territories, observer states (EU, XK), and select non-sovereign codes (UN).

πŸ–ΌοΈ What resolutions are available?

Eight PNG widths: w20, w40, w80, w160, w320, w640, w1280, w2560. Pick any subset per run.

⏰ Can I schedule regular runs?

Yes. Use Apify Schedules to run this Actor on any cron interval. A quarterly cron keeps your flag catalog fresh.

Flags are public symbols and the PNG renditions are CC-BY licensed. Commercial use is permitted with attribution to the CDN provider. Check the source for the exact license text.

πŸ’Ό Can I use this data commercially?

Yes, CC-BY licensed for commercial reuse with attribution.

πŸ’³ Do I need a paid Apify plan to use this Actor?

No. The free Apify plan is enough for testing and small runs (10 records per run). A paid plan lifts the limit and unlocks scheduling, higher concurrency, and full-catalog pulls of all 250+ countries.

🌏 Does it cover dependencies and territories?

Yes. The catalog includes dependencies (e.g. PR, GU, GL), observer states (EU, XK), and special codes (UN). The countries filter accepts any alpha-2 code in the catalog.

πŸ†˜ What if I need help?

Our support team is here to help. Contact us through the Apify platform or use the Tally form linked below.


πŸ”Œ Integrate with any app

Country Flags CDN Scraper connects to any cloud service via Apify integrations:

  • Make - Automate multi-step workflows
  • Zapier - Connect with 5,000+ apps
  • Slack - Get run notifications in your channels
  • Airbyte - Pipe flag URL sets into your warehouse
  • GitHub - Trigger runs from commits and releases
  • Google Drive - Export datasets straight to Sheets

You can also use webhooks to refresh your design-system flag asset catalog on every run.


πŸ’‘ Pro Tip: browse the complete ParseForge collection for more reference-data scrapers.


πŸ†˜ Need Help? Open our contact form to request a new scraper, propose a custom data project, or report an issue.


⚠️ Disclaimer: this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by FlagCDN or any flag-asset provider. All trademarks mentioned are the property of their respective owners. Only publicly available CC-BY licensed flag assets are referenced.