Groups
Groups
Sign in
Groups
Groups
OpenAlex users
Conversations
About
Send feedback
Help
How to fetch multiple works one time
342 views
Skip to first unread message
able
unread,
Oct 11, 2022, 3:37:57 AM
10/11/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?
Recently DOI was supported by filter. We can use OR, such as:
https://api.openalex.org/works?filter=doi:https://doi.org/10.1371/journal.pone.0266781|https://doi.org/10.1371/journal.pone.0267149
Is there some method to get serveral Works(The IDs we know) one time? like below. But it not woks.
https://api.openalex.org/works?filter=id:W111|W123|W456
thank you~
Sandra M
unread,
Oct 11, 2022, 7:29:59 AM
10/11/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
10/11/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenAlex users
Hi Sandra, thank you very much. It works.
Reply all
Reply to author
Forward
0 new messages