# Internet Archive Search - Books, Audio, Video, Software (`kdhan/internet-archive-search`) Actor

Search archive.org items by keyword, media type, collection, year and language, or look up items by identifier. Returns title, creator, date, subjects, collections, downloads, license, file list and links. Official Internet Archive APIs, no scraping, no uploader identities.

- **URL**: https://apify.com/kdhan/internet-archive-search.md
- **Developed by:** [Doohan Kim](https://apify.com/kdhan) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 internet archive item returneds

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 Search - Books, Audio, Video, Software

Search the [Internet Archive](https://archive.org) - tens of millions of free books, audio recordings,
films, software titles, images and web captures - by keyword, media type, collection, year and language,
or look up specific items by identifier. One row per item, with direct links to the item page, its
download folder and thumbnail. Uses the official archive.org search and metadata APIs; no scraping.

### What you get (one row per item)

`identifier`, `title`, `creators[]`, `date`, `year`, `mediaType`, `collections[]`, `subjects[]`,
`description` (first 600 characters), `languages[]`, `publisher`, `contributor`, `isbn[]`, `issn[]`,
`volume`, `licenseUrl`, `rights`, `downloads`, `itemSizeBytes`, `imageCount`, `addedToArchive`,
`detailsUrl`, `downloadUrl`, `thumbnailUrl`, `retrievedAt`, `disclaimer`.

Identifier lookups additionally return `filesCount` and, when `includeFiles` is on, `files[]`
(name, format, size, direct download link; up to 200 files, `filesTruncated` tells you when more exist).

Uploader account names, personal favourite lists (`fav-...` collections), e-mail addresses, scanning-operator
names and file checksums are deliberately **not** returned. E-mail addresses that contributors typed into descriptions are blanked.

### Input

| Field | Meaning |
|---|---|
| `searchTerms` | Matched against title, description, subjects and creator. Quotes make a phrase; `AND`, `OR`, `NOT` and field prefixes such as `creator:(twain)` or `subject:(jazz)` work. Each term is its own search. |
| `mediaTypes` | `texts`, `audio`, `movies`, `software`, `image`, `data`, `web`, `etree`, `collection`. Empty means all. |
| `collections` | Collection identifiers such as `gutenberg`, `librivoxaudio`, `prelinger`, `opensource_movies`. |
| `yearFrom` / `yearTo` | Publication year range. |
| `languages` | Codes or names as stored on archive.org, for example `eng`, `kor`, `Korean`. |
| `sortBy` | `relevance` (needs search terms), `downloads`, `date_newest`, `date_oldest`, `added_newest`, `title`. |
| `maxResults` | Per search term, default 25, max 1000. |
| `identifiers` | Up to 100 archive.org identifiers (or item URLs) to look up directly. Unknown identifiers return `found: false` and are free. |
| `includeFiles` | Return the file list for identifier lookups (default on). |

With no input the Actor runs an example search ("korean history" in texts, 25 results).

### Notes

- Metadata is what contributors uploaded: fields can be missing, inconsistent or in any language.
  Download counts change daily. `year` falls back to the first four digits of `date` when the
  archive has no year field.
- Each item carries its own license (`licenseUrl` / `rights`); public domain is common but not
  guaranteed. Check before reusing content.
- archive.org search returns at most 10,000 results per query; the Actor stays within that limit.
- Billing: one `item-record` event per item returned. Queries or identifiers that find nothing
  or fail (row with `found: false` or `found: null` and an `error`) are free.
- Not affiliated with or endorsed by the Internet Archive.

# Actor input Schema

## `searchTerms` (type: `array`):

Matched against title, description, subjects and creator (archive.org full-text metadata search). Quotes make a phrase; AND, OR, NOT (uppercase) and field prefixes such as creator:(twain) or subject:(jazz) work. Each term is a separate search.

## `mediaTypes` (type: `array`):

Limit to these item types. Leave empty for all.

## `collections` (type: `array`):

Collection identifiers, for example gutenberg, librivoxaudio, prelinger, opensource_movies. Items in any of them match.

## `yearFrom` (type: `integer`):

Earliest publication year to include.

## `yearTo` (type: `integer`):

Latest publication year to include.

## `languages` (type: `array`):

Language codes or names as archive.org stores them, for example eng, kor, Korean, fre, ger. Items in any of them match.

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

Relevance only applies when search terms are given.

## `maxResults` (type: `integer`):

Upper limit of items returned for each search term. You are charged per item returned.

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

Look up specific items by their archive.org identifier (the last part of https://archive.org/details/<identifier>). Up to 100.

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

For identifier lookups, also return the item's files (name, format, size, download link). Up to 200 files per item.

## Actor input object example

```json
{
  "searchTerms": [
    "korean history"
  ],
  "mediaTypes": [
    "texts"
  ],
  "sortBy": "relevance",
  "maxResults": 25,
  "includeFiles": true
}
```

# Actor output Schema

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

Item metadata: identifier, title, creators, date, year, media type, collections, subjects, description (first 600 characters), language, license, downloads, size, links and, for identifier lookups, the file list.

# 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 = {
    "searchTerms": [
        "korean history"
    ],
    "mediaTypes": [
        "texts"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kdhan/internet-archive-search").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 = {
    "searchTerms": ["korean history"],
    "mediaTypes": ["texts"],
}

# Run the Actor and wait for it to finish
run = client.actor("kdhan/internet-archive-search").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 '{
  "searchTerms": [
    "korean history"
  ],
  "mediaTypes": [
    "texts"
  ]
}' |
apify call kdhan/internet-archive-search --silent --output-dataset

```

## MCP server setup

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

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/PeMj4y1P00R973woJ/builds/vdSdClMddhcxcLHCw/openapi.json
