VOOZH about

URL: https://apify.com/crawlerbros/rest-countries-scraper

โ‡ฑ REST Countries Scraper ยท Apify


Pricing

from $3.00 / 1,000 results

Go to Apify Store

REST Countries Scraper

Scrape REST Countries, the free public API for country metadata. Get name, capital, population, area, currencies, languages, borders, region/subregion, flags, timezones, calling codes, and more for all 250 ISO countries. HTTP-only, no auth, no proxy.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

8 days ago

Last modified

Share

Scrape REST Countries โ€” the free public API for country metadata. All 250 ISO countries, with name (common + official + native), capital, population, area, currencies, languages, borders, region/subregion, flags (emoji + PNG + SVG), timezones, calling codes, TLDs, lat/lng, and more. HTTP-only via the public restcountries.com/v3.1 API. No auth, no proxy.

What this actor does

  • Seven modes: all, byNames, byAlphaCodes, byRegion, bySubregion, byCurrency, byLanguage
  • Filters: min population, min area (kmยฒ), UN members only, independent states only
  • Auto-resolves alpha-2 / alpha-3 / numeric codes
  • Empty fields are omitted

Output per country

  • Names: commonName, officialName, altSpellings[], demonym
  • ISO codes: cca2, cca3, ccn3, cioc, fifaCode
  • Status: independent, unMember, status, landlocked
  • Capital: capital[], capitalPrimary
  • Geography: region, subregion, continents[], borders[], latitude, longitude
  • Demographics: population, areaKm2
  • Symbols: flagEmoji (๐Ÿ‡ฉ๐Ÿ‡ช), flagPng, flagSvg, coatOfArmsPng, coatOfArmsSvg
  • Currency / language: currencies[] (code + name + symbol), currencyCodes[], languageCodes[], languageNames[]
  • Communications: timezones[], callingCodes[], tlds[]
  • Maps: googleMapsUrl, openStreetMapsUrl
  • recordType: "country", scrapedAt

Input

FieldTypeDefaultDescription
modestringallOne of seven modes
namesarrayโ€“Country names (mode=byNames)
alphaCodesarrayโ€“Alpha-2/3 codes (mode=byAlphaCodes)
regionstringโ€“Continental region
subregionstringโ€“Subregion (e.g. Western Europe)
currencystringโ€“ISO 4217 (mode=byCurrency)
languagestringโ€“Language name or ISO code
minPopulationintโ€“Drop countries below this
minAreaintโ€“Drop countries below this kmยฒ
unMembersOnlyboolfalseโ€“
independentOnlyboolfalseExcludes territories
maxItemsint250Hard cap (1โ€“500)

Example: all UN member states with population > 10M

{
"mode":"all",
"minPopulation":10000000,
"unMembersOnly":true
}

Example: lookup specific countries

{
"mode":"byAlphaCodes",
"alphaCodes":["DE","FR","ES","IT","GB","PT"]
}

Example: all Eurozone countries

{
"mode":"byCurrency",
"currency":"EUR"
}

Example: all Spanish-speaking countries

{
"mode":"byLanguage",
"language":"spanish"
}

Use cases

  • Geographic dropdowns โ€” populate forms with all countries, sorted by region
  • Lookup tables โ€” alpha-2 โ†” alpha-3 โ†” numeric ISO mappings
  • Phone-number formatting โ€” callingCodes[] for international dialing
  • Flag UI โ€” flagEmoji for inline display, flagSvg for high-DPI
  • Currency converter โ€” group countries by currency for FX UIs
  • i18n โ€” group countries by official language

FAQ

Is the REST Countries API free? Yes. Self-hosted, no auth, no rate limits beyond reasonable use.

What's the difference between cca2 / cca3 / ccn3 / cioc? ISO 3166-1 alpha-2 (DE), alpha-3 (DEU), numeric (276), and IOC (GER) codes respectively.

Why does mode=all require many requests of fields? REST Countries v3.1+ requires explicit fields= parameter for /all to keep payloads small. The actor sends a comprehensive list โ€” every field documented above.

How many countries are there? 250 entries (includes territories, dependencies, Antarctic). For sovereign UN states only, set unMembersOnly: true (193 entries).

What's cioc? International Olympic Committee code. Only set for countries that compete in the Olympics.

Why is latitude / longitude sometimes missing? REST Countries returns latlng: ["bad", "data"] for a few entries. The actor handles this gracefully.

How fresh is the data? Updated periodically (manual edits by maintainers). For real-time political changes, supplement with a different source.

You might also like

REST Countries Scraper

compute-edge/countries-scraper

Extract data on 250+ countries including population, capital, currencies, languages, region, area, timezones, and calling codes from the REST Countries API. No authentication required.

REST Countries Info Scraper

parseforge/restcountries-info-scraper

Export 250+ countries with population, capital, area, currencies, languages, borders, demonyms, flags, region, subregion, and timezones. Query all, by name, region, language, currency, or independence status. Open dataset, no auth.

REST Countries Scraper

gio21/rest-countries-scraper

Scrape REST Countries API: all 250 countries with names, capital, population, area, currencies, languages, timezones, flags, neighbors, calling codes. Great for forms, dashboards, education.

REST Countries Scraper - Country Data and Flags

parseforge/restcountries-scraper

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

REST Countries Reference Data Scraper

parseforge/rest-countries-scraper

Pull rich reference data on every country: official + common names, capital, currencies, languages, region, demonym, calling code, top-level domain, area, population, flag, coat-of-arms, timezones, borders, IDD. Filter by name, code, region, or currency.