Search UK National Biodiversity Network
nbn_search(
sci_com,
fq = NULL,
order = NULL,
sort = NULL,
start = 0,
rows = 25,
facets = NULL,
q = NULL,
...
)
(character) The query terms(s), a scientific or common name
(character) Filters to be applied to the original query. These are additional params of the form fq=INDEXEDFIELD:VALUE e.g. fq=rank:kingdom. See https://species-ws.nbnatlas.org/indexFields for all the fields that are queryable.
(character) Supports "asc" or "desc"
(character) The indexed field to sort by
(integer) Record offset, to enable paging
(integer) Number of records to return
(list) Comma separated list of the fields to create facets on e.g. facets=basis_of_record.
Deprecated, see sci
Further args passed on to crul::HttpClient.
a list with slots for metadata (meta
) with list of response
attributes, and data (data
) with a data.frame of results
https://api.nbnatlas.org/
Other nbn:
get_nbnid()
,
nbn_classification()
,
nbn_synonyms()
if (FALSE) {
x <- nbn_search(sci_com = "Vulpes")
x$meta$totalRecords
x$meta$pageSize
x$meta$urlParameters
x$meta$queryTitle
head(x$data)
nbn_search(sci_com = "blackbird", start = 4)
# debug curl stuff
nbn_search(sci_com = "blackbird", verbose = TRUE)
}