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)
#> 1449 total items found. This query requested 3 results.
items     <- ia_get_items(ids)
#> Getting christianevangel0000john_c7n6
#> Getting constitutioname00socigoog
#> Getting cu31924013660778
ia_item_id(items)
#> [1] "christianevangel0000john_c7n6" "constitutioname00socigoog"    
#> [3] "cu31924013660778"