Get lists of works
You can get lists of works:
Get all of the works in OpenAlex
https://api.openalex.org/works
Which returns a response like this:
Page and sort works
You can page through works and change the default number of results returned with the page
and per-page
parameters:
Get a second page of results with 50 results per page
https://api.openalex.org/works?per-page=50\&page=2
You can sort results with the sort
parameter:
Sort works by publication year
https://api.openalex.org/works?sort=publication\_year
Continue on to learn how you can filter and search lists of works.
Sample works
You can use sample
to get a random batch of works. Read more about sampling and how to add a seed
value here.
Get 20 random works
https://api.openalex.org/works?sample=20
Select fields
You can use select
to limit the fields that are returned in a list of works. More details are here.
Display only the
id
anddisplay_name
within works resultshttps://api.openalex.org/works?select=id,display\_name
Last updated