View source: R/bfs_get_asset_metadata.R
| bfs_get_asset_metadata | R Documentation |
Get the metadata of a BFS file from the DAM API (https://dam-api.bfs.admin.ch/hub/swagger-ui/index.html) with its asset number or its BFS number: title, description, publication date, contact, links, ...
bfs_get_asset_metadata(
number_asset = NULL,
number_bfs = NULL,
language = c("de", "fr", "it", "en")
)
number_asset |
The asset number of the file, e.g. |
number_bfs |
The BFS number of the file, e.g.
|
language |
Language of the metadata: |
A nested list with the metadata. Returns NULL if there is no
internet connection.
bfs_download_asset()
metadata <- bfs_get_asset_metadata(number_bfs = "px-x-1502040100_131", language = "en")
metadata$description$titles$main
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.