calls.Rd
All of The Guardian API endpoints.
gd_search(q = NULL, ..., pages = 1) gd_tags(q = NULL, ..., pages = 1) gd_sections(q = NULL, ..., pages = 1) gd_editions(q = NULL, ..., pages = 1) gd_items(items, ...)
q | The search query parameter supports |
---|---|
... | Any other parameter, or filter, see the full list at https://open-platform.theguardian.com/documentation/. |
pages | Number of pages to collect. |
items | Vector of API links to items. |
This only "prepares" the API calls, use gd_call
to execute them.
# NOT RUN { (to_search <- gd_search("debates", pages = 13)) results <- gd_call(to_search) # select items to retrieve items_to_get <- gd_items(results$apiUrl[1:13]) items <- gd_call(items_to_get) # }