Access the item metadata from an Internet Archive item

ia_metadata(items)

Arguments

items

A list object describing an Internet Archive items returned from the API.

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)
#> 1249 total items found. This query requested 3 results.
items <- ia_get_items(ids)
#> Getting vitalgodlinessa00plumgoog
#> Getting nogainswithoutp00socigoog
#> Getting sunshineorcuresf00pros
metadata <- ia_metadata(items)
#> Warning: `data_frame()` is deprecated as of tibble 1.1.0. #> Please use `tibble()` instead. #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_warnings()` to see where this warning was generated.
metadata
#> # A tibble: 103 x 3 #> id field value #> <chr> <chr> <chr> #> 1 vitalgodlinessa00… publisher American tract society #> 2 vitalgodlinessa00… identifier vitalgodlinessa00plumgoog #> 3 vitalgodlinessa00… scanner google #> 4 vitalgodlinessa00… title Vital Godliness: A Treatise on Experime… #> 5 vitalgodlinessa00… creator William Swan Plumer #> 6 vitalgodlinessa00… mediatype texts #> 7 vitalgodlinessa00… collection americana #> 8 vitalgodlinessa00… possible-copyrig… NOT_IN_COPYRIGHT #> 9 vitalgodlinessa00… year 1864 #> 10 vitalgodlinessa00… date 1864 #> # … with 93 more rows