REST Countries Scraper - Country Data and Flags avatar

REST Countries Scraper - Country Data and Flags

Pricing

from $19.00 / 1,000 results

Go to Apify Store
REST Countries Scraper - Country Data and Flags

REST Countries Scraper - Country Data and Flags

Scrape country data including names, capitals, populations, currencies, languages, and flags from the REST Countries API. Export structured country records.

Pricing

from $19.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Share

ParseForge Banner

🌍 RestCountries Scraper - Country Data, Flags, Currencies & More

πŸš€ Export the complete world country database in seconds. Get flags, capitals, populations, languages, currencies, timezones, and calling codes for all 250 countries with zero auth required.

The RestCountries Scraper pulls from the RestCountries v3.1 public API and returns 17 fields per record, including the country flag image URL, official name, capital, geographic region, population, area, languages, currencies, timezones, international calling codes, and top-level domains. The underlying data is maintained by the open-source community and covers every sovereign state and territory recognized by the United Nations.

The catalog covers all 6 geographic regions (Africa, Americas, Asia, Europe, Oceania, Antarctic), 250 countries, and includes both the common name and the full official name of each country. This Actor returns a clean, structured dataset ready for download as CSV, Excel, JSON, or XML in seconds - no scraping engineering required.

🎯 Target AudienceπŸ’‘ Primary Use Cases
Developers, data scientists, GIS analysts, educators, product teams, market researchers, e-commerce teamsCountry dropdowns, phone validation, currency conversion, language detection, regional analysis, form autofill, academic research

πŸ“‹ What the RestCountries Scraper does

Four query workflows in a single run:

  • 🌍 Full export. All 250 countries in one shot - flags, capitals, populations, and more.
  • πŸ—ΊοΈ Region filter. Scope to Africa, Americas, Asia, Europe, Oceania, or Antarctic.
  • πŸ” Name search. Find countries matching a full or partial name (e.g. "united" returns USA, UK, UAE, and more).
  • πŸ“¦ Controlled batch size. Use maxItems to limit output for testing or tiered data products.

Each record includes the flag image URL, common and official name, capital city, region and subregion, population, area in kmΒ², official languages, currencies, timezones, international calling codes, top-level domain extensions, and a landlocked indicator.

πŸ’‘ Why it matters: country reference data underlies every global product - from phone number validators to e-commerce checkout forms to analytics dashboards. Rolling your own means hardcoding 250 rows and maintaining it manually. This Actor delivers a live, structured export in one click.

πŸ“Š Data fields

Each record includes: area, callingCodes, capital, currencies, imageUrl, landlocked, languages, name, officialName, population, region, scrapedAt, subregion, timezones, tld, url. All 16 field names come from a real production run, so what you see here is what lands in your dataset.

⚠️ Good to Know: when both region and search are provided, the search parameter takes priority. The RestCountries API performs partial name matching, so "ger" will return Germany, Algeria, and Niger. Set maxItems to a higher value if you expect multiple matches.

πŸš€ How to use

  1. Create a free account w/ $5 credit on Apify (no credit card required).
  2. Open the RestCountries Scraper actor page and click Try for free.
  3. Set region (or search) and maxItems in the input form.
  4. Click Start and wait a few seconds.
  5. Download your dataset as CSV, Excel, JSON, or XML from the Results tab.
ActorWhat it does
OurAirports Scraper85,000+ global airports with ICAO, IATA codes, coordinates, and elevation
Open-Meteo Weather ScraperFree historical and forecast weather data for any coordinates worldwide
World Bank Data ScraperEconomic indicators, GDP, population data from the World Bank open API

πŸ’‘ Pro Tip: browse the complete ParseForge collection for 50+ structured data actors covering aviation, finance, weather, government data, and more - all zero-auth, production-ready, and free to preview.

This Actor is not affiliated with or endorsed by RestCountries or flagcdn.com. It uses only publicly available, unauthenticated API endpoints. Use responsibly and in accordance with the RestCountries terms of service.

πŸ†˜ Need Help?

If you hit a bug, have questions about setup, or need a scraper we haven't built yet, open our contact form or write to parseforge@protonmail.com. We also take on paid custom data projects.

For faster answers, join our Discord. It's the best place to get support and suggest new actors.