> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Internet Archive

> Search and item metadata for the Internet Archive's collections (texts, audio, video, software), plus Wayback Machine snapshot lookup and capture history, from its keyless public APIs.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/internet-archive.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=23ba0bd87afef356e544c68b887533b7)

[Web Catalog · Search](https://docs.webrouter.net/data-apis.md?category=search)

No key needed

Endpoints

6

Auth

None

[Vendor docs](https://archive.org/developers/) · Serves `archive.org`

## Notes

* Keyless for every read here. Rate limiting answers 429, possibly with Retry-After.
* Queries use the Lucene-like Advanced Search syntax: field:term, AND by default, ranges with \[a TO b], e.g. publicdate:\[2008-02-01 TO 2008-03-01] AND contributor:smithsonian.
* An item is addressed by its identifier; metadata.get lists its files.
* Wayback timestamps are yyyyMMddhhmmss, 1 to 14 digits (20060101 is fine).

## Endpoints

GET

Search items

Items matching a query, with chosen metadata fields, paged by number.

[Open](#internet-archive-search-advanced)

GET

Scrape all matching items

Every item matching a query, paged by cursor, for result sets beyond 10,000.

[Open](#internet-archive-search-scrape)

GET

Get an item's metadata and files

An item's full record: metadata (title, mediatype, collection...), its files with formats and sizes, and server locations.

[Open](#internet-archive-metadata-get)

GET

Get part of an item's metadata

One element of an item's record, e.g. metadata/title or files, optionally a slice of an array.

[Open](#internet-archive-metadata-part)

GET

Find the closest Wayback snapshot of a URL

The archived capture of a URL closest to a time (latest when no time), with its Wayback link and status.

[Open](#internet-archive-wayback-available)

GET

List Wayback captures of a URL

Every capture of a URL, prefix, host or domain in a time range, with timestamp, MIME type, status and digest.

[Open](#internet-archive-wayback-cdx)

### Search items

GET

`/advancedsearch.php`

`internet-archive.search.advanced`

Items matching a query, with chosen metadata fields, paged by number.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Advanced Search query. Example `subject:palm pilot software`</td></tr>
    <tr><td>`fl`</td><td>array</td><td>query</td><td>Metadata fields to return, e.g. identifier, title, downloads. Example `["identifier", "title"]`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Sort, field and direction, e.g. 'downloads desc'.
      </td>
    </tr>

    <tr><td>`rows`</td><td>integer</td><td>query</td><td>Results per page. Example `100`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`output`</td><td>string</td><td>query</td><td>json for a JSON answer (the page also offers XML, CSV and RSS). Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://archive.org/help/aboutsearch.htm) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-videos-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search)

```python Python theme={null}
router.call_data_api("internet-archive.search.advanced", {'q': 'subject:palm pilot software', 'fl': ['identifier', 'title'], 'rows': 100, 'page': 1, 'output': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="internet-archive.search.advanced", params={"q": "subject:palm pilot software", "fl": ["identifier", "title"], "rows": 100, "page": 1, "output": "json"})
```

> [!NOTE]
>
> * Sorted paged results stop at the 10,000th; for more use search.scrape.
> * Send output=json; the docs' example does.

### Scrape all matching items

GET

`/services/search/v1/scrape`

`internet-archive.search.scrape`

Every item matching a query, paged by cursor, for result sets beyond 10,000.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Advanced Search query. Example `collection:nasa`</td></tr>
    <tr><td>`fields`</td><td>string</td><td>query</td><td>Metadata fields to return, comma-separated. Example `identifier,title`</td></tr>

    <tr>
      <td>
        `sorts`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Fields to sort on, comma-separated; identifier, if given, must be last.
      </td>
    </tr>

    <tr><td>`count`</td><td>integer</td><td>query</td><td>Results per call, at least 100. Example `100`</td></tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor of the previous answer; omit to start.
      </td>
    </tr>

    <tr>
      <td>
        `total_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true to return only the number of matches.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://archive.org/help/aboutsearch.htm) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-videos-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search)

```python Python theme={null}
router.call_data_api("internet-archive.search.scrape", {'q': 'collection:nasa', 'fields': 'identifier,title', 'count': 100})
```

```text MCP theme={null}
call_data_api(endpoint="internet-archive.search.scrape", params={"q": "collection:nasa", "fields": "identifier,title", "count": 100})
```

> [!NOTE]
>
> * Answers carry items, count, total and cursor; send cursor back until none is returned. With a cursor, total counts from the cursor on.

### Get an item's metadata and files

GET

`/metadata/{identifier}`

`internet-archive.metadata.get`

An item's full record: metadata (title, mediatype, collection...), its files with formats and sizes, and server locations.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`identifier` required</td><td>string</td><td>path</td><td>Item identifier. Example `00-042-154`</td></tr>
  </tbody>
</table>

[Vendor docs](https://archive.org/developers/md-read.html) · Same job: [Bing Webmaster Tools](https://docs.webrouter.net/data-apis/bing-webmaster.md#bing-webmaster-urls-info), [ChEMBL](https://docs.webrouter.net/data-apis/chembl.md#chembl-status), [HGNC (HUGO Gene Nomenclature Committee)](https://docs.webrouter.net/data-apis/hgnc.md#hgnc-info), [Library of Congress loc.gov API](https://docs.webrouter.net/data-apis/loc-gov.md#loc-gov-item-get), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-index-metadata), [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-version-get)

```python Python theme={null}
router.call_data_api("internet-archive.metadata.get", {'identifier': '00-042-154'})
```

```text MCP theme={null}
call_data_api(endpoint="internet-archive.metadata.get", params={"identifier": "00-042-154"})
```

> [!NOTE]
>
> * A missing item answers an empty array \[], not an error.

### Get part of an item's metadata

GET

`/metadata/{identifier}/{field}`

`internet-archive.metadata.part`

One element of an item's record, e.g. metadata/title or files, optionally a slice of an array.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`identifier` required</td><td>string</td><td>path</td><td>Item identifier. Example `00-042-154`</td></tr>
    <tr><td>`field` required</td><td>string</td><td>path</td><td>Path into the record, e.g. server, metadata or files/0. Example `files`</td></tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        For an array, the first index to return.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        For an array, how many elements to return.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://archive.org/developers/md-read.html) · Same job: [Bing Webmaster Tools](https://docs.webrouter.net/data-apis/bing-webmaster.md#bing-webmaster-urls-info), [ChEMBL](https://docs.webrouter.net/data-apis/chembl.md#chembl-status), [HGNC (HUGO Gene Nomenclature Committee)](https://docs.webrouter.net/data-apis/hgnc.md#hgnc-info), [Library of Congress loc.gov API](https://docs.webrouter.net/data-apis/loc-gov.md#loc-gov-item-get), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-index-metadata), [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-version-get)

```python Python theme={null}
router.call_data_api("internet-archive.metadata.part", {'identifier': '00-042-154', 'field': 'files'})
```

```text MCP theme={null}
call_data_api(endpoint="internet-archive.metadata.part", params={"identifier": "00-042-154", "field": "files"})
```

> [!NOTE]
>
> * The value comes wrapped as \{"result": ...}; a missing path answers an error field.

### Find the closest Wayback snapshot of a URL

GET

`/wayback/available`

`internet-archive.wayback.available`

The archived capture of a URL closest to a time (latest when no time), with its Wayback link and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>query</td><td>The address to look up. Example `example.com`</td></tr>
    <tr><td>`timestamp`</td><td>string</td><td>query</td><td>yyyyMMddhhmmss, 1 to 14 digits; the most recent capture when unset. Example `20060101`</td></tr>
  </tbody>
</table>

[Vendor docs](https://archive.org/help/wayback_api.php)

```python Python theme={null}
router.call_data_api("internet-archive.wayback.available", {'url': 'example.com', 'timestamp': '20060101'})
```

```text MCP theme={null}
call_data_api(endpoint="internet-archive.wayback.available", params={"url": "example.com", "timestamp": "20060101"})
```

> [!NOTE]
>
> * No capture answers \{"archived\_snapshots": \{}}.

### List Wayback captures of a URL

GET

`/cdx/search/cdx`

`internet-archive.wayback.cdx`

Every capture of a URL, prefix, host or domain in a time range, with timestamp, MIME type, status and digest.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>query</td><td>URL to look up; a trailing /\* means prefix, a leading \*. means domain. Example `archive.org`</td></tr>
    <tr><td>`matchType`</td><td>string</td><td>query</td><td>How url matches; exact by default. One of `exact`, `prefix`, `host`, `domain`</td></tr>
    <tr><td>`output`</td><td>string</td><td>query</td><td>json for a JSON array whose first row is the header; plain space-separated text when unset. One of `json` Example `json`</td></tr>

    <tr>
      <td>
        `fl`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Fields, comma-separated; default urlkey,timestamp,original,mimetype,statuscode,digest,length.
      </td>
    </tr>

    <tr>
      <td>
        `from`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start, yyyyMMddhhmmss (1 to 14 digits), inclusive.
      </td>
    </tr>

    <tr>
      <td>
        `to`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End, yyyyMMddhhmmss (1 to 14 digits), inclusive.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        \[!]field:regex, e.g. statuscode:200 or !mimetype:text/html.
      </td>
    </tr>

    <tr>
      <td>
        `collapse`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field or field:N; drops adjacent captures with the same value (first N characters).
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Most captures; -N for the last N (slow).
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Skip the first M captures.
      </td>
    </tr>

    <tr>
      <td>
        `showResumeKey`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true to print a resume key after the results when more exist.
      </td>
    </tr>

    <tr>
      <td>
        `resumeKey`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Resume key of the previous answer, with the same other parameters.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/internetarchive/wayback/blob/master/wayback-cdx-server/README.md)

```python Python theme={null}
router.call_data_api("internet-archive.wayback.cdx", {'url': 'archive.org', 'output': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="internet-archive.wayback.cdx", params={"url": "archive.org", "output": "json"})
```

> [!NOTE]
>
> * Set limit: a popular URL has a very large number of captures. Page with showResumeKey/resumeKey; offset scales poorly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.