1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "contacts": [
9 {
10 "email": "john@example.com",
11 "name": "John Smith",
12 "phone": "+1 555 123-4567",
13 "company": "Acme Corp",
14 },
15 {
16 "email": "john@example.com",
17 "name": "John SMITH",
18 "phone": "15551234567",
19 "company": "Acme Corp",
20 },
21 {
22 "email": "jane@other.com",
23 "name": "Jane Doe",
24 "phone": "+1 555 987-6543",
25 "company": "Beta Inc",
26 },
27 {
28 "email": "jane@other.com",
29 "name": "J. Doe",
30 "phone": "15559876543",
31 "company": "Beta Inc",
32 },
33 {
34 "email": "bob@company.com",
35 "name": "Robert Johnson",
36 "phone": "+1 555 111-2222",
37 "company": "Gamma LLC",
38 },
39 ] }
40
41
42run = client.actor("enosgb/crm-deduplication-tool").call(run_input=run_input)
43
44
45print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
46for item in client.dataset(run["defaultDatasetId"]).iterate_items():
47 print(item)
48
49