Skip to contents

Access the item metadata from an Internet Archive item

Usage

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)
#> 1449 total items found. This query requested 3 results.
items     <- ia_get_items(ids)
#> Getting christianevangel0000john_c7n6
#> Getting constitutioname00socigoog
#> Getting cu31924013660778
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: 111 × 3
#>    id                            field          value                        
#>    <chr>                         <chr>          <chr>                        
#>  1 christianevangel0000john_c7n6 identifier     christianevangel0000john_c7n6
#>  2 christianevangel0000john_c7n6 boxid          IA40819705                   
#>  3 christianevangel0000john_c7n6 camera         USB PTP Class Camera         
#>  4 christianevangel0000john_c7n6 collection_set printdisabled                
#>  5 christianevangel0000john_c7n6 contributor    Internet Archive             
#>  6 christianevangel0000john_c7n6 creator        john mcnicol, d.d.           
#>  7 christianevangel0000john_c7n6 date           1937                         
#>  8 christianevangel0000john_c7n6 language       eng                          
#>  9 christianevangel0000john_c7n6 mediatype      texts                        
#> 10 christianevangel0000john_c7n6 old_pallet     IA-NS-0001600                
#> # ℹ 101 more rows