Skip to contents

Search or browse the government metadata catalogue

Usage

nso_metadata_search(
  query = "",
  type = "database",
  organization = NULL,
  sector = NULL,
  page = 1
)

Arguments

query

Search text. A nonempty query uses the site's public search interface and returns its limited result window, with no pagination.

type

Entity type, "all", "organization", or "sector". With an empty query, browse "database", "organization", or "sector".

organization

Numeric organization identifier. Required to browse databases with an empty query.

sector

Numeric sector identifier. Filtering applies only to rows present in the returned response, and rows without the required metadata are excluded. The unresolved_filter_rows attribute counts those rows.

page

Positive page number for database browsing. The package sends this value to the service and preserves the reported pagination without assuming that the server honored the requested page.

Value

A tibble of source-qualified references. Attributes coverage, exhaustive, pagination, retrieved_at, and unresolved_filter_rows describe the scope. exhaustive is always FALSE: a returned page, search window, or response catalogue is not a verified complete inventory.

Examples

if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true") && curl::has_internet()
nso_metadata_search("\u044d\u0440\u04af\u04af\u043b \u043c\u044d\u043d\u0434", type = "all")
nso_metadata_search(organization = 1, page = 1)
nso_metadata_search(type = "organization")
}