Skip to main content
The UN Sustainable Development Goals give a shared framework for classifying research by societal impact. OpenAlex tags works with SDGs automatically, so you can map the global landscape with a handful of group_by calls. We’ll compare India and Brazil to show how national research priorities diverge.

Step 1: See the global distribution

Group all works by SDG to see where the world’s research effort goes:
Health dominates globally — SDG 3 accounts for more tagged works than the next two combined.

Step 2: Compare two countries

Filter by country code and group by SDG. Run one call per country:
Each call returns the same shape — SDGs ranked by output. The rankings reveal different national priorities:
#IndiaBrazil
1Good health and well-beingGood health and well-being
2Affordable and clean energyQuality education
3Zero hungerZero hunger
4Clean water and sanitationLife on land
5Life on landPeace, justice, and strong institutions
Both countries lead with health and food security, but India’s #2 is energy while Brazil’s is education. Brazil’s emphasis on “Life on land” (#4) reflects its Amazon-related research.

Step 3: Track a specific SDG over time

Pick an SDG and group by year to see growth trends. Here’s SDG 13 (Climate Action):
Climate research output grew steadily from 2015 to 2019, dipped briefly, then surged to a new high in 2024.

Step 4: Find leading institutions

Group by institution within an SDG to find who’s producing the most research:

Full script

This script compares any two countries’ SDG profiles side by side:
Works can be tagged with multiple SDGs, so percentages across all goals will sum to more than 100%. The shares still show relative emphasis — a country with 15% in energy vs. 5% is investing proportionally more research effort there.