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)
#> Warning: Bad Request (HTTP 400).
#>  total items found. This query requested 3 results.
items     <- ia_get_items(ids)
metadata  <- ia_metadata(items)
metadata
#> # A tibble: 0 × 0