View source: R/core_articles_search.R
core_articles_search | R Documentation |
Search CORE articles
core_articles_search( query, metadata = TRUE, fulltext = FALSE, citations = FALSE, similar = FALSE, duplicate = FALSE, urls = FALSE, faithfulMetadata = FALSE, page = 1, limit = 10, key = NULL, parse = TRUE, ... ) core_articles_search_( query, metadata = TRUE, fulltext = FALSE, citations = FALSE, similar = FALSE, duplicate = FALSE, urls = FALSE, faithfulMetadata = FALSE, page = 1, limit = 10, key = NULL, ... )
query |
(character) query string, required |
metadata |
(logical) Whether to retrieve the full article metadata or
only the ID. Default: |
fulltext |
(logical) Whether to retrieve full text of the article.
Default: |
citations |
(logical) Whether to retrieve citations found in the
article. Default: |
similar |
(logical) Whether to retrieve a list of similar articles.
Default: |
duplicate |
(logical) Whether to retrieve a list of CORE IDs of
different versions of the article. Default: |
urls |
(logical) Whether to retrieve a list of URLs from which the
article can be downloaded. This can include links to PDFs as well as
HTML pages. Default: |
faithfulMetadata |
(logical) Returns the records raw XML metadata
from the original repository. Default: |
page |
(character) page number (default: 1), optional |
limit |
(character) records to return (default: 10, minimum: 10, maximum: 100), optional |
key |
A CORE API key. Get one at
https://core.ac.uk/api-keys/register. Once you have the key,
you can pass it into this parameter, or as a much better option,
store your key as an environment variable with the name
|
parse |
(logical) Whether to parse to list ( |
... |
Curl options passed to |
core_articles_search
does the HTTP request and parses, while
core_articles_search_
just does the HTTP request, gives back JSON as a character
string
https://core.ac.uk/docs/#!/all/search
## Not run: core_articles_search(query = 'ecology') core_articles_search(query = 'ecology', parse = FALSE) core_articles_search(query = 'ecology', limit = 12) out = core_articles_search(query = 'ecology', fulltext = TRUE) core_articles_search_(query = 'ecology') jsonlite::fromJSON(core_articles_search_(query = 'ecology')) # post request query <- c('data mining', 'semantic web') res <- core_articles_search(query) head(res$data) res$data[[2]]$doi ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.