1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "scenarios": [{
9 "id": "object-storage-monthly",
10 "workloadLabel": "Object storage monthly capacity",
11 "comparisonAssumptions": "Compare the first public storage tier for the same monthly capacity. Requests, retrieval, replication, egress, discounts, tax, support, credits, and free tiers are excluded.",
12 "normalizedUsage": {
13 "unit": "storage-gb-month",
14 "quantity": 1000,
15 },
16 "aws": {
17 "serviceCode": "AmazonS3",
18 "region": "us-east-1",
19 "selectors": {
20 "productFamily": "Storage",
21 "unit": "GB-Mo",
22 "descriptionIncludes": ["first 50 TB"],
23 "attributes": {
24 "storageClass": "General Purpose",
25 "volumeType": "Standard",
26 },
27 },
28 "usage": {
29 "quantity": 1000,
30 "unit": "GB-Mo",
31 "mappingNote": "One thousand GB-months is the normalized monthly capacity for this example.",
32 },
33 },
34 "azure": {
35 "serviceName": "Storage",
36 "armRegionName": "eastus",
37 "selectors": {
38 "meterName": "Hot LRS Data Stored",
39 "productName": "Blob Storage",
40 "priceType": "Consumption",
41 "tierMinimumUnits": 0,
42 },
43 "usage": {
44 "quantity": 1000,
45 "unit": "1 GB/Month",
46 "mappingNote": "The Azure first storage tier is mapped to the same one thousand storage GB-months.",
47 },
48 },
49 }] }
50
51
52run = client.actor("taroyamada/multi-cloud-pricing-cost-impact-report").call(run_input=run_input)
53
54
55print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
56for item in client.dataset(run.default_dataset_id).iterate_items():
57 print(item)
58
59