Closed tatashe closed 2 years ago
found a workaround using cr_cn
ref <- cr_cn(dois = '10.1590/S0104-12902020200348', format = "citeproc-json")
and then author affiliations are accessible using
affil <- ref[["author"]][["affiliation"]]
Hi @tatashe,
Crossref API does not support facets when querying a single DOI. You can obtain affiliation data for a single DOI like this:
req <- rcrossref::cr_works(dois = '10.1590/S0104-12902020200348')
req$data$author
#> [[1]]
#> # A tibble: 3 × 6
#> ORCID authenticated.o… given family sequence affiliation.name
#> <chr> <lgl> <chr> <chr> <chr> <chr>
#> 1 http://orcid.org/0000… FALSE Doug… Rodri… first Universidade Fe…
#> 2 http://orcid.org/0000… FALSE Lucas Alber… additio… Universidade Fe…
#> 3 http://orcid.org/0000… FALSE Sofi… Mendo… additio… Universidade Fe…
Created on 2022-08-25 by the reprex package (v2.0.1)
trying to run the following fails, though using query does not.
> test <- cr_works(dois = '10.1590/S0104-12902020200348', facet=TRUE) Warning message: 400 (client error): /works/10.1590/S0104-12902020200348 - This route does not support facet