# Internet Archive Scraper (`properscraper/internet-archive-scraper`) Actor

Export items from the Internet Archive (archive.org) by search, collection or identifier: books, films, audio, software and images with title, creator, description, subjects, dates and download counts. Optionally lists every file with its download link. Uses the Archive's official API.

- **URL**: https://apify.com/properscraper/internet-archive-scraper.md
- **Developed by:** [jake mcclure](https://apify.com/properscraper) (community)
- **Categories:** Education, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 item saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Internet Archive Scraper

Export items from the Internet Archive (archive.org) by search, collection or identifier: books, films, audio, software and images. For each one you get its title, creator, description, subjects, dates, download counts and licence, and optionally every file with its download link.

It uses the Internet Archive's official search and metadata APIs. No login and no API key are needed.

Use it to:

- list everything in a collection, such as the Prelinger film archive or a library's scanned books
- find public-domain books, films or recordings on a subject, with direct links to the files
- build a dataset of texts, audio or video for research or AI, with the licence of each item
- track what is being downloaded most this week, or what was added since your last run
- check a list of identifiers you already have and get their current details

### Input

| Field | What it does |
|---|---|
| **Searches** | One per line: plain words (`moon landing`), a search in the Archive's own syntax (`collection:prelinger AND year:1950`), a link to a collection, or a link to a search on archive.org. |
| **Items** | One per line: the identifier of an item you already know (`AboutBan1935`) or a link to its page. |
| **Type** | Only texts, audio, video, software, images, archived websites, data, collections or live concert recordings. |
| **Order** | Most downloaded, most downloaded this week, most recently added, newest or oldest by date of the work, or title. |
| **Added on or after** | Only items added to the Archive since this date. |
| **List each item's files** | Add every file with its format, size and download link. |
| **Maximum items per search** | Stop after this many for each search. Default 100. |

Type, order and date apply to searches, not to items asked for by identifier.

```json
{
    "searches": ["collection:prelinger", "moon landing"],
    "items": ["AboutBan1935"],
    "mediaType": "movies",
    "sortBy": "downloads",
    "includeFiles": true,
    "maxItemsPerSearch": 200
}
```

The Archive's search syntax lets you combine fields: `creator:"Mark Twain" AND mediatype:texts`, `subject:jazz AND year:[1920 TO 1929]`, `language:fre AND collection:opensource`.

### Output

One record per item:

```json
{
    "search": "collection:prelinger",
    "identifier": "AboutBan1935",
    "url": "https://archive.org/details/AboutBan1935",
    "title": "About Bananas",
    "creators": ["Castle Films"],
    "mediaType": "movies",
    "description": "Complete presentation of the banana industry from the clearing of the jungle and the planting to the shipment of the fruit to the American markets.",
    "subjects": ["Agriculture: Bananas", "Central America"],
    "languages": [],
    "collections": ["prelinger"],
    "date": "1935-01-01T00:00:00.000Z",
    "year": 1935,
    "addedAt": "2002-07-16T00:00:00.000Z",
    "publicSince": "2002-07-16T00:00:00.000Z",
    "downloads": 27203089,
    "downloadsThisWeek": 1412,
    "downloadsThisMonth": 6230,
    "sizeBytes": 888245581,
    "reviewCount": 16,
    "averageRating": 4.36,
    "licenseUrl": "http://creativecommons.org/licenses/publicdomain/",
    "formats": ["512Kb MPEG4", "Cinepack", "MPEG2", "Ogg Video", "h.264"],
    "thumbnailUrl": "https://archive.org/services/img/AboutBan1935",
    "fileCount": 47,
    "files": [
        {
            "name": "AboutBan1935.avi",
            "format": "Cinepack",
            "source": "original",
            "sizeBytes": 38496262,
            "durationSeconds": 664.29,
            "width": 320,
            "height": 240,
            "md5": "2bb8e55350d6e1c264c9585761f0633d",
            "url": "https://archive.org/download/AboutBan1935/AboutBan1935.avi"
        }
    ],
    "scrapedAt": "2026-11-18T19:00:00.000Z"
}
```

- `search` is the search the item was found under, or its identifier when you asked for it by identifier.
- `date` is the date of the work itself; `addedAt` is when it was uploaded to the Archive.
- `downloads` is the all-time count the Archive shows as "views".
- `fileCount` and `files` are present only when **List each item's files** is on. A file's `source` is `original` (what was uploaded), `derivative` (made by the Archive from the original, such as a smaller video) or `metadata` (the Archive's own bookkeeping files).

A `SUMMARY` record in the run's key-value store lists, for each search, how many items were saved and any error, and any identifiers that do not exist.

### Pricing

Pay per result. You are charged once for each item saved to the dataset, at the per-result price shown on this page. Listing an item's files costs nothing extra.

Searches with no results and identifiers that do not exist cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

### Limits

- Fields come from what each uploader filled in. Creator, date, language and licence are empty where they were not stated, and the same subject can be spelled several ways.
- Search covers the details of items (title, creator, description, subjects), the same as the default search on archive.org. It does not search inside the text of books.
- One search returns at most 10,000 items, a limit of the Internet Archive's search API. To export a larger collection, split it into several searches, for example by year: `collection:prelinger AND year:[1940 TO 1949]`. The run summary says when a search was cut short this way.
- Dates are as the uploader entered them, so "newest" and "oldest" can start with items whose date is wrong.
- A record lists at most 500 files. `fileCount` gives the full number.
- Files that cannot be downloaded by everyone, such as books that can only be borrowed, are left out of `files`.
- Reviews and the names of users who marked an item as a favourite are not exported.
- The Actor reads listings and file links. It does not download the files themselves, and it does not read the Wayback Machine; for archived web pages use the [Wayback Machine Snapshots Scraper](https://apify.com/properscraper/wayback-machine-snapshots-scraper).
- It sends one request a second. With file lists on, expect about a second per item.

### Is this allowed?

The Actor uses the public APIs the Internet Archive provides for searching and reading its catalogue, without logging in and at a gentle pace. Being on the Internet Archive does not make a work free to reuse: check each item's licence and rights before you copy or publish it. You are responsible for how you use the data and for following the Internet Archive's terms of use.

# Actor input Schema

## `searches` (type: `array`):

One per line. Plain words such as moon landing, a search in the Internet Archive's own syntax such as collection:prelinger AND year:1950, a link to a collection (everything in it), or a link to a search on archive.org.

## `items` (type: `array`):

One per line. The identifier of an item you already know, such as AboutBan1935, or a link to its page on archive.org.

## `mediaType` (type: `string`):

Only return items of this type. Does not apply to items asked for by identifier.

## `sortBy` (type: `string`):

Which results come first. Does not apply to items asked for by identifier.

## `addedAfter` (type: `string`):

Only return items added to the Internet Archive on or after this date (YYYY-MM-DD). Does not apply to items asked for by identifier.

## `includeFiles` (type: `boolean`):

Add every file of each item with its format, size and download link. Needs one more request per item, so runs take about a second longer per item.

## `maxItemsPerSearch` (type: `integer`):

Stop after this many items for each search.

## Actor input object example

```json
{
  "searches": [
    "collection:prelinger"
  ],
  "mediaType": "all",
  "sortBy": "downloads",
  "includeFiles": false,
  "maxItemsPerSearch": 100
}
```

# Actor output Schema

## `items` (type: `string`):

Every item saved by the run, one record per item.

## `summary` (type: `string`):

Totals for the run and, for each search, how many results were saved and any error.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searches": [
        "collection:prelinger"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("properscraper/internet-archive-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searches": ["collection:prelinger"] }

# Run the Actor and wait for it to finish
run = client.actor("properscraper/internet-archive-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searches": [
    "collection:prelinger"
  ]
}' |
apify call properscraper/internet-archive-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,properscraper/internet-archive-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0RYZOThH4jxIKEiig/builds/KUXPF9ZsO5WKfgTxd/openapi.json
