1.0.37 • Published 11 months ago
internetarchive-sdk-js v1.0.37
Internet Archive SDK for JavaScript
NodeJS / Typescript SDK for Internet Archive APIs
Internet Archive APIs
https://archive.org/services/docs/api/
Install
Use pnpm
to install the module
pnpm install internetarchive-sdk-js
Or use npm
to install the module
npm install internetarchive-sdk-js
Or use yarn
to install the module
yarn add internetarchive-sdk-js
Library Documentation
https://mxwllstn.github.io/internetarchive-sdk-js/classes/InternetArchive.html
Usage
Get Items
import InternetArchive from 'internetarchive-sdk-js'
const ia = new InternetArchive()
void (async () => {
const filters = {
collection: 'library_of_congress',
subject: 'basketball'
}
const options = {
rows: 10,
fields: 'identifier'
}
const items = await ia.getItems({ filters, options })
console.log(items.response.docs)
})()
Update Item (Requires "S3-Like API Key")
import InternetArchive from 'internetarchive-sdk-js'
const { API_KEY } = process.env || {}
const ia = new InternetArchive(API_KEY, { testmode: true })
void (async () => {
const itemId = 'internetarchive-test-item-id'
try {
const response = await ia.updateItem(itemId, { title: 'new title' })
console.log(response)
} catch (err) {
console.log(err.message)
}
})()
1.0.24-beta
1 year ago
1.0.19-beta
1 year ago
1.0.20-beta
1 year ago
1.0.23-beta
1 year ago
1.0.26
1 year ago
1.0.25
1 year ago
1.0.29
12 months ago
1.0.28
12 months ago
1.0.27
12 months ago
1.0.22-beta
1 year ago
1.0.18-beta
1 year ago
1.0.37-beta.1
11 months ago
1.0.33
12 months ago
1.0.32
12 months ago
1.0.31
12 months ago
1.0.30
12 months ago
1.0.37
11 months ago
1.0.21-beta
1 year ago
1.0.36
12 months ago
1.0.35
12 months ago
1.0.34
12 months ago
1.0.16-beta
1 year ago
1.0.17-beta
1 year ago
1.0.15-beta
2 years ago
1.0.11-beta
2 years ago
1.0.12-beta
2 years ago
1.0.14-beta
2 years ago
1.0.13-beta
2 years ago
1.0.8-beta
3 years ago
1.0.10-beta
3 years ago
1.0.9-beta
3 years ago
1.0.7-beta
3 years ago
1.0.6-beta
3 years ago
1.0.5-beta
3 years ago
1.0.4-beta
3 years ago
1.0.3-beta
3 years ago
1.0.2-beta
3 years ago
1.0.1-beta
3 years ago
1.0.0-beta
3 years ago
1.0.0
3 years ago