Skills/Economic & Demographic Data/Resolve a country code

Resolve a country code

~2 credits / lookup (up to 4)

Looks up a country by name and returns its standard data code, along with its geographic region and income classification. Also useful for listing or grouping countries by region or income level.

Use when

You need a country's code, or want to group or list countries by region or income level.

Not for

Fetching indicator values (use the indicator lookup, which resolves the code for you).

Cost

~2 credits / lookup (up to 4)

Resolving one country is the usual case; listing all countries returns the full set.

Estimated; the actual charge depends on your input and is shown in the response.

What it accepts

Set these inside the intent when you run it.

placerequired

The country name to resolve, or a region or income level to list countries for.

What you get back

The country's code, region, income level, and capital for the matched name.

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the Economic & Demographic Data skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/economic-data/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"resolve_country","place":"South Korea"}}'

Example requests

  • What is the code for South Korea?
  • List all countries in Sub-Saharan Africa.
  • Which countries are classified as lower-middle income?