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": ["vintage jeans"],
12 "searchMaxResults": 10,
13 "searchSort": "newest",
14 "searchOnSale": False,
15 "searchFetchFullDetails": False,
16 "enableListingDetails": False,
17 "listingSlugs": [],
18 "listingUrls": [],
19 "sellerUsernames": ["jes626"],
20 "enableSellerProfile": False,
21 "enableScrapeByUrl": False,
22 "scrapeUrls": ["https://www.depop.com/search/?q=vintage+levis"],
23 "scrapeMaxPages": 3,
24 "enableTrending": False,
25 "trendingCategory": "streetwear",
26 "trendingMaxItems": 30,
27 "extractSellerContacts": True,
28 "includeSoldHistory": True,
29 "includeShippingDetails": True,
30 "webhookFormat": "json",
31 "proxyConfiguration": {
32 "useApifyProxy": True,
33 "apifyProxyGroups": ["RESIDENTIAL"],
34 "apifyProxyCountry": "US",
35 },
36}
37
38
39run = client.actor("b2b_leads/depop-real-time-data").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46