← Back to API Ninjas
List 2-letter ISO country codes for all supported countries (premium only).
Returns the 2-letter ISO codes of every supported country. For statistics about a specific country use /country.
API Ninjas·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v1/allcountries"
});
console.log(output);