1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "country": "US",
10 "enableListingSearch": True,
11 "searchKeywords": [
12 "vintage jeans",
13 "nike dunk",
14 ],
15 "searchMaxResults": 20,
16 "searchSort": "newest",
17 "searchOnSale": False,
18 "searchFetchFullDetails": False,
19 "enableListingDetails": False,
20 "listingSlugs": [],
21 "listingUrls": [],
22 "enableSellerListings": False,
23 "sellerUsernames": ["depop"],
24 "sellerMaxListings": 30,
25 "enableSellerProfile": False,
26 "enableSoldHistory": False,
27 "soldMaxItems": 30,
28 "enableScrapeByUrl": False,
29 "scrapeUrls": ["https://www.depop.com/search/?q=vintage+levis"],
30 "scrapeMaxPages": 3,
31 "enableTrending": False,
32 "trendingCategory": "streetwear",
33 "trendingMaxItems": 30,
34 "extractSellerContacts": True,
35 "includeSoldHistory": True,
36 "includeShippingDetails": True,
37 "includeRaw": False,
38 "webhookFormat": "json",
39 "proxyConfiguration": {
40 "useApifyProxy": True,
41 "apifyProxyGroups": ["RESIDENTIAL"],
42 "apifyProxyCountry": "US",
43 },
44}
45
46
47run = client.actor("b2b_leads/depop-real-time-data").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54