Skip to contents

EES API results are paged, such that only one page is returned by a single request submitted to the API. This function creates the URL query syntax to specify the number of results to be returned per page and the page number to retrieve. This is largely used by api_url() to automatically generate API request URLs, but is exported as part of the package for any users who wish to generate their own URLs.

Usage

api_url_pages(page_size = 40, page = NULL)

Arguments

page_size

Number of results to return in a single query (max 40)

page

Page number to return

Value

String containing pages query

Examples

api_url_pages()
#> [1] "pageSize=40"
api_url_pages(page_size = 20, page = 2)
#> [1] "page=2&pageSize=20"