I am trying to analyze the article bibliography using Scopus API.
When I run scopus_search(), I seem to run into an error due to 5,000 limit API,
so I change the start and max_count argument but it is not working.
rt_query <- scopus_search(query = "TITLE-ABS-KEY(Radiotherapy) AND PUBYEAR = 2022",
view = 'COMPLETE',
start = 5001,
max_count = 10000,
headers = insttoken)
Error in get_results(query, start = init_start, count = count, verbose = verbose, :
Bad Request (HTTP 400).
The weird thing is that the limitation only strikes when I try to fetch information that starts after the 5000 response.
Any idea on how to resolve this?
Did you figure this out? I think maybe the
rscopuspackage does not support the limitation issue anymore since there used to be an offset parameter in the Elsevier API that is now replaced by a cursor parameter (gleaned that from here).Using the API through the
httrworked for me. The cursor logic is documented here. The first query uses "cursor=*", while the next queries use the cursor parameter fetched from the first query, which can be found undersearch-results$cursor$@next.I suppose your query would look something like this:
https://api.elsevier.com/content/search/scopus?query=title-abs-key(Radiotherapy)ANDpubyear(2022)&cursor=*&count=200&apiKey=YOURKEY(I am getting 0 results from that API query, so I might have specified it wrong, but this works with other queries).
Then it's possible to for example run a loop and use the new cursor for every 200-units batch downloaded. Like so: