Unified interface to search OpenAlex, Scopus, and/or Crossref for peer-reviewed publications matching a keyword in a specified field. Results from multiple sources are automatically combined and deduplicated by DOI.
Arguments
- query
Character. Keyword or phrase to search for. Matched against the target
fieldin each API.- field
Character. The metadata field to search within. One of:
"abstract": keyword appears in the abstract"affiliation": keyword appears in an author's institutional affiliation"funder": keyword appears in a funding acknowledgment
- sources
Character vector. One or more of
"openalex","scopus","crossref". Defaults to all three.- max_results
Integer. Maximum number of records to return per source. Pagination is handled automatically. Default
500.- deduplicate
Logical. If
TRUE(default), deduplicate across sources by DOI after combining, preferring the richest record. Seepc_deduplicate().- ...
Additional arguments passed to the source-specific search functions (e.g.
email,api_key).
Value
A tibble::tibble() with columns:
- doi
Digital Object Identifier (character)
- title
Article title (character)
- abstract
Article abstract;
NAif unavailable (character)- year
Publication year (integer)
- authors
Author display names (list of character vectors)
- affiliations
Institutional affiliations per author (list of character vectors)
- funders
Funder names (list of character vectors)
- journal
Journal or venue name (character)
- source
API source:
"openalex","scopus", or"crossref"(character)
Examples
if (FALSE) { # \dontrun{
# Search OpenAlex and Crossref for papers with a funder keyword
results <- pc_search(
query = "California Natural Resources Agency",
field = "funder",
sources = c("openalex", "crossref")
)
# Search all sources for an affiliation
results <- pc_search("University of California", field = "affiliation")
} # }