Description Usage Arguments Value query Examples
View source: R/jaod_article_search.R
Search for articles
1 | jaod_article_search(query, page = 1, pageSize = 10, sort = NULL, ...)
|
query |
(character) query terms. See Details. |
page |
(integer) Which page of the results you wish to see. Default: 1 |
pageSize |
(integer) How many results per page you wish to see. Default: 10 |
sort |
(character) one of asc or desc, or sort by a specific field, either asc or desc, see examples. If asc or desc not given, asc is used |
... |
curl options passed on to |
a list with metadata (timestamp
, page
, pageSize
, query
,
total
(number of results), next
and last
(next page and last page),
and results
(a tibble (data.frame)))
You can search inside any field you see in the results or the schema.
See https://doaj.org/api/v1/docs#specific_field_search for more details.
For example, to search for all articles with abstracts containing the
word "shadow", you would do bibjson.abstract:"shadow"
.
Short-hand names are available for some fields. See
https://doaj.org/api/v1/docs#short_field_names for more details. For
example: doi:10.3389/fpsyg.2013.00479
, issn:1874-9496
, license:CC-BY
,
and title:hydrostatic pressure
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
out <- jaod_article_search(query = "license:CC-BY")
out
out$results
## get DOIs or other article IDs
names(out$results$bibjson.identifier) <- out$results$id
do.call(rbind, out$results$bibjson.identifier)
# more egs
jaod_article_search(query = "issn:1544-9173")
jaod_article_search(query = "publisher:dove")
# sorting
res <- jaod_article_search(query="Pinus contorta", sort="year:desc",
pageSize = 50)
res$results$bibjson.year
jaod_article_search(query="green", sort="bibjson.year:desc")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.