GEFRI API documentation

The Global Education Futures Readiness Index (GEFRI) API provides open access to country-level and global summary data, enabling researchers, developers, and policymakers to analyze, compare, and download up-to-date GEFRI results. The API is public and requires no authentication.

Version: 1.0   |   Format: JSON

Base endpoint

/api/gefri

All queries start with this endpoint.

Quick start: Example queries

  • Get all countries (global summary):
    curl https://gefri.educationfutures.com/api/gefri
  • Get Aruba's full profile (by ISO3 code):
    curl https://gefri.educationfutures.com/api/gefri?code=ABW
  • Get multiple countries by code:
    curl "https://gefri.educationfutures.com/api/gefri?codes=USA,FIN,BRA"
  • Get all countries in Latin America & Caribbean, sorted by score (descending):
    curl "https://gefri.educationfutures.com/api/gefri?region=lac&sort=score&order=desc"
  • Return only selected fields (country code and composite score):
    curl "https://gefri.educationfutures.com/api/gefri?fields=country code,score"
  • Return only specific indicators for a country:
    curl "https://gefri.educationfutures.com/api/gefri?code=ABW&indicators=SE.SEC.UNER.LO.ZS,EG.ELC.ACCS.ZS"

Basic usage & query parameters

  • All countries (default):
    /api/gefri
  • Single country by ISO3 code:
    /api/gefri?code=FIN
  • Multiple countries by ISO3 code:
    /api/gefri?codes=FIN,USA,BRA
  • By region (case-insensitive, supports aliases like "LAC", "EAP"):
    /api/gefri?region=lac
  • Sort results (default is descending for numbers):
    /api/gefri?sort=score&order=asc
  • Return specific top-level fields only:
    /api/gefri?fields=country name,score,region
  • Get aliased fields (shortnames):
    /api/gefri?shortnames=true

Country-level indicators

  • Filter indicator details (by code, comma-separated, case-insensitive):
    /api/gefri?code=ABW&indicators=SE.SEC.UNER.LO.ZS,EG.ELC.ACCS.ZS
  • indicator_details array is included only in country-level results.

Sorting

  • Sort by any field:
    /api/gefri?sort=score&order=desc
  • Sort ascending:
    /api/gefri?sort=score&order=asc
  • Sort alphabetically:
    /api/gefri?sort=Country Name&order=asc

Response structure & error handling

{
  "level": "country",
  "count": 1,
  "data": {
    "Country Name": "Aruba",
    "Country Code": "ABW",
    "Region": "Latin America & Caribbean",
    "Composite GEFRI Score": 67.8,
    // ...other fields...
    "indicator_details": [
      {
        "indicator_code": "SP.POP.TOTL",
        "indicator_name": "Population, total",
        "component": "Infrastructure",
        "year": 2023,
        "reported_value": 41454761,
        "data_source": "World Bank",
        "normalized_value": 91.2,
        "global_percentile": "84th",
        "regional_percentile": "63rd",
        "notes": ""
      }
      // ...etc...
    ]
  }
}

Error Handling: If a request is invalid, the response includes an "error" key with a descriptive message. For example:
{ "error": "Country code not found" }

Data dictionary

Each object in the GEFRI API includes the following fields. Field availability may vary. All scores are normalized on a 0–100 scale unless otherwise noted.

FieldTypeDescriptionExample
Country NamestringOfficial country or territory name.Finland
Country Codestring (ISO3)ISO 3166-1 alpha-3 code.FIN
RegionstringWorld Bank region group.Europe & Central Asia
Income LevelstringWorld Bank income group.High income
Population, totalintegerTotal national population.5,541,274
Composite GEFRI ScorenumberOverall readiness score (0–100).85.3
Infrastructure ScorenumberInfrastructure readiness score.92.7
Human Capital ScorenumberHuman capital score.89.5
Equity ScorenumberEquity/gender parity score.81.2
Innovation ScorenumberInnovation/R&D score.79.0
Governance ScorenumberGovernance score.88.5
[Dimension] Confidencestring"High", "Moderate", or "Low".High
FCV StatusbooleanFragile/conflict-affected/violent country flag.false
FCV Typestring/nullType of FCV (if applicable)."Conflict"
Last Updatedstring (YYYY-MM-DD)Last update date.2025-05-18

indicator_details (array, per-country only): Each object contains:

FieldTypeDescriptionExample
indicator_codestringIndicator code.SP.POP.TOTL
indicator_namestringFull name.Population, total
componentstringGEFRI dimension.Infrastructure
yearinteger/nullData year.2023
reported_valuenumber/nullReported value.41454761
data_sourcestringSource or imputation.World Bank
normalized_valuenumber/nullNormalized to 0–100.91.2
global_percentilestring/nullGlobal percentile ("84th").84th
regional_percentilestring/nullRegional percentile.63rd
notesstringNotes (if any).

Notes:
- indicator_details only appears in per-country API results.
- data_source is always included for traceability.
- Percentiles are returned as ordinal strings ("84th", "63rd"), not numbers.

Supported aliases

Query AliasActual Field
scoreComposite GEFRI Score
equityEquity Score
innovationInnovation Score
infraInfrastructure Score
humanHuman Capital Score
governanceGovernance Score
LACLatin America & Caribbean
SALatin America & Caribbean
South AmericaLatin America & Caribbean
EAPEast Asia & Pacific
MENAMiddle East & North Africa
NANorth America

Use these aliases for convenience in your queries.

Notes and attribution