Skip to contents

Build the URL for querying the tables endpoint (advanced use).

Usage

compose_table_query(
  api,
  query = NULL,
  id = NULL,
  updated_since = NULL,
  page = NA,
  per_page = NA
)

Arguments

api

A <px_api> object.

query

Free-text search string.

id

Table ID(s).

updated_since

Days since last update.

page

Page number.

per_page

Results per page.

Value

A character URL string.

Examples

# \donttest{
scb <- px_api("scb", lang = "en")
if (px_available(scb)) {
  compose_table_query(scb, query = "population")
}# }
#> [1] "https://api.scb.se/ov0104/v2beta/api/v2/tables?lang=en&query=population"