Skip to contents

Access the item IDs from an Internet Archive items

Usage

ia_item_id(item)

Arguments

item

A list describing an Internet Archive items returned from the API. This argument is vectorized.

Value

A character vector containing the item IDs.

Examples

ats_query <- c("publisher" = "american tract society")
ids       <- ia_search(ats_query, num_results = 3)
#> 1421 total items found. This query requested 3 results.
items     <- ia_get_items(ids)
#> Getting morethanonehundr00gree_1
#> Getting dakotaodowandako00will
#> Getting dakotaodowanhymn00rigg
ia_item_id(items)
#> [1] "morethanonehundr00gree_1" "dakotaodowandako00will"  
#> [3] "dakotaodowanhymn00rigg"