252 CountriesSVG & PNG FlagsCurrenciesPhone CodesCapital Cities

    252 countries with flags, currencies & geo data

    The complete country dataset — ISO codes, flags in SVG/PNG, currencies, phone codes, capital cities, driving side, population, and area. No filter required; all 252 countries available on every plan.

    GET https://aviation-api.logostream.dev/v1/countries?code=DE
    Countries
    252
    Flag Formats
    SVG & PNG
    Available On
    All Plans
    Build faster

    The Countries API for Global Applications

    One endpoint for every country fact your app needs — flags, currencies, phone codes, capital cities, and geo data. No joins, no extra lookups.

    SVG & PNG Flags

    Flags in 1x1 and 4x3 aspect ratios, SVG (scalable) and PNG (fixed pixel width). Served from the logostream CDN.

    Currency Data

    ISO 4217 currency code, full name, and symbol for every country — ready for checkout flows and display.

    Phone Dial Codes

    International dial prefix per country — ideal for phone number input components.

    Capital City Coordinates

    Capital IATA code and lat/lon included — link straight into the Cities or Airports API.

    Geo & Legal Data

    Area, population, landlocked flag, driving side, TLD, and timezone — all in one record.

    Live Demo

    Explore Country Data

    Real records from the Countries API

    How it works

    Fetch Germany + embed the flag

    Currency, phone, capital, geo, and flag URL — one request.

    countries-example.js
    // Fetch country data
    const res = await fetch(
      "https://aviation-api.logostream.dev/v1/countries?code=DE",
      { headers: { "x-api-key": "YOUR_API_KEY" } }
    );
    const { data } = await res.json();
    const country = data[0];
    
    // Country profile
    console.log(country.name);           // "Germany"
    console.log(country.code2);          // "DE"
    console.log(country.code3);          // "DEU"
    console.log(country.continent_code); // "EU"
    console.log(country.capital);        // "Berlin"
    console.log(country.population);     // 83_200_000
    console.log(country.area_km2);       // 357_114
    console.log(country.driving_side);   // "right"
    
    // Currency
    console.log(country.currency_code);   // "EUR"
    console.log(country.currency_symbol); // "€"
    console.log(country.phone_code);      // "49"
    
    // Embed the flag
    const flagUrl = country.flag.url;
    // https://airlines-api.logostream.dev/country/DE?key=YOUR_API_KEY
    document.querySelector("#flag").src = flagUrl;

    Countries API — Frequently Asked Questions

    Everything you need to know about the countries data endpoint.

    Still have questions?

    Our team is happy to help you integrate the Countries API.

    Get in touch