Skip to main content
Let’s use the OpenAlex API to find journal articles published by authors at Stanford University between 2010 and 2020. No login or API key required for basic queries.
Install a JSON viewer extension like JSONVue to make API responses easier to read in your browser.

1. Find an institution

Search for Stanford University using the institutions endpoint:
The first result has the ID we need:

2. Get a single entity

Fetch the full institution record by ID:
This works for any entity type—works, authors, sources, etc.

3. Find works from Stanford

Filter works to show those with at least one Stanford author:

4. Filter by year and sort

Narrow to 2010-2020 and sort newest first:

5. Group by year

Get counts per year:
Response:

6. Semantic search (optional)

Find conceptually related works using AI:
This finds papers about “AI-driven diagnosis” even if they don’t use the exact words “machine learning.”
Semantic search requires an API key. Basic filtering and searching is free.

7. Download full text (optional)

For works with available content:
Check the has_content.pdf filter to find downloadable works.

Next steps

Works

Journal articles, books, datasets, theses

Authors

Researchers and their publications

Filtering

Narrow results with 150+ filter options

Recipes

Common API patterns and examples
All data is CC0 licensed — free to access and share.