Description Usage Arguments Value Examples
Convert an input string to the most likely item QID
1 |
search_term |
a term to search for. |
language |
the language to return the labels and descriptions in; this should consist of an ISO language code. Set to "en" by default. |
limit |
the number of results to return; set to 10 by default. |
type |
type of wikidata object to return (default = "item") |
\dots |
Additional parameters to supply to [httr::POST] |
If the inputted string matches an item label, return its QID. If the inputted string matches multiple labels of multiple items, return the QID of the first hit. If the inputted string is already a QID, return the string.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.