Internet Archive API
Returns searchable item metadata, collections, recent uploads and file lists from the Internet Archive's digital library.
View as Markdown| GET | /internetarchive/search | Search the Internet Archive's items with a query in Lucene syntax, such as title:(pride and prejudice). |
| GET | /internetarchive/item | The metadata of one Internet Archive item: title, creators, date, language, subjects and description. |
| GET | /internetarchive/collections | Collections of the Internet Archive that match a word, such as literature. Without a word it lists collections in general. |
| GET | /internetarchive/recent | The newest items of one media type that the Internet Archive published, newest first. |
| GET | /internetarchive/files | The files of one item with their format and size, such as the scanned text and the PDF. |
| GET | /internetarchive/closestSnapshot | The Wayback Machine capture of a web page closest to a date: its snapshot URL and capture time. Use it to see how a page looked at a past date. |
search
/v1/internetarchive/searchSearch the Internet Archive's items with a query in Lucene syntax, such as title:(pride and prejudice).
Parameters
querystring required | Search terms or a field query, such as title:(pride and prejudice). e.g. title:(pride and prejudice) |
limitinteger | Items per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
creators | string[] |
date | string |
identifier | string |
mediaType | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/internetarchive/search?query=title%3A%28pride+and+prejudice%29" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/internetarchive/search?query=title%3A%28pride+and+prejudice%29", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/internetarchive/search?query=title%3A%28pride+and+prejudice%29", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "creators": [ "jane austen" ], "date": "1950-01-01", "identifier": "bwb_S0-ATA-454", "mediaType": "texts", "title": "pride and prejudice sense and sensibility", "url": "https://archive.org/details/bwb_S0-ATA-454" }, { "creators": [ "Jane Austen" ], "date": "2013-01-01", "identifier": "prideprejudiceli0000jane_k4s7", "mediaType": "texts", "title": "Pride and Prejudice: Lit for Little Hands", "url": "https://archive.org/details/prideprejudiceli0000jane_k4s7" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "internetarchive", "requestId": "req_2Xb9kQ…", "units": 1 } }
item
/v1/internetarchive/itemThe metadata of one Internet Archive item: title, creators, date, language, subjects and description.
Parameters
idstring required | Item identifier, such as prideandprejudice00aust. e.g. prideandprejudice00aust |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
creators | string[] |
date | string |
description | string |
fileCount | integer (int64) |
identifier | string |
language | string |
mediaType | string |
subjects | string[] |
title | string |
url | string |
curl "https://api.hoshime.com/v1/internetarchive/item?id=prideandprejudice00aust" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/internetarchive/item?id=prideandprejudice00aust", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/internetarchive/item?id=prideandprejudice00aust", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "creators": [ "Austen, Jane, 1775-1817" ], "date": "1956", "description": "Reprint of the R. W. Chapman text\nWith a reproduction of the original t. p., with imprint : London, Printed for T. Egerton, 1813\n\"Bibliograp…", "fileCount": 27, "identifier": "prideandprejudice00aust", "language": "eng", "mediaType": "texts", "subjects": [ "Social classes", "Young women" ], "title": "Pride and prejudice", "url": "https://archive.org/details/prideandprejudice00aust" }, "meta": { "cached": false, "endpoint": "item", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "internetarchive", "requestId": "req_2Xb9kQ…", "units": 1 } }
collections
/v1/internetarchive/collectionsCollections of the Internet Archive that match a word, such as literature. Without a word it lists collections in general.
Parameters
querystring | Words in the collection title or description, such as literature. e.g. literature |
limitinteger | Collections per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
creators | string[] |
date | string |
identifier | string |
mediaType | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/internetarchive/collections?query=literature" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/internetarchive/collections?query=literature", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/internetarchive/collections?query=literature", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "creators": [ "Saatyaki S/o Seshendra Sharma" ], "date": "", "identifier": "fav-saatyaki_s_o_seshendra_sharma", "mediaType": "collection", "title": "Saatyaki S/o Seshendra Sharma's Favourites", "url": "https://archive.org/details/fav-saatyaki_s_o_seshendra_sharma" }, { "creators": [], "date": "", "identifier": "fav-literature_club570", "mediaType": "collection", "title": "literature club570 Favorites", "url": "https://archive.org/details/fav-literature_club570" } ], "meta": { "cached": false, "endpoint": "collections", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "internetarchive", "requestId": "req_2Xb9kQ…", "units": 1 } }
recent
/v1/internetarchive/recentThe newest items of one media type that the Internet Archive published, newest first.
Parameters
mediaTypestring | Media type: texts, audio, movies, image, software, etree, data, web or collection.textsaudiomoviesimagesoftwareetreedatawebcollectiondefault textse.g. texts |
limitinteger | Items per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
creators | string[] |
date | string |
identifier | string |
mediaType | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/internetarchive/recent?mediaType=texts" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/internetarchive/recent?mediaType=texts", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/internetarchive/recent?mediaType=texts", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "creators": [ "hamini" ], "date": "2017-05-12", "identifier": "tapas-io-65912-anemone-and-catharus", "mediaType": "texts", "title": "Anemone and Catharus", "url": "https://archive.org/details/tapas-io-65912-anemone-and-catharus" }, { "creators": [ "Gernot Dorau" ], "date": "1974-10-28", "identifier": "dorau-10-1974", "mediaType": "texts", "title": "Dorau 10 1974", "url": "https://archive.org/details/dorau-10-1974" } ], "meta": { "cached": false, "endpoint": "recent", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "internetarchive", "requestId": "req_2Xb9kQ…", "units": 1 } }
files
/v1/internetarchive/filesThe files of one item with their format and size, such as the scanned text and the PDF.
Parameters
idstring required | Item identifier, such as prideandprejudice00aust. e.g. prideandprejudice00aust |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
id | string |
items | File[] |
format | string |
name | string |
size | integer (int64) |
source | string |
url | string |
curl "https://api.hoshime.com/v1/internetarchive/files?id=prideandprejudice00aust" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/internetarchive/files?id=prideandprejudice00aust", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/internetarchive/files?id=prideandprejudice00aust", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "id": "prideandprejudice00aust", "items": [ { "format": "Item Tile", "name": "__ia_thumb.jpg", "size": 23841, "source": "original", "url": "https://archive.org/download/prideandprejudice00aust/__ia_thumb.jpg" }, { "format": "EPUB", "name": "prideandprejudice00aust.epub", "size": 2029819, "source": "derivative", "url": "https://archive.org/download/prideandprejudice00aust/prideandprejudice00aust.epub" } ] }, "meta": { "cached": false, "endpoint": "files", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "internetarchive", "requestId": "req_2Xb9kQ…", "units": 1 } }
closestSnapshot
/v1/internetarchive/closestSnapshotThe Wayback Machine capture of a web page closest to a date: its snapshot URL and capture time. Use it to see how a page looked at a past date.
Parameters
urlstring required | Web page address, such as https://example.com/. e.g. https://example.com/ |
timestampstring | Date to search around, as YYYY, YYYYMMDD or YYYYMMDDhhmmss. Omit it for the latest capture. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
capturedAt | string |
originalUrl | string |
statusCode | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/internetarchive/closestSnapshot?url=https%3A%2F%2Fexample.com%2F" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/internetarchive/closestSnapshot?url=https%3A%2F%2Fexample.com%2F", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/internetarchive/closestSnapshot?url=https%3A%2F%2Fexample.com%2F", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "capturedAt": "2026-11-06T09:41:00Z", "originalUrl": "https://…", "statusCode": 0, "url": "https://…" }, "meta": { "cached": false, "endpoint": "closestSnapshot", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "internetarchive", "requestId": "req_2Xb9kQ…", "units": 1 } }