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)
#> 1437 total items found. This query requested 3 results.
items <- ia_get_items(ids)
#> Getting silentprincestor00clar
#> Getting masterpreacher0000albe
#> Getting houseofchimham0000work
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: 148 × 3
#> id field value
#> <chr> <chr> <chr>
#> 1 silentprincestor00clar language eng
#> 2 silentprincestor00clar scanningcenter capitolhill
#> 3 silentprincestor00clar contributor The Library of Congress
#> 4 silentprincestor00clar date 1900
#> 5 silentprincestor00clar subject1 William I, Prince of Orange, 1533-1584
#> 6 silentprincestor00clar subject2 William I, Prince of Orange, 1533-1584…
#> 7 silentprincestor00clar subject3 Netherlands -- Fiction
#> 8 silentprincestor00clar title The silent prince; a story of the Neth…
#> 9 silentprincestor00clar creator Clark, Hattie Arnold. [from old catalo…
#> 10 silentprincestor00clar lccn 00005000
#> # ℹ 138 more rows