1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "country": "US",
12 "enableListingSearch": true,
13 "searchKeywords": [
14 "carhartt detroit jacket",
15 "vintage 90s levis 501",
16 "patagonia fleece"
17 ],
18 "searchMaxResults": 10,
19 "searchSort": "relevance",
20 "searchCondition": "",
21 "searchFetchFullDetails": false,
22 "enableListingDetails": false,
23 "listingIds": [],
24 "listingUrls": [],
25 "enableClosetListings": false,
26 "sellerUsernames": [
27 "https://www.vinted.com/member/3186166439-abbier399"
28 ],
29 "sellerMaxListings": 30,
30 "enableSellerProfile": false,
31 "enableSoldHistory": false,
32 "soldItemUrls": [],
33 "soldItemIds": [],
34 "soldMaxItems": 30,
35 "enableScrapeByUrl": false,
36 "scrapeUrls": [
37 "https://www.vinted.com/catalog?search_text=vintage%20carhartt"
38 ],
39 "webhookFormat": "json",
40 "proxyConfiguration": {
41 "useApifyProxy": true,
42 "apifyProxyGroups": [
43 "RESIDENTIAL"
44 ],
45 "apifyProxyCountry": "US"
46 }
47};
48
49
50const run = await client.actor("b2b_leads/vinted-real-time-data-scraper").call(input);
51
52
53console.log('Results from dataset');
54console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60