How to fetch multiple works one time

342 views
Skip to first unread message

able

unread,
Oct 11, 2022, 3:37:57 AM10/11/22
to OpenAlex users
I know how to get one work. Like this:

Get the work with the OpenAlex ID W2741809807: https://api.openalex.org/works/W2741809807

However, How to fetch multiple works one time?

Is there some method to get serveral Works(The IDs we know) one time? like below. But it not woks. 

thank you~

Sandra M

unread,
Oct 11, 2022, 7:29:59 AM10/11/22
to OpenAlex users
Hi able,

in the docs is a list of available filters for the works endpoint: https://docs.openalex.org/api/get-lists-of-entities/filter-entity-lists#works-attribute-filters
The name for the filter for OpenAlex Ids is called "ids.openalex" or short "openalex", so you can simply change the URL you provided to https://api.openalex.org/works?filter=openalex:W111|W123|W456 and it should work !

Hope this is what you are looking for,
Sandra

able

unread,
Oct 11, 2022, 7:31:58 AM10/11/22
to OpenAlex users
Hi  Sandra, thank you very much. It works.
Reply all
Reply to author
Forward
0 new messages