Optional
token: stringS3-like API Key formatted as "accesskey:secretkey" (required for all methods except getItem or getItems)
InternetArchive API options
Optional
setScanner?: booleanoption to add scanner metadata for internetarchive-sdk-js - default TRUE
Optional
testmode?: booleanOption to add item to Test Collection (auto deletes in 30 days) - default FALSE
Optional
optionsOptional
tokenStatic
defaultCreates an Item in a Collection (Uploads a file and adds metadata).
identifier, collection, mediatype, upload, metadata.
The collection that the item belongs to.
The unique identifier for the item.
The item mediatype.
Optional
metadata?: Record<string, unknown>The item metadata (optional).
The item upload.
The item identifier, metadata, and upload filename.
Deletes a File from an Item.
The path of the file [identifier/filename].
Returns an Item by identifier.
The unique identifier for the item.
Item metadata, file paths, and other info.
Returns Items based on filters and options.
filters (collection, subject, creator) and options (fields, rows).
Optional
filters?: { collection?: string; creator?: string; subject?: string }Optional
options?: { fields?: string; rows?: number }The responseHeader and response with items as docs.
Returns Tasks from an Item.
identifier, mediatype, file.
Optional
criteria: TaskCriteriaParameters to filter item tasks.
Updates an Item by identifier and metadata.
The unique identifier for the item.
The item metadata.
Update response (success, error, task_id, log).
Uploads a File to a parent Item.
identifier, mediatype, file.
The upload file.
The unique identifier of the parent item.
The upload mediatype.
Provides access to Internet Archive APIs through methods