1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "isbns",
12 "bookUrls": [
13 "https://www.goodreads.com/book/show/4671.The_Great_Gatsby"
14 ],
15 "searchQueries": [],
16 "isbns": [
17 "9780743273565"
18 ],
19 "authorUrls": [],
20 "seriesUrls": [],
21 "listUrls": [],
22 "shelfNames": [],
23 "genreNames": [],
24 "maxItems": 1,
25 "detailLevel": "full",
26 "includeMetadata": false,
27 "includeRelated": false,
28 "maxReviewsPerBook": 3,
29 "reviewSort": "DEFAULT",
30 "reviewLanguage": "all",
31 "excludeSpoilers": false,
32 "maxEditionsPerBook": 3,
33 "quoteTags": [
34 "love"
35 ],
36 "quoteAuthorUrls": [],
37 "quoteWorkUrls": [],
38 "maxQuotesPerSource": 3,
39 "maxSimilarPerBook": 5,
40 "maxListsPerBook": 5,
41 "releaseYear": 2026,
42 "releaseMonth": "all"
43};
44
45
46const run = await client.actor("dataspryva/goodreads-book-author-and-listopia-list-scraper").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56