crevents Crossref events data R client

Crossref Events Data docs - https://www.eventdata.crossref.org/guide/index.html

Package API:

Installation

install.packages("devtools")
devtools::install_github("ropensci/crevents")
library('crevents')

query

crev_query(rows = 10)
#> $status
#> [1] "ok"
#> 
#> $`message-type`
#> [1] "event-list"
#> 
#> $message
#> $message$`next-cursor`
#> [1] "7956fb94-9edb-4106-9e57-ac15eec67b60"
#> 
#> $message$`total-results`
#> [1] 104721652
#> 
#> $message$`items-per-page`
#> [1] 10
#> 
#> $message$events
#> # A tibble: 10 x 24
#>    license terms updated_reason updated obj_id source_token occurred_at
#>  * <chr>   <chr> <chr>          <chr>   <chr>  <chr>        <chr>      
#>  1 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  2 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  3 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  4 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  5 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  6 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  7 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  8 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#>  9 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#> 10 https:… http… https://evide… edited  https… 45a1ef76-4f… 2017-02-17…
#> # ... with 17 more variables: subj_id <chr>, id <chr>,
#> #   evidence_record <chr>, action <chr>, source_id <chr>, timestamp <chr>,
#> #   updated_date <chr>, relation_type_id <chr>, subj.pid <chr>,
#> #   subj.title <chr>, subj.issued <chr>, `subj.original-tweet-url` <chr>,
#> #   `subj.original-tweet-author` <chr>, `subj.alternative-id` <chr>,
#> #   subj.author.url <chr>, obj.pid <chr>, obj.url <chr>

Limit to events from Reddit

Meta

ropensci_footer