I rerun some script that worked a few weeks ago, and it seems that oa_ngrams is broken. I tried the example from the help page and it returns nothing. Maybe the ngrams api of openalex is no longer available as discuss in their documentation.
ngrams_data <- oa_ngrams(
works_identifier = c("W1964141474", "W1963991285"),
verbose = TRUE
)