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