1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "identifiers": [
12 "B0BN72FYFG",
13 "https://www.amazon.com/Apple-2025-MacBook-15-inch-Laptop/dp/B0DZDBDCFH/",
14 "https://keepa.com/#!deals/%7B%22page%22%3A0%2C%22domainId%22%3A%221%22%2C%22excludeCategories%22%3A%5B%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%5D%2C%22includeCategories%22%3A%5B%5B%5D%2C%5B2625373011%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%2C%5B%5D%5D%2C%22priceTypes%22%3A%5B18%5D%2C%22deltaRange%22%3A%5B100%2C100000%5D%2C%22deltaPercentRange%22%3A%5B80%2C90%5D%2C%22salesRankRange%22%3A%5B-1%2C-1%5D%2C%22currentRange%22%3A%5B500%2C50000%5D%2C%22minRating%22%3A40%2C%22isLowest%22%3Afalse%2C%22isLowest90%22%3Afalse%2C%22isLowestOffer%22%3Afalse%2C%22isOutOfStock%22%3Afalse%2C%22titleSearch%22%3A%22%22%2C%22isRangeEnabled%22%3Atrue%2C%22isFilterEnabled%22%3Atrue%2C%22filterErotic%22%3Afalse%2C%22singleVariation%22%3Afalse%2C%22hasReviews%22%3Afalse%2C%22isPrimeExclusive%22%3Afalse%2C%22mustHaveAmazonOffer%22%3Afalse%2C%22mustNotHaveAmazonOffer%22%3Afalse%2C%22sortType%22%3A4%2C%22dateRange%22%3A%221%22%2C%22warehouseConditions%22%3A%5B1%2C2%2C3%2C4%2C5%5D%2C%22settings%22%3A%7B%22viewTyp%22%3A0%7D%2C%22perPage%22%3A150%2C%22salesRankDisplayGroup%22%3A%5B%5D%2C%22websiteDisplayGroupName%22%3A%5B%5D%2C%22websiteDisplayGroup%22%3A%5B%5D%2C%22type%22%3A%5B%5D%2C%22manufacturer%22%3A%5B%5D%2C%22brand%22%3A%5B%5D%2C%22brandStoreName%22%3A%5B%5D%2C%22brandStoreUrlName%22%3A%5B%5D%2C%22model%22%3A%5B%5D%2C%22color%22%3A%5B%5D%2C%22size%22%3A%5B%5D%2C%22unitType%22%3A%5B%5D%2C%22scent%22%3A%5B%5D%2C%22itemForm%22%3A%5B%5D%2C%22pattern%22%3A%5B%5D%2C%22style%22%3A%5B%5D%2C%22material%22%3A%5B%5D%2C%22itemTypeKeyword%22%3A%5B%5D%2C%22targetAudienceKeyword%22%3A%5B%5D%2C%22edition%22%3A%5B%5D%2C%22format%22%3A%5B%5D%2C%22author%22%3A%5B%5D%2C%22binding%22%3A%5B%5D%2C%22languages%22%3A%5B%5D%2C%22partNumber%22%3A%5B%5D%7D"
15 ],
16 "output_fields": []
17};
18
19
20const run = await client.actor("radeance/keepa-scraper").call(input);
21
22
23console.log('Results from dataset');
24console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
25const { items } = await client.dataset(run.defaultDatasetId).listItems();
26items.forEach((item) => {
27 console.dir(item);
28});
29
30