BetaOptional Readonly BetaaccessOptional Readonly BetaauthProtected BetaconfigProtected Readonly BetacookiesReadonly BetahostReadonly BetaprotocolOptional Readonly BetasecretReadonly BetaurlBetaGet most recent match, or match closest to specified timestamp
URL to get the match for
Optionaltimestamp: string | DateOptional timestamp
If no timestamp is provided: closest match to current date;
If timestamp is provided: closest match to timestamp;
undefined if no match is found
BetaGet snapshot matches for given url
url to search snapshots for. Can contain * wildcards
Optionaloptions: {Options
Optionalcollapse?: WaybackCdxCollapseOption | WaybackCdxCollapseOption[]Collapses the results based on the field contents or substring of the field content.
Add one or more collapse items by either specifying the field name or
OptionalfastLatest?: trueAdvanced Option: Return some number of latest results for an exact match. This option and is faster than the standard last results search. The number of results is at least 1 so limit=-1 implies this setting. The number of results may be greater >1 when a secondary index format (such as ZipNum) is used, but is not guaranteed to return any more than 1 result. Combining this setting with limit= will ensure that no more than N last results.
Optionalfilter?: It is possible to filter on a specific field or the entire CDX line (which is space delimited). Filtering by specific field is often simpler. Any number of filter params of the following form may be specified: filter=[!]field:regex may be specified.
Optional: ! before the query inverts the match, that is, will return results that do NOT match the regex.
Optionalfl?: TList of fields to return, must be of type WaybackCdxField
If not defined, all fields are returned.
Optionalfrom?: string | DateFilter by date. If defined, query will return items from the specified date NS later. Can be either a Date object or a 14-digit archive timestamp in the format yyyyMMddhhmmss
OptionallastSkipTimestamp?: trueOptionallimit?: numberReturn the first n results. Use -N to return the last n results
OptionalmatchType?: WaybackCdxMatchTypeOptionaloffset?: numberThe offset= M param can be used in conjunction with limit to skip the first M records. This allows for a simple way to scroll through the results. However, the offset/limit model does not scale well to large querties since the CDX server must read and skip through the number of results specified by offset, so the CDX server begins reading at the beginning every time.
Optionalpage?: numberPage number If pagination is not supported, the CDX server will return a 400.
OptionalpageSize?: numberIt is possible to adjust the page size to a smaller value than the default by setting the pageSize=P where 1 <= P <= default page size.
OptionalresumeKey?: stringResume key
OptionalshowDupeCount?: trueIt is possible to track how many CDX lines were skipped due to Filtering
and Collapsing by adding the special skipcount counter with
showSkipCount = true.
An optional endtimestamp count can also be used to print the timestamp of the last capture by adding lastSkipTimestamp=true
OptionalshowNumPages?: booleanTo determine the number of pages, add the showNumPages=true param. This is a special query that will return a single number indicating the number of pages
OptionalshowPagedIndex?: trueIt is also possible to have the CDX server return the raw secondary index, by specifying showPagedIndex=true. This query returns the secondary index instead of the CDX results and may be subject to access restrictions.
OptionalshowResumeKey?: falseShow resume Key
OptionalshowSkipCount?: trueOptionalsort?: "reverse" | "regular" | "closest"Sort type
Optionalto?: string | DateFilter by date. If defined, query will return items up until the specified date. Can be either a Date object or a 14-digit archive timestamp in the format yyyyMMddhhmmss
Results as an array of result objects
BetaGet snapshot matches for given url
url to search snapshots for. Can contain * wildcards
Optionaloptions: {Options
Optionalcollapse?: WaybackCdxCollapseOption | WaybackCdxCollapseOption[]Collapses the results based on the field contents or substring of the field content.
Add one or more collapse items by either specifying the field name or
OptionalfastLatest?: trueAdvanced Option: Return some number of latest results for an exact match. This option and is faster than the standard last results search. The number of results is at least 1 so limit=-1 implies this setting. The number of results may be greater >1 when a secondary index format (such as ZipNum) is used, but is not guaranteed to return any more than 1 result. Combining this setting with limit= will ensure that no more than N last results.
Optionalfilter?: It is possible to filter on a specific field or the entire CDX line (which is space delimited). Filtering by specific field is often simpler. Any number of filter params of the following form may be specified: filter=[!]field:regex may be specified.
Optional: ! before the query inverts the match, that is, will return results that do NOT match the regex.
Optionalfl?: TList of fields to return, must be of type WaybackCdxField
If not defined, all fields are returned.
Optionalfrom?: string | DateFilter by date. If defined, query will return items from the specified date NS later. Can be either a Date object or a 14-digit archive timestamp in the format yyyyMMddhhmmss
OptionallastSkipTimestamp?: trueOptionallimit?: numberReturn the first n results. Use -N to return the last n results
OptionalmatchType?: WaybackCdxMatchTypeOptionaloffset?: numberThe offset= M param can be used in conjunction with limit to skip the first M records. This allows for a simple way to scroll through the results. However, the offset/limit model does not scale well to large querties since the CDX server must read and skip through the number of results specified by offset, so the CDX server begins reading at the beginning every time.
Optionalpage?: numberPage number If pagination is not supported, the CDX server will return a 400.
OptionalpageSize?: numberIt is possible to adjust the page size to a smaller value than the default by setting the pageSize=P where 1 <= P <= default page size.
OptionalresumeKey?: stringResume key
OptionalshowDupeCount?: trueIt is possible to track how many CDX lines were skipped due to Filtering
and Collapsing by adding the special skipcount counter with
showSkipCount = true.
An optional endtimestamp count can also be used to print the timestamp of the last capture by adding lastSkipTimestamp=true
OptionalshowNumPages?: booleanTo determine the number of pages, add the showNumPages=true param. This is a special query that will return a single number indicating the number of pages
OptionalshowPagedIndex?: trueIt is also possible to have the CDX server return the raw secondary index, by specifying showPagedIndex=true. This query returns the secondary index instead of the CDX results and may be subject to access restrictions.
Show resume Key
OptionalshowSkipCount?: trueOptionalsort?: "reverse" | "regular" | "closest"Sort type
Optionalto?: string | DateFilter by date. If defined, query will return items up until the specified date. Can be either a Date object or a 14-digit archive timestamp in the format yyyyMMddhhmmss
Results as an array of result objects
BetaReturns an AsyncGenerator that yields single snapshot matches.
The generator will go through all available matches.
This function makes use of the resumeKey
url to search snapshots for. Can contain * wildcards
Optionaloptions: WaybackCdxOptions<T>Options
BetaBetaSave a page to the Wayback Machine
URL of the page to save
This class provides access to the WaybackMachine using the Wayback CDX API