This function searches various NCBI databases using the E-utilities API via the rentrez package.
ncbi_search(
query,
database = "pubmed",
max_results = 1000,
use_mesh = FALSE,
date_range = NULL,
api_key = NULL,
retry_count = 3,
retry_delay = 2
)A data frame containing the search results with IDs, titles, and other metadata.
Character string containing the search query.
Character string. The NCBI database to search (e.g., "pubmed", "pmc", "gene", "protein").
Maximum number of results to return.
Logical. If TRUE, will attempt to map query terms to MeSH terms (for PubMed only).
Character vector of length 2 with start and end dates in format "YYYY/MM/DD".
Character string. NCBI API key for higher rate limits (optional).
Integer. Number of times to retry failed requests.
Integer. Delay between retries in seconds.