1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "sitemapDirectory",
12 "searchQueries": [
13 "logo design"
14 ],
15 "searchUrls": [],
16 "gigUrls": [],
17 "sellerUrls": [],
18 "sitemapType": "gigs",
19 "searchKeyword": "logo",
20 "maxShards": 1,
21 "categoryLevel": "",
22 "ideaType": "",
23 "category": "",
24 "sortBy": "relevance",
25 "sellerLevels": [],
26 "sellerLanguages": [],
27 "sellerCountries": [],
28 "deliveryTime": "any",
29 "proOnly": false,
30 "onlineOnly": false,
31 "agencyOnly": false,
32 "hourlyOnly": false,
33 "facets": [],
34 "includeGigDetails": false,
35 "includePackages": true,
36 "includeFaq": true,
37 "includeSellerGigs": true,
38 "includeSellerReviews": true,
39 "includeMarketSummary": false,
40 "maxPagesPerQuery": 1,
41 "maxItems": 3
42};
43
44
45const run = await client.actor("vexaloom-labs/fiverr-gig-and-seller-sitemap-directory-scraper").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55