# Internet Archive Metadata & File Exporter (`archive-scout-labs/internet-archive-scraper`) Actor

Search Archive.org and export structured item metadata, file manifests, hashes, download links, and public reviews.

- **URL**: https://apify.com/archive-scout-labs/internet-archive-scraper.md
- **Developed by:** [Archive Scout Labs](https://apify.com/archive-scout-labs) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Internet Archive Metadata & File Exporter

Search Archive.org and turn public catalog records into clean, export-ready datasets. Find books, films, audio, software, images, and research collections—or fetch exact item identifiers with their file manifests, hashes, download links, and public reviews.

No Archive.org account, API key, proxy, or browser automation is required.

### Start in 30 seconds

1. Choose **Search catalog**.
2. Enter plain keywords or an Internet Archive Advanced Search query.
3. Set the result limit and click **Start**.
4. Export the dataset as JSON, CSV, Excel, XML, HTML, or RSS.

```json
{
  "operation": "search",
  "query": "title:(climate change)",
  "mediaType": "texts",
  "sortBy": "downloads",
  "maxItems": 100
}
```

### What each result contains

- Identifier, title, creator, dates, media type, and download count
- Description, subjects, languages, and collections
- Direct Archive.org item and thumbnail URLs
- Optional original or derived file manifests
- File names, formats, sizes, MD5 hashes, and direct download URLs
- Optional public reviews

#### Example output

```json
{
  "identifier": "example-item",
  "title": "Example archive item",
  "creator": "Example creator",
  "mediaType": "texts",
  "downloads": 1250,
  "archiveUrl": "https://archive.org/details/example-item"
}
```

### Fetch file manifests and reviews

Use exact item identifiers when you need complete metadata rather than search results.

```json
{
  "operation": "itemDetails",
  "identifiers": ["xfetch"],
  "includeFiles": true,
  "includeDerivedFiles": false,
  "includeReviews": true,
  "maxFilesPerItem": 100
}
```

This mode is useful for digital-humanities datasets, preservation inventories, public-domain discovery, media catalogs, and research pipelines.

### Search syntax and filters

Plain keywords work. Advanced field queries also work, including `title:(climate change)`, `creator:(Jane Austen)`, and `subject:(public domain)`. Use the media type, collection, and language fields for exact filters, then sort by relevance, downloads, date, or title.

### Pricing

Pay only for dataset results. Platform usage is included.

| Results | Price |
| ---: | ---: |
| 10 | $0.01 |
| 100 | $0.10 |
| 1,000 | $1.00 |

### Reliability and responsible access

The Actor uses Internet Archive's public read APIs, sends a descriptive User-Agent, paces detail requests, retries temporary failures, and respects `429 Too Many Requests` responses. It runs with limited Apify permissions.

Only metadata and links are returned; files are not downloaded or copied. Availability and rights vary by item, and users remain responsible for how they use or download linked material.

### Limits

- Up to 1,000 dataset items per run
- Up to 1,000 exact identifiers in detail mode
- Configurable file-list cap per item
- Clear error records for unavailable items or temporary upstream failures

### Data source and affiliation

This independent community Actor is not affiliated with or endorsed by Internet Archive. It uses the public Internet Archive Advanced Search and Item Metadata APIs.

# Actor input Schema

## `operation` (type: `string`):

Search the catalog, or fetch exact item identifiers.

## `query` (type: `string`):

Internet Archive Advanced Search query. Plain keywords work; advanced field queries such as title:(climate change) are also accepted.

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

Optional Internet Archive media-type filter.

## `collection` (type: `string`):

Optional exact collection identifier, for example opensource\_movies.

## `language` (type: `string`):

Optional exact language value used by Internet Archive metadata, for example eng or English.

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

Ordering for catalog search results.

## `maxItems` (type: `integer`):

Maximum number of dataset items to return.

## `identifiers` (type: `array`):

Exact archive.org item identifiers. Used when Operation is Fetch item details.

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

Include downloadable file names, formats, sizes, hashes, and direct download URLs.

## `includeDerivedFiles` (type: `boolean`):

Include files generated by Internet Archive in addition to original uploads.

## `maxFilesPerItem` (type: `integer`):

Maximum file records embedded in each dataset item.

## `includeReviews` (type: `boolean`):

Include public reviews returned in the item's metadata record.

## `requestDelayMs` (type: `integer`):

Polite delay between metadata requests. Internet Archive asks automated clients to respect rate limits.

## Actor input object example

```json
{
  "operation": "search",
  "query": "public domain science",
  "mediaType": "",
  "sortBy": "relevance",
  "maxItems": 100,
  "includeFiles": false,
  "includeDerivedFiles": false,
  "maxFilesPerItem": 100,
  "includeReviews": false,
  "requestDelayMs": 500
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset containing the extracted items.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("archive-scout-labs/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("archive-scout-labs/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 '{}' |
apify call archive-scout-labs/internet-archive-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,archive-scout-labs/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/hSVnoLANnWLZDHWJx/builds/zFuaGceEg6dW54xEc/openapi.json
