Country Flags Scraper (250+ Countries, 8 Sizes)
Pricing
from $9.00 / 1,000 result items
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 hours ago
Last modified
Categories
Share

π³οΈ 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 SaaS | Country 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
| Input | Type | Default | Behavior |
|---|---|---|---|
| maxItems | integer | 10 | Records to return. Free plan caps at 10, paid plan at 1,000,000. |
| mode | string | "flagUrls" | One of flagUrls (full URL set) or codes (compact reference). |
| language | string | "en" | Localization for the country name field. 9 languages supported. |
| countries | array | [] | Optional ISO 3166-1 alpha-2 filter. Empty returns all 250+. |
| resolutions | array | ["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
| Field | Type | Example |
|---|---|---|
πΌοΈ flagPreviewUrl | string | "https://flagcdn.com/w320/de.png" |
π countryCode | string | "DE" |
π³οΈ countryName | string | "Germany" |
π language | string | "en" |
π flagUrls | object | { "w80": "...", "w160": "...", "w320": "..." } |
π§ mode | string | "flagUrls" |
π scrapedAt | ISO 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
| Approach | Cost | Coverage | Refresh | Setup |
|---|---|---|---|---|
| β Country Flags CDN Scraper (this Actor) | $5 free credit, then pay-per-use | 250+ countries, 8 sizes | Live per run | β‘ 2 min |
| Self-host flag PNGs | Storage + bandwidth | Build it yourself | Manual | π οΈ Hours |
| Emoji flags | Free | Limited, font-dependent | Static | β³ Inconsistent across OS |
| Commercial icon packs | $50+ | Stylized | Static | πΈ 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
- π Sign up. Create a free account with $5 credit (takes 2 minutes).
- π Open the Actor. Go to the Country Flags CDN Scraper page on the Apify Store.
- π― Set input. Pick a mode, a language, an optional country filter, and the resolutions you need. Set
maxItems. - π Run it. Click Start and let the Actor collect your data.
- π₯ 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
π Automating Country Flags CDN Scraper
Control the scraper programmatically for scheduled runs and pipeline integrations:
- π’ Node.js. Install the
apify-clientNPM package. - π Python. Use the
apify-clientPyPI 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.
π€ Ask an AI assistant about this scraper
Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:
- π¬ ChatGPT
- π§ Claude
- π Perplexity
- π Copilot
β 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.
βοΈ Is this data legal to use?
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.
π Recommended Actors
- π Nominatim OSM Scraper - Geocode addresses via OpenStreetMap
- π¬ OurAirports Global Airport Database Scraper - Global aviation reference dataset
- π± Frankfurter FX Rates Scraper - ECB-derived foreign-exchange rates
- π¦ IBAN Bank Codes Scraper - IBAN structures and ISO country codes
- π Indexmundi Scraper - Global demographic and economic indicators
π‘ 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.