All datasets

Proportion of population with access to electricity, by urban/rural (%)

Proportion of population with access to electricity, by urban/rural (%) SDG indicator EG_ACS_ELEC (SDG goal 7). Source: UN SDG Global Database. Rows are geo-area x year x disaggregation dimensions (sex, age, location/urban-rural where published).

Source: UN SDG Global Database18,240 rowsUpdated: 9/21/2026
electricityenergy-accesssdg7

Quality

97

Attribution

United Nations Statistics Division, SDG Global Database

Schema

ColumnTypeDescription
datetimestampStart date of the observation year (UN SDG API field timePeriodStart).
yearintegerYear of observation (UN SDG API field timePeriodStart).
series_idstringStable row key: geo-area code plus the SDG dimension codes for this observation.
series_labelstringHuman-readable label: geo-area name plus the UN SDG API dimension code descriptions for this observation.
geo_area_codestringUN SDG API field geoAreaCode (UN M49 area code; aggregates such as regions and income groups use codes like 2 for Africa).
geo_area_namestringGeo-area name (UN SDG API field geoAreaName).
locationstringDisaggregation dimension from the UN SDG API (dimension 'Location'). Provider code values include: RURAL: Rural; ALLAREA: All areas; URBAN: Urban.
reporting_typestringDisaggregation dimension from the UN SDG API (dimension 'Reporting Type'). Provider code values include: N: National; G: Global.
unitstringMeasurement unit description from the UN SDG API 'Units' attribute metadata for this series.
data_naturestringNature of the data point from the UN SDG API 'Nature' attribute metadata (e.g. Country data, Estimated data, Modelled data, Global monitoring data).
sourcestringSource credit from the UN SDG API record (UN SDG API field source). Runs of 10+ digits are stripped from this per-row credit because they falsely trip the platform's phone-number PII heuristic; the full verbatim citation is preserved in the dataset description.
valuefloatEstimate value for the geo-area, year and disaggregation dimensions, as published in the UN SDG Global Database (UN SDG API field value). Definition and unit are those of the SDG series — see the dataset description.

Sample rows

dateyearseries_idseries_labelgeo_area_codegeo_area_namelocationreporting_typeunitdata_naturesourcevalue
2000-01-01T00:00:0020001.ALLAREA.GWorld — All areas — Global1WorldALLAREAGPercentageNon-relevantWorld Bank78.4
2001-01-01T00:00:0020011.ALLAREA.GWorld — All areas — Global1WorldALLAREAGPercentageNon-relevantWorld Bank78.8
2002-01-01T00:00:0020021.ALLAREA.GWorld — All areas — Global1WorldALLAREAGPercentageNon-relevantWorld Bank79.2
2003-01-01T00:00:0020031.ALLAREA.GWorld — All areas — Global1WorldALLAREAGPercentageNon-relevantWorld Bank80.1
2004-01-01T00:00:0020041.ALLAREA.GWorld — All areas — Global1WorldALLAREAGPercentageNon-relevantWorld Bank80.1

Download sample data

Download the full sample snapshot for this dataset (sample rows, not the complete dataset).

Use with an LLM

Point any LLM at the metadata endpoint — the documentation above is machine-readable too (JSON-LD + Croissant).

cURL

curl "https://datazimuts.com/v1/datasets/unsdg/electricity_access" | jq '{title, rows, columns_count, license}'

Python

import requests

ds = requests.get("https://datazimuts.com/v1/datasets/unsdg/electricity_access").json()
print(ds["title"], ds["rows"], "rows")

# Sample rows for an LLM context window
for row in ds.get("sample_rows", [])[:5]:
    print(row)

API endpoint: https://datazimuts.com/v1/datasets/unsdg/electricity_access

Tip: fetch /llms.txt for the full machine-readable catalog.