1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "eml": """From: Alice Example <alice@example.com>
9To: Bob Example <bob@example.com>
10Subject: Quarterly report
11Date: Tue, 14 Oct 2025 09:30:00 +0000
12MIME-Version: 1.0
13Content-Type: text/plain; charset=utf-8
14
15Hi Bob,
16
17Please find the quarterly numbers below. Revenue grew 12% and churn fell to 3%.
18
19Best,
20Alice
21""" }
22
23
24run = client.actor("hipersoft/eml-parser").call(run_input=run_input)
25
26
27print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31