-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author endpoint does not work with single author #322
Comments
This comment has been minimized.
This comment has been minimized.
Please ignore the above. As documented in the
oa_fetch(
entity = "authors",
display_name.search = "Massimo Aria",
has_orcid = TRUE
)
#> # A tibble: 1 × 15
#> id display_name display_name_alterna…¹ relevance_score ids orcid works_count
#> <chr> <chr> <list> <dbl> <lis> <chr> <int>
#> 1 https://openalex.o… Massimo Aria <chr [4]> 17263. <chr> http… 199
#> # ℹ abbreviated name: ¹display_name_alternatives
#> # ℹ 8 more variables: cited_by_count <int>, counts_by_year <list>, `2yr_mean_citedness` <dbl>,
#> # h_index <int>, i10_index <int>, last_known_institutions <list>, topics <list>,
#> # works_api_url <chr>``` |
That doesn't work for me:
|
The error you're getting is unrelated - the OpenAlex API seems to be having a site-wide problem of handling Can you try again with the mailto option set to NULL? options(openalexR.mailto = NULL)
oa_fetch(
entity = "authors",
display_name.search = "Massimo Aria",
has_orcid = TRUE
)
#> # A tibble: 1 × 15
#> id display_name display_name_alterna…¹ relevance_score ids orcid works_count cited_by_count counts_by_year `2yr_mean_citedness`
#> <chr> <chr> <list> <dbl> <lis> <chr> <int> <int> <list> <dbl>
#> 1 https://ope… Massimo Aria <chr [4]> 10027. <chr> http… 199 12397 <df [14 × 3]> 6.17
#> # ℹ abbreviated name: ¹display_name_alternatives
#> # ℹ 5 more variables: h_index <int>, i10_index <int>, last_known_institutions <list>, topics <list>, works_api_url <chr> |
Thanks @raffaem for reporting! OpenAlex has just fixed this mailto issue, so June's code snippet above works for me. Could you please try again? library(openalexR)
authors_from_names <- oa_fetch(
entity = "authors",
display_name.search = c("Massimo Aria"),
has_orcid = TRUE
)
#> # A tibble: 1 × 15
#> id display_name display_name_alterna…¹ relevance_score ids orcid
#> <chr> <chr> <list> <dbl> <lis> <chr>
#> 1 https://opena… Massimo Aria <chr [4]> 10027. <chr> http…
#> # ℹ abbreviated name: ¹display_name_alternatives
#> # ℹ 9 more variables: works_count <int>, cited_by_count <int>,
#> # counts_by_year <list>, `2yr_mean_citedness` <dbl>, h_index <int>,
#> # i10_index <int>, last_known_institutions <list>, topics <list>,
#> # works_api_url <chr> Created on 2025-02-17 with reprex v2.0.2 |
I can't right now. Will try in a few days. |
The author endpoint does not seem to work if we have a single author:
The text was updated successfully, but these errors were encountered: