core_repos_search_ | R Documentation |
Search CORE
core_repos_search_(query, page = 1, limit = 10, key = NULL, ...) core_search(query, page = 1, limit = 10, key = NULL, parse = TRUE, ...) core_search_(query, page = 1, limit = 10, key = NULL, ...)
query |
(character) query string, required |
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
|
... |
Curl options passed to |
parse |
(logical) Whether to parse to list ( |
core_search
does the HTTP request and parses, while
core_search_
just does the HTTP request, gives back JSON as a character
string
https://core.ac.uk/docs/#!/all/search
## Not run: core_search(query = 'ecology') core_search(query = 'ecology', parse = FALSE) core_search(query = 'ecology', limit = 12) core_search_(query = 'ecology') library("jsonlite") jsonlite::fromJSON(core_search_(query = 'ecology')) # post request query <- c('data mining', 'machine learning', 'semantic web') res <- core_search(query) res res$status res$totalHits res$data head(res$data[[1]]) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.