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)
#> 1394 total items found. This query requested 3 results.
items     <- ia_get_items(ids)
#> Getting dictionaryofholy0000unse
#> Getting apostleofpersona0000edwi
#> Getting christianevangel0000john_c7n6
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: 176 × 3
#>    id                       field          value                   
#>    <chr>                    <chr>          <chr>                   
#>  1 dictionaryofholy0000unse identifier     dictionaryofholy0000unse
#>  2 dictionaryofholy0000unse boxid          IA40767219              
#>  3 dictionaryofholy0000unse camera         USB PTP Class Camera    
#>  4 dictionaryofholy0000unse collection     internetarchivebooks    
#>  5 dictionaryofholy0000unse collection_set printdisabled           
#>  6 dictionaryofholy0000unse contributor    Internet Archive        
#>  7 dictionaryofholy0000unse date1          1886                    
#>  8 dictionaryofholy0000unse date2          1886                    
#>  9 dictionaryofholy0000unse date3          1886                    
#> 10 dictionaryofholy0000unse date4          1886                    
#> # ℹ 166 more rows