Skip to content

Internet Archive API

6 endpointsSearch & KnowledgeGlobalsocial:read5 real examples

Returns searchable item metadata, collections, recent uploads and file lists from the Internet Archive's digital library.

View as Markdown
GET/internetarchive/searchSearch the Internet Archive's items with a query in Lucene syntax, such as title:(pride and prejudice).
GET/internetarchive/itemThe metadata of one Internet Archive item: title, creators, date, language, subjects and description.
GET/internetarchive/collectionsCollections of the Internet Archive that match a word, such as literature. Without a word it lists collections in general.
GET/internetarchive/recentThe newest items of one media type that the Internet Archive published, newest first.
GET/internetarchive/filesThe files of one item with their format and size, such as the scanned text and the PDF.
GET/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.

item

GET/v1/internetarchive/item

The metadata of one Internet Archive item: title, creators, date, language, subjects and description.

scope social:read1 unitcached 24 h

Parameters

id
string
required
Item identifier, such as prideandprejudice00aust.
e.g. prideandprejudice00aust
tunnel
string
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.
proxy
string
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.
profileId
string
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
creatorsstring[]
datestring
descriptionstring
fileCountinteger (int64)
identifierstring
languagestring
mediaTypestring
subjectsstring[]
titlestring
urlstring
curl "https://api.hoshime.com/v1/internetarchive/item?id=prideandprejudice00aust" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/internetarchive/collections

Collections of the Internet Archive that match a word, such as literature. Without a word it lists collections in general.

scope social:read1 unitcached 1 hpaginated

Parameters

query
string
Words in the collection title or description, such as literature.
e.g. literature
limit
integer
Collections per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
creatorsstring[]
datestring
identifierstring
mediaTypestring
titlestring
urlstring
curl "https://api.hoshime.com/v1/internetarchive/collections?query=literature" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/internetarchive/recent

The newest items of one media type that the Internet Archive published, newest first.

scope social:read1 unitcached 15 minpaginated

Parameters

mediaType
string
Media type: texts, audio, movies, image, software, etree, data, web or collection.
textsaudiomoviesimagesoftwareetreedatawebcollection
default textse.g. texts
limit
integer
Items per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
creatorsstring[]
datestring
identifierstring
mediaTypestring
titlestring
urlstring
curl "https://api.hoshime.com/v1/internetarchive/recent?mediaType=texts" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/internetarchive/files

The files of one item with their format and size, such as the scanned text and the PDF.

scope social:read1 unitcached 24 h

Parameters

id
string
required
Item identifier, such as prideandprejudice00aust.
e.g. prideandprejudice00aust
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
itemsFile[]
formatstring
namestring
sizeinteger (int64)
sourcestring
urlstring
curl "https://api.hoshime.com/v1/internetarchive/files?id=prideandprejudice00aust" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 1 h

Parameters

url
string
required
Web page address, such as https://example.com/.
e.g. https://example.com/
timestamp
string
Date to search around, as YYYY, YYYYMMDD or YYYYMMDDhhmmss. Omit it for the latest capture.
tunnel
string
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.
proxy
string
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.
profileId
string
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
capturedAtstring
originalUrlstring
statusCodeinteger (int64)
urlstring
curl "https://api.hoshime.com/v1/internetarchive/closestSnapshot?url=https%3A%2F%2Fexample.com%2F" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open