https://api.openalex.org/works?filter=is_oa:true&group_by=institutions.country_code
[email protected]
parameter in your API request, like this: https://api.openalex.org/[email protected]mailto:[email protected]
somewhere in your User-Agent request header.page
query parameter to control which page of results you want (eg page=1
, page=2
, etc). By default there are 25 results per page; you can use the per-page
parameter to change that to any number between 1 and 200.cursor=*
parameter-value pair to your query.https://api.openalex.org/works?filter=publication_year:2020&per-page=100&cursor=*
next_cursor
value in the response's meta
object. Here's what it looks like: meta.next_cursor
value into the cursor field of your next request.https://api.openalex.org/works?filter=publication_year:2020&per-page=100&cursor=IlsxNjA5MzcyODAwMDAwLCAnaHR0cHM6Ly9vcGVuYWxleC5vcmcvVzI0ODg0OTk3NjQnXSI=
meta.next_cursor
. You'll use this new value the same way you did the first, and it'll give you the second page of results. To get all the results, keep repeating this process until meta.next_cursor
is null and the results
set is empty.