get_async_pages | R Documentation |
Sends asynchronous HTTP GET requests to fetch data from multiple API pages concurrently.
get_async_pages(pages, nested)
pages |
Character vector of full URLs specifying the API endpoints to request. |
nested |
Logical value indicating whether to flatten nested lists in the JSON responses. |
This function uses future.apply::future_lapply()
to perform concurrent HTTP GET requests for multiple pages.
It retrieves and parses the JSON responses from each URL provided.
A list of parsed JSON responses from each page.
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.