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)
#> 1399 total items found. This query requested 3 results.
items     <- ia_get_items(ids)
#> Getting paulsletters0000davi
#> Getting childsbookofbibl00gall
#> Getting childspictures00unse
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: 141 × 3
#>    id                   field          value               
#>    <chr>                <chr>          <chr>               
#>  1 paulsletters0000davi identifier     paulsletters0000davi
#>  2 paulsletters0000davi boxid          IA40863802          
#>  3 paulsletters0000davi camera         USB PTP Class Camera
#>  4 paulsletters0000davi collection     internetarchivebooks
#>  5 paulsletters0000davi collection_set printdisabled       
#>  6 paulsletters0000davi contributor    Internet Archive    
#>  7 paulsletters0000davi creator        david james burrell 
#>  8 paulsletters0000davi date1          1921                
#>  9 paulsletters0000davi date2          1921                
#> 10 paulsletters0000davi date3          1921                
#> # ℹ 131 more rows