ropensci / openalexR

Getting bibliographic records from OpenAlex
https://docs.ropensci.org/openalexR/
Other
97 stars 21 forks source link

Search by title of paper? #168

Closed JeffreySmithA closed 11 months ago

JeffreySmithA commented 1 year ago

Hi,

I'm currently trying to obtain a list of law scholars' previous work within OpenAlex. I have access to their names, institutions, papers (from Google Scholar), etc.

A lot of the name searches don't work. For other fields I have used DOIs, but many law papers don't have DOIs or ORCIDs. Is there a way to search via paper name?

If not, are there any alternative methods you would be able to recommend please?

Thanks again!

trangdata commented 1 year ago

Is there a way to search via paper name?

You can try title search perhaps? For example, if I want exact search of the phrase "T cell exhaustion", I can try:

library(openalexR)

oa_fetch(
  "works",
  title.search = "\"T cell exhaustion\"",
  options = list(sample = 25)
)
#> # A tibble: 25 × 37
#>    id     display_name author ab    publication_date relevance_score so    so_id
#>    <chr>  <chr>        <list> <chr> <chr>                      <dbl> <chr> <chr>
#>  1 https… Microenviro… <df>   "ABS… 2022-05-26                 1.00  bioR… http…
#>  2 https… Interplay o… <df>   ""    2012-03-26                 0.998 <NA>  <NA> 
#>  3 https… No evidence… <lgl>  ""    1997-02-01                 0.997 Immu… http…
#>  4 https… Abstract 56… <df>   "Abs… 2023-04-04                 0.996 Canc… http…
#>  5 https… A progressi… <df>   "Imm… 2023-04-01                 0.995 Canc… http…
#>  6 https… T-Cell Exha… <df>   "Abs… 2018-09-01                 0.994 Clin… http…
#>  7 https… From T cell… <df>   "The… 2016-01-01                 0.993 Bioc… http…
#>  8 https… FKBPL Is a … <df>   "Hep… 2020-01-01                 0.993 Canc… http…
#>  9 https… Targeting m… <df>   "CD8… 2020-08-11                 0.993 Immu… http…
#> 10 https… T cell exha… <df>   "The… 2017-01-05                 0.993 Cell… http…
#> # ℹ 15 more rows
#> # ℹ 29 more variables: host_organization <chr>, issn_l <chr>, url <chr>,
#> #   pdf_url <chr>, license <chr>, version <chr>, first_page <chr>,
#> #   last_page <chr>, volume <chr>, issue <chr>, is_oa <lgl>,
#> #   is_oa_anywhere <lgl>, oa_status <chr>, oa_url <chr>,
#> #   any_repository_has_fulltext <lgl>, language <chr>, grants <list>,
#> #   cited_by_count <int>, counts_by_year <list>, publication_year <int>, …

Created on 2023-09-22 with reprex v2.0.2