Skip to contents

Utility wrapper for Wikidata API to download random items. Used by random_item.

Usage

wd_rand_query(ns, limit, ...)

Arguments

ns

string indicating namespace, most commonly "Main" for QID items, "Property" for PID properties.

limit

How many random object to return.

\dots

Additional parameters to supply to httr:POST.

Value

Downloaded full wikidata objects (items or properties) formatted as nested json lists.