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.
Field | Type | Description | Example |
---|---|---|---|
Country Name | string | Official country or territory name. | Finland |
Country Code | string (ISO3) | ISO 3166-1 alpha-3 code. | FIN |
Region | string | World Bank region group. | Europe & Central Asia |
Income Level | string | World Bank income group. | High income |
Population, total | integer | Total national population. | 5,541,274 |
Composite GEFRI Score | number | Overall readiness score (0–100). | 85.3 |
Infrastructure Score | number | Infrastructure readiness score. | 92.7 |
Human Capital Score | number | Human capital score. | 89.5 |
Equity Score | number | Equity/gender parity score. | 81.2 |
Innovation Score | number | Innovation/R&D score. | 79.0 |
Governance Score | number | Governance score. | 88.5 |
[Dimension] Confidence | string | "High", "Moderate", or "Low". | High |
FCV Status | boolean | Fragile/conflict-affected/violent country flag. | false |
FCV Type | string/null | Type of FCV (if applicable). | "Conflict" |
Last Updated | string (YYYY-MM-DD) | Last update date. | 2025-05-18 |
indicator_details (array, per-country only): Each object contains:
Field | Type | Description | Example |
---|---|---|---|
indicator_code | string | Indicator code. | SP.POP.TOTL |
indicator_name | string | Full name. | Population, total |
component | string | GEFRI dimension. | Infrastructure |
year | integer/null | Data year. | 2023 |
reported_value | number/null | Reported value. | 41454761 |
data_source | string | Source or imputation. | World Bank |
normalized_value | number/null | Normalized to 0–100. | 91.2 |
global_percentile | string/null | Global percentile ("84th"). | 84th |
regional_percentile | string/null | Regional percentile. | 63rd |
notes | string | Notes (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 Alias | Actual Field |
---|---|
score | Composite GEFRI Score |
equity | Equity Score |
innovation | Innovation Score |
infra | Infrastructure Score |
human | Human Capital Score |
governance | Governance Score |
LAC | Latin America & Caribbean |
SA | Latin America & Caribbean |
South America | Latin America & Caribbean |
EAP | East Asia & Pacific |
MENA | Middle East & North Africa |
NA | North America |
Use these aliases for convenience in your queries.
Notes and attribution
- Data is updated monthly. Indicators are sourced from open data (primarily World Bank Open Data).
- Please cite Education Futures and link to https://gefri.educationfutures.com when using GEFRI in research or applications.
- For feedback or collaboration, contact us.