- By Country Name
https://country-flags-topaz.vercel.app/api/getCountryFlagByCountryName?countryName=Portugal
<img src="https://country-flags-topaz.vercel.app/api/getCountryFlagByCountryName?countryName=Portugal" height="150">
- By ISO2Code
https://country-flags-topaz.vercel.app/api/getCountryFlagByISO2Code?iso2code=AU
<img src="https://country-flags-topaz.vercel.app/api/getCountryFlagByISO2Code?iso2code=AU" height="150">
- By ISO3Code
https://country-flags-topaz.vercel.app/api/getCountryFlagByISO3Code?iso3code=DEU
<img src="https://country-flags-topaz.vercel.app/api/getCountryFlagByISO3Code?iso3code=DEU" height="150">
- By Nationality
https://country-flags-topaz.vercel.app/api/getCountryFlagByNationality?nationality=Indian
<img src="https://country-flags-topaz.vercel.app/api/getCountryFlagByNationality?nationality=Indian" height="150">
-
By Nationality- https://country-flags-topaz.vercel.app/api/getCountryByNationality
-
By Name- https://country-flags-topaz.vercel.app/api/getFlagUrlByCountryName
-
By ISO2 Code- https://country-flags-topaz.vercel.app/api/getFlagUrlByISO2Code
-
By ISO3 Code- https://country-flags-topaz.vercel.app/api/getFlagUrlByISO3Code
-
All Countries- https://country-flags-topaz.vercel.app/api/getAllCountries
api/getAllCountries
const res = await axios({
method: "GET",
headers: {
"Content-Type": "application/json",
},
url: `api/getAllCountries`,
});
api/getCountryByNationality
const res = await axios({
method: "POST",
headers: {
"Content-Type": "application/json",
},
url: `api/getCountryByNationality`,
data: JSON.stringify({ nationality: "Australian" }),
});
api/getFlagUrlByCountryName
const res = await axios({
method: "POST",
headers: {
"Content-Type": "application/json",
},
url: `api/getFlagUrlByCountryName`,
data: JSON.stringify({ countryName: "Australia" }),
});
api/getFlagUrlByISO2Code
const res = await axios({
method: "POST",
headers: {
"Content-Type": "application/json",
},
url: `api/getFlagUrlByISO2Code`,
data: JSON.stringify({ iso2Code: "AU" }),
});
api/getFlagUrlByISO3Code
const res = await axios({
method: "POST",
headers: {
"Content-Type": "application/json",
},
url: `api/getFlagUrlByISO3Code`,
data: JSON.stringify({ iso3Code: "AU" }),
});
Check out Next.js deployment documentation for more details.