You can get lists of sources:
- Get all sources in OpenAlex
https://api.openalex.org/sources
Which returns a response like this:
{
"meta": {
"count": 226727,
"db_response_time_ms": 32,
"page": 1,
"per_page": 25
},
"results": [
{
"id": "https://openalex.org/S2764455111",
"issn_l": null,
"issn": null,
"display_name": "PubMed Central",
// more fields (removed to save space)
},
{
"id": "https://openalex.org/S4306400806",
"issn_l": null,
"issn": null,
"display_name": "PubMed Central - Europe PMC",
// more fields (removed to save space)
},
// more results (removed to save space)
],
"group_by": []
}
By default we return 25 results per page. You can change this default and page through sources with the per-page
and page
parameters:
- Get the second page of sources results, with 50 results returned per page
https://api.openalex.org/sources?per-page=50&page=2
You also can sort results with the sort
parameter:
- Sort sources by cited by count, descending
https://api.openalex.org/sources?sort=cited\_by\_count:desc
Continue on to learn how you can filter and search lists of sources.
You can use sample
to get a random batch of sources. Read more about sampling and how to add a seed
value here.
- Get 10 random sources
https://api.openalex.org/sources?sample=10
You can use select
to limit the fields that are returned in a list of sources. More details are here.
- Display only the
id
,display_name
andissn
within sources results
https://api.openalex.org/sources?select=id,display_name,issn