1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "useExampleData": False,
10 "records": [{
11 "productId": "BAT-100",
12 "productName": "Example industrial battery",
13 "manufacturer": "Example Manufacturer",
14 "batteryCategory": "industrial",
15 "model": "BAT-100",
16 "capacityKwh": 4.2,
17 "batteryChemistry": "LFP",
18 "carbonFootprintKgCo2e": 220,
19 "manufacturingLocation": "DE",
20 "evidence": [{
21 "field": "capacityKwh",
22 "value": 4.2,
23 "sourceType": "manufacturer_technical_document",
24 "sourceUrl": "https://example.com/battery-technical-sheet.pdf",
25 "documentHash": "sha256:replace-with-real-hash",
26 }],
27 }],
28 "productUrls": [{ "url": "https://example.com/battery-product" }],
29 "evidenceUrls": [{ "url": "https://example.com/battery-technical-sheet.pdf" }],
30 "sourceDatasetId": "",
31 "dppRecords": [],
32 "dppUrls": [{ "url": "https://example.com/battery/BAT-001" }],
33}
34
35
36run = client.actor("zentrafoundry/eu-battery-passport-readiness-auditor").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43