1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "start": 1,
10 "limit": 100,
11 "sort_by": "trending_24h",
12 "sort_type": "desc",
13 "convert": [
14 "USD",
15 "BTC",
16 "ETH",
17 ],
18 "audited": False,
19 "aux": [
20 "ath",
21 "atl",
22 "high24h",
23 "low24h",
24 "num_market_pairs",
25 "cmc_rank",
26 "date_added",
27 "max_supply",
28 "circulating_supply",
29 "total_supply",
30 "volume_7d",
31 "volume_30d",
32 "self_reported_circulating_supply",
33 "self_reported_market_cap",
34 ],
35}
36
37
38run = client.actor("maged120/crypto").call(run_input=run_input)
39
40
41print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
42for item in client.dataset(run["defaultDatasetId"]).iterate_items():
43 print(item)
44
45