Sample entity lists
You can use
sampleto get a random list of up to 10,000 results.
- Get 50 random works that are open access and published in 2021 https://api.openalex.org/works?filter=open_access.is_oa:true,publication_year:2021&sample=50&per-page=50
You can add a
seedvalue in order to retrieve the same set of random records, in the same order, multiple times.
Depending on your query, random results with a seed value may change over time due to new records coming into OpenAlex.
- The sample size is limited to 10,000 results.
- You must provide a
seedvalue when paging beyond the first page of results. Without a seed value, you might get duplicate records in your results.