Get a single work
It's easy to get a work from from the API with: /works/<entity_id>
Here's an example:
Get the work with the OpenAlex ID
W2741809807
:https://api.openalex.org/works/W2741809807
That will return a Work
object, describing everything OpenAlex knows about the work with that ID.
You can make up to 50 of these queries at once by requesting a list of entities and filtering on IDs using OR syntax (tutorial).
External IDs
You can look up works using external IDs such as a DOI:
Get the work with this DOI:
https://doi.org/10.7717/peerj.4375
: https://api.openalex.org/works/https://doi.org/10.7717/peerj.4375
You can use the full ID or a shorter Uniform Resource Name (URN) format like so:
Get the work with PubMed ID:
https://pubmed.ncbi.nlm.nih.gov/14907713
: https://api.openalex.org/works/pmid:14907713
Available external IDs for works are:
External ID | URN |
---|---|
DOI |
|
Microsoft Academic Graph (MAG) |
|
PubMed ID (PMID) |
|
PubMed Central ID (PMCID) |
|
You must make sure that the ID(s) you supply are valid and correct. If an ID you request is incorrect, you will get no result. If you request an illegal IDβsuch as one containing a ,
or &
, the query will fail and you will get a 403 error.
Select fields
You can use select
to limit the fields that are returned in a work object. More details are here.
Display only the
id
anddisplay_name
for a work object https://api.openalex.org/works/W2741809807?select=id,display_name
Last updated