Description Usage Arguments Value Fields options #' The following are the options for the show_tags parameter Examples
Query and return all available content in the API.
See the API docs for full details on the query options available for this content endpoint.
1 2 3 4 |
query |
A string, containing the search query. Defaults to |
show_fields |
A string or character vector of fields to include in
the returned data. Defaults to |
show_tags |
A string or character vector of tags to include in
the returned data. Defaults to |
tag |
A string or character vector of tags to filter
the returned data. Defaults to |
from_date |
Accepts character values in |
to_date |
Accepts character values in |
use_date |
The date type to use for the |
... |
Use to pass any other parameters to the API. See the docs for a full list of options. |
verbose |
Prints messages to console. Defaults to |
tidy |
Convert variable names to snake_case, remove some |
tidy_style |
Style to variable names with. |
A tibble.
The following are the options for the show_fields parameter:
"all" Includes all the fields (default)
"trailText"
"headline"
"showInRelatedContent" Whether this content can appear in automatically
generated Related Content
"body"
"lastModified"
"hasStoryPackage" Has related content selected by editors
"score" A relevance score based on the search query used
"standfirst"
"shortUrl"
"thumbnail"
"wordcount"
"commentable"
"isPremoderated" Comments will be checked by a moderator prior to
publication if true.
"allowUgc" May have associated User Generated Content. This typically
means the content has an associated Guardian Witness assignment
which can be accessed by querying "show-references=witness-assignment",
using the query parameter.
"byline"
"publication"
"internalPageCode"
"productionOffice"
"shouldHideAdverts" Adverts will not be displayed if true
"liveBloggingNow" Content is currently live blogged if true
"commentCloseDate" The date the comments have been closed
"starRating"
show_tags parameter "blog"
"contributor"
"keyword"
"newspaper-book"
"newspaper-book-section"
"publication"
"series"
"tone"
"type"
"all": The default option.
1 2 3 4 5 6 7 8 9 | ## Not run:
x <- gu_content(query = "films")
y <- gu_content(
query = "relationships",
from_date = "2018-11-30", to_date = "2018-12-30"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.