Find DOI or PMID in OpenAlex

156 views
Skip to first unread message

Alejandro Fernández del Río

unread,
May 28, 2024, 5:12:50 AM5/28/24
to OpenAlex Community
Hi,
I'm working on two things the first one is searching for academic articles through doi, and I'm trying to do it through the web, but it doesn't let me or I don't know how to do it, do you know if it can be done through the api in python or R.

On the other hand, I would also need to search by PMID and I have the same problem because I don't know how to do a search of several PMIDs through the interface. So I would like to do the search in Python or in R.

If you have any resource or way to do it, I would be very grateful.

Thanks you in advance for rour help!!

Cheers, 
Alex del Río

Donny Winston

unread,
May 28, 2024, 5:39:09 AM5/28/24
to OpenAlex Community

Donny Winston

unread,
May 28, 2024, 5:41:09 AM5/28/24
to OpenAlex Community

Trang Le

unread,
May 28, 2024, 8:50:02 PM5/28/24
to OpenAlex Community
If you're interested in trying this in R, the openalexR package has some helpful examples. I would also recommend this webinar. Kyle gave some excellent tips there in working with the API.

# install.packages("openalexR")
library(openalexR)

works_from_dois <- oa_fetch(
  entity = "works",
  doi = c("10.1016/j.joi.2017.08.007", "https://doi.org/10.1007/s11192-013-1221-3"),
  verbose = TRUE
)
works_from_dois
works_from_pmids <- oa_fetch(
  entity = "works",
  ids.pmid = c(38785209, 38773515),
  verbose = TRUE
)
works_from_pmids

Jason Portenoy

unread,
May 29, 2024, 11:28:45 AM5/29/24
to OpenAlex Community
Hi,

> searching for academic articles through doi, and I'm trying to do it through the web, but it doesn't let me or I don't know how to do it
You should just be able to type or paste the DOI into the search bar. The article will show up, and you can select it. You can also type "doi:<YOUR_DOI>" or "https://doi.org/<YOUR_DOI>"

Jason Portenoy
Reply all
Reply to author
Forward
0 new messages