guardian_tags {rdian} | R Documentation |
Search Guardian Tags
Description
guardian_tags
lets you directly search
The Guardian for their tags - metadata used to classify content.
Usage
guardian_tags(api_key, query, section = NULL, reference = NULL,
reference_type = NULL, page = NULL, page_size = 50, ...)
Arguments
api_key |
A key to the Guardian API, which can be obtained here. |
query |
Your search query. This can contain operators ( |
section |
the section, or sections, of The Guardian that you want to limit the search to. Multiple
sections may be concatenated together using boolean operators; see |
reference |
the references to limit the search to; only tags that include those references (and meet other conditions) will be returned. Also accepts boolean operators. |
reference_type |
the type of reference (such as |
page |
a particular page of results to return. Useful when returning multiple sets of data with the same query;
you can repeat the query, incrementing the value in |
page_size |
the maximum number of items to return; anywhere between 1 and 50. Set to 50 by default. |
... |
further arguments to pass to httr's |
See Also
Examples
## Not run:
# Simple example
results <- guardian_tags("test", "green")
## End(Not run)