1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "emails": [
9 {
10 "id": "sample-en",
11 "text": """From: Sarah O'Connor <sarah.oconnor@globex.com>
12Subject: Re: Q1 campaign
13
14Hi Tom,
15
16Sounds great - I will send the brief tomorrow morning.
17
18Best regards,
19Sarah O'Connor
20VP of Marketing | Globex Inc.
21M: +1 646 555 0199 | O: (212) 555-0147
22350 Fifth Avenue, Suite 4100, New York, NY 10118
23www.globex.com | linkedin.com/in/sarahoconnor | Twitter: @sarahoconnor
24
25On Mon, Nov 16, 2026 at 9:12 AM Tom Baker <tom@example.com> wrote:
26> Can you share the brief?
27> Tom""",
28 },
29 {
30 "id": "sample-fr",
31 "text": """Bonjour,
32
33Je vous prie de trouver ci-joint notre proposition.
34
35Cordialement,
36
37Jean DUPONT
38Directeur Commercial
39Société Générale de Logistique SAS
4012 rue de la Paix
4175002 Paris
42Tél : 01 42 68 53 00
43Portable : 06 12 34 56 78
44jean.dupont@sgl-logistique.fr
45
46Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires.""",
47 },
48 ] }
49
50
51run = client.actor("freecamp008/email-signature-parser").call(run_input=run_input)
52
53
54print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
55for item in client.dataset(run.default_dataset_id).iterate_items():
56 print(item)
57
58