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)
#> 1461 total items found. This query requested 3 results.
items     <- ia_get_items(ids)
#> Getting swedenborgianis00socigoog
#> Getting missionsathomea00whergoog
#> Getting winterschoolorbo00browiala
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: 110 × 3
#>    id                        field                     value                    
#>    <chr>                     <chr>                     <chr>                    
#>  1 swedenborgianis00socigoog publisher                 Boston, American Tract S…
#>  2 swedenborgianis00socigoog identifier                swedenborgianis00socigoog
#>  3 swedenborgianis00socigoog scanner                   google                   
#>  4 swedenborgianis00socigoog title                     Swedenborgianism examined
#>  5 swedenborgianis00socigoog notes                     The first edition was pu…
#>  6 swedenborgianis00socigoog creator1                  Pond, Enoch, 1791-1882   
#>  7 swedenborgianis00socigoog creator2                  American Tract Society   
#>  8 swedenborgianis00socigoog mediatype                 texts                    
#>  9 swedenborgianis00socigoog collection                americana                
#> 10 swedenborgianis00socigoog possible-copyright-status NOT_IN_COPYRIGHT         
#> # ℹ 100 more rows