View source: R/query-page-properties.R
query_page_properties | R Documentation |
See API:Properties for a list of available properties. Many have additional parameters to control their behavior, which can be passed to this function as named arguments.
query_page_properties(.req, property, ...)
list_all_property_modules()
.req |
A httr2_request, e.g. generated by |
property |
The property to request |
... |
< |
query_page_properties is not useful on its own. It must be combined with a
query_by_ function or query_generate_pages to specify which pages
properties are to be returned. It should be noted that many of the
API:Properties modules can
themselves be used as generators. If you wish to use a property module in
this way, then you must use query_generate_pages, passing the name of the
property module as the genenerator
.
An HTTP response: an S3 list with class httr2_request
gracefully()
# Search for articles about seagulls and retrieve their number of
# watchers
resp <- wiki_action_request() %>%
query_generate_pages("search", gsrsearch = "seagull") %>%
query_page_properties("info", inprop = "watchers") %>%
gracefully(next_batch) %>%
dplyr::select(pageid, ns, title, watchers)
resp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.