Unofficial AllKeyShop API made in typescript
npm install allkeyshop-api
import { AllkeyshopService } from 'allkeyshop-api'
const allkeyshopService = new AllkeyshopService()
const options = {
currency: 'eur',
platform: '',
store: 'steam'
}
const allkeyshopService = new AllkeyshopService(options)
- Currency: Get prices in the selected currency. Default: eur
- Platform: Get prices for the selected platform. Default: '' (PC). Possible values: 'PS5', 'Xbox One', 'Nintendo Switch' etc.
- Store: Filter by selected store. Default: '' (any). Possible values: 'steam', 'origin', 'ea-app', 'uplay', 'gog', 'epic' etc.
allkeyshopService.search('Borderlands 3').then((data) => {
console.log(data)
})
// Output:
// {
// success: true,
// offers: [
// {
// id: 133508130,
// affiliateUrl: 'https://www.g2a.com/borderlands-3-standard-edition-steam-key-europe-i10000186970058?aid=13344657>ag=dccb1b16c9&utm_content=COM_GLOBAL_PB_PLUS_GAM_LISTING_NOR_allkeyshopPLUS',
// isActive: true,
// merchant: '61616',
// price: [Object],
// edition: '1',
// region: '9',
// stock: 'InStock',
// platform: 'steam'
// },
// ...
// ],
// merchants: {
// '1': {
// id: '1',
// name: 'Steam',
// aggregateRating: [Object],
// types: 'Official Store',
// searchable: 1,
// paymentMethods: [Object],
// logoSlug: 'steam',
// reviewUrl: 'https://www.allkeyshop.com/blog/review/steam/'
// },
// ...
// },
// editions: {
// '1': { id: '1', name: 'Standard' },
// ...
// },
// regions: {
// '1': { id: '1', name: 'GLOBAL', filterName: 'PUBLISHER GLOBAL' },
// ...
// }
// }
allkeyshopService.find('FIFA 22').then((data) => {
console.log(data)
})
// Output:
// {
// status: 'success',
// games: [
// { id: '83060', name: 'FIFA 22' },
// { id: '83063', name: 'FIFA 22 PS4' },
// ...
// ]
// }
Search for games and get the cheapest price for each platform
- Search any game and get all key prices, including official stores and key resellers
- Filter by platform
- Filter by store
- Search by specific currency
Feel free to submit issues and enhancement requests here: Report Issue
If you want to support the project, you can buy me a coffee. Thanks!
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!