1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "country": "de",
13 "queries": [
14 "nike"
15 ],
16 "urls": [
17 "https://www.vinted.de/catalog?search_text=nike",
18 "https://www.vinted.de/catalog?search_text=nike&page=2",
19 "https://www.vinted.de/catalog?search_text=nike&order=newest_first",
20 "https://www.vinted.de/catalog?search_text=nike&catalog[]=1242&brand_ids[]=53&price_to=50&status_ids[]=6",
21 "https://www.vinted.de/catalog?brand_ids[]=53",
22 "https://www.vinted.de/catalog/1242-sneakers",
23 "https://www.vinted.de/catalog/1242-sneakers?page=2&order=newest_first",
24 "https://www.vinted.de/catalog/1242-sneakers?brand_ids[]=53",
25 "https://www.vinted.de/brand/53-nike",
26 "https://www.vinted.de/items/10566802080-nike-sneaker",
27 "https://www.vinted.de/items/10566802080",
28 "https://www.vinted.co.uk/items/10566802080-nike-sneaker",
29 "https://www.vinted.de/member/3162455054",
30 "https://www.vinted.de/member/3162455054-vrna21",
31 "https://www.vinted.de/member/3162455054?page=2",
32 "https://www.vinted.co.uk/catalog?search_text=nike",
33 "https://www.vinted.com/catalog?search_text=nike",
34 "https://vinted.de/catalog?search_text=nike"
35 ],
36 "sellers": [
37 "https://www.vinted.de/member/3162455054"
38 ],
39 "proxy": {
40 "useApifyProxy": true,
41 "apifyProxyGroups": [
42 "RESIDENTIAL"
43 ]
44 },
45 "incrementalMode": false,
46 "emitUnchanged": false,
47 "emitExpired": false,
48 "ignoreFieldsForChanges": []
49};
50
51
52const run = await client.actor("abotapi/vinted-marketplace-scraper").call(input);
53
54
55console.log('Results from dataset');
56console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62