Access the item metadata from an Internet Archive item
Value
A data frame containing the metadata, with columns id
for the
item identifier, field
for the name of the metadata field, and
value
for the metadata values.
Examples
ats_query <- c("publisher" = "american tract society")
ids <- ia_search(ats_query, num_results = 3)
#> 1480 total items found. This query requested 3 results.
items <- ia_get_items(ids)
#> Getting cihm_27435
#> Getting homeforhomeless00milliala
#> Getting cu31924031766524
metadata <- ia_metadata(items)
#> Warning: `data_frame()` was deprecated in tibble 1.1.0.
#> ℹ Please use `tibble()` instead.
#> ℹ The deprecated feature was likely used in the internetarchive package.
#> Please report the issue at
#> <https://github.com/ropensci/internetarchive/issues>.
metadata
#> # A tibble: 143 × 3
#> id field value
#> <chr> <chr> <chr>
#> 1 cihm_27435 title "Gems of the bog [microform] : a tale of the Iri…
#> 2 cihm_27435 creator "Chaplin, J. D. (Jane Dunbar), 1819-1884"
#> 3 cihm_27435 description1 "First published as a serial in the \"Watchman a…
#> 4 cihm_27435 description2 "Filmed from a copy of the original publication …
#> 5 cihm_27435 description3 "43"
#> 6 cihm_27435 publisher "Boston : American Tract Society"
#> 7 cihm_27435 date "1869"
#> 8 cihm_27435 language "eng"
#> 9 cihm_27435 isbn "0665274351"
#> 10 cihm_27435 page-progression "lr"
#> # ℹ 133 more rows