GDP per capitaIn constant international-$
Related research and writing
Related charts
Download
Quick download
Download the data shown in this chart as a ZIP file containing a CSV file, metadata in JSON format, and a README. The CSV file can be opened in Excel, Google Sheets, and other data analysis tools.
Data API
Use these URLs to programmatically access this chart's data and configure your requests with the options below. Our documentation provides more information on how to use the API, and you can find a few code examples below.
Data URL (CSV format)
https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.csv?v=1&csvType=full&useColumnShortNames=falseMetadata URL (JSON format)
https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.metadata.json?v=1&csvType=full&useColumnShortNames=falseExcel / Google Sheets
=IMPORTDATA("https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.csv?v=1&csvType=full&useColumnShortNames=false")Python with Pandas
import pandas as pd
import requests
# Fetch the data.
df = pd.read_csv("https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.csv?v=1&csvType=full&useColumnShortNames=false", storage_options = {'User-Agent': 'Our World In Data data fetch/1.0'})
# Fetch the metadata
metadata = requests.get("https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.metadata.json?v=1&csvType=full&useColumnShortNames=false").json()R
library(jsonlite)
# Fetch the data
df <- read.csv("https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.csv?v=1&csvType=full&useColumnShortNames=false")
# Fetch the metadata
metadata <- fromJSON("https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.metadata.json?v=1&csvType=full&useColumnShortNames=false")Stata
import delimited "https://datapage-v2.owid.pages.dev/grapher/gdp-per-capita-worldbank.csv?v=1&csvType=full&useColumnShortNames=false", encoding("utf-8") clear