Skip to contents

Look up a reference in OpenAlex

Usage

openalex_query(title, source = NA, authors = NA, strict = TRUE)

Arguments

title

The title of the work

source

The source (journal or book)

authors

The authors

strict

Whether to return NULL or the best match if there isn't a single match

Value

A data frame with citation info

Examples

# \donttest{
if (online("api.openalex.org")) {
  openalex_query("Sample Size Justification", "Collabra Psychology")
}
#> 1 title/source match
#> # A tibble: 1 × 14
#>   id     doi   relevance_score display_name publication_year type  biblio.volume
#>   <chr>  <chr> <chr>           <chr>        <chr>            <chr> <chr>        
#> 1 https… http… 116.77709       Sample Size… 2022             arti… 8            
#> # ℹ 7 more variables: biblio.issue <chr>, source <chr>, authors <chr>,
#> #   biblio.first_page <chr>, biblio.last_page <chr>, title_match <lgl>,
#> #   source_match <lgl>
# }