r-lib / httr

httr: a friendly http package for R
https://httr.r-lib.org
Other
986 stars 1.99k forks source link

Limit in extracting content from a request ??? #751

Closed anjelinejeline closed 3 months ago

anjelinejeline commented 3 months ago

Hello I would like to understand whether there's a limit in extracting content from a request. Specifically I need to retrieve 1493 items but if I use the content function I am capable to retrieve just the first 300.

This did not occur when I limited the request to 53 items. Can you please confirm my understanding? Is there a way to increase the limits so that I can retrieve all items at once?

> # Count number of articles 
> content(response_board_articles)$count
[1] 1493
> # JSON response structured into parsed data to extract the result
> result <- content(response_board_articles, as="parsed")$result 
> length(result)
[1] 300
anjelinejeline commented 3 months ago

I am really sorry this is not a problem of the package but of the API .. I will close the issue !!!