Search Internet Archive Items
ia_search_itemsSearch the Internet Archive library (40M+ items) using the Advanced Search (Solr) API. Filter by media type (texts, audio, movies, software, image, etc.), collection, creator, publication date range, and language. Sort by downloads (the default), date, title, or random. Supports pagination via page/rows. Returns identifiers, titles, creators (the first 10, with creator_count when a record lists more), media types, publication dates, upload dates (publicdate), download counts, collections (without fav- favorites lists), total_found, and current page/rows for pagination context. Use ia_get_item with a returned identifier to get full metadata and file manifests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "ia_search_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-indexed). Combine with rows for pagination. Advanced Search serves only the first 10,000 results, so page × rows ≤ 10,000 (page 50 at 200 rows, page 200 at 50). | |
| rows | No | Number of results per page (default 50). One call returns at most 200: on page 1 a larger value (up to 10,000) is served as 200 with a notice naming the next page; on later pages a value above 200 is rejected. | |
| sort | No | Sort order in Solr format: a sortable field followed by asc or desc, e.g. "downloads desc", "date asc", "publicdate desc", "titleSorter asc", or "random". Default: "downloads desc". Advanced Search has no relevance sort. Except under random, results tied under the sort are ordered by identifier, so consecutive pages neither repeat nor skip an item. | |
| query | Yes | Solr query string. Supports field prefixes such as title:"war and peace", creator:dickens, subject:history. Plain keywords search all fields. Put a URL in quotes. At most 2,047 characters, a limit the filters below also count toward. | |
| creator | No | Filter by creator name, e.g. "Charles Dickens". Matches a creator holding every word of the name close together, in any order and case-insensitively, so "Charles Dickens" also finds "Dickens, Charles, 1812-1870" and "Charles John Huffam Dickens". For an exact phrase, put creator:"Charles Dickens" in query instead. Must contain a letter or digit. | |
| date_to | No | Inclusive end of a range on the publication date (date): YYYY, YYYY-MM, or YYYY-MM-DD. A year or month ends on its last day; blank means no upper bound. Must be a real Gregorian date. An item with no date never matches. For an upload-time range, put publicdate in query instead, e.g. publicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day. | |
| language | No | Filter by language: an ISO 639-1, ISO 639-2, or discontinued MARC code, or an English name, e.g. "eng", "en", "English", or "fre". Case-insensitive. A known language matches records under any of its codes and names ("fr" also finds "fre", "fra", and "French"), except a two-letter code that is also an English word (am, an, as, be, he, hi, is, it, my, no, or, so, to), matched only when it is the value given; any other value is matched as given. For a single spelling, put language:"eng" in query instead. Must contain a letter or digit. | |
| date_from | No | Inclusive start of a range on the publication date (date): YYYY, YYYY-MM, or YYYY-MM-DD. A year or month starts on its first day; blank means no lower bound. Must be a real Gregorian date. An item with no date never matches. For an upload-time range, put publicdate in query instead, e.g. publicdate:[2026-11-01 TO 2026-11-21]; a bare upper date covers its whole day. | |
| mediatype | No | Filter by media type: texts, movies, audio, software, image, data, web, collection, etree (live concert recordings), or account. Case-insensitive; text, book, and books mean texts, movie, video, and videos mean movies, images means image, and collections means collection. Any other value is rejected. | |
| collection | No | Filter to items within a collection, given by identifier, e.g. "gutenberg" or "librivoxaudio", or by its archive.org details URL, e.g. https://archive.org/details/gutenberg. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The per-call cap applied to rows (200). | |
| page | No | Current page number (1-indexed). | |
| rows | No | Rows per page applied: the requested rows, or 200 when a larger value was capped. | |
| error | No | Present when the call failed. Absent on success. | |
| items | No | Items matching the search query. | |
| shown | No | Number of items returned. | |
| notice | No | Guidance when the page came back empty — nothing matched (naming every filter applied), or the requested page is past the last page of results — or when rows was capped, naming the rows and page that continue. | |
| truncated | No | True when rows above 200 was served at 200 and more results remain. | |
| total_found | No | Total number of matching items across all pages. |