Skip to contents

For details on API access to the Wayback Machine see: https://archive.org/help/wayback_api.php

Usage

cas_ia_check(
  url = NULL,
  wait = 1,
  retry_times = 3,
  pause_base = 2,
  pause_cap = 512,
  pause_min = 4,
  db_connection = NULL,
  disconnect_db = FALSE,
  check_db = TRUE,
  write_db = TRUE,
  output_only_newly_checked = FALSE,
  ...
)

Arguments

url

A charachter vector of length one, a url.

wait

Defaults to 1. Number of seconds to wait between downloading one page and the next. Can be increased to reduce server load, or can be set to 0 when this is not an issue.

retry_times

Defaults to 3. Number of times to retry download in case of errors.

check_db

Defaults to TRUE. If TRUE, checks if given URL has already been checked in local database, and queries APIs only for URLs that have not been previously checked.

write_db

Defaults to TRUE. If TRUE, writes result to a local database.

...

Passed to cas_get_db_file().

Value

A url linking to the version on the Internet Archive

Details

For an R package facilitating more extensive interaction with the API, see: https://github.com/hrbrmstr/wayback

Integration with Wayback CDX Server API to be considered.