1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "leads": [
10 {
11 "companyName": "Stripe",
12 "domain": "stripe.com",
13 "industry": "Financial Technology",
14 "companySize": "1001-5000",
15 "contactName": "Jane Smith",
16 "contactTitle": "VP of Engineering",
17 "email": "jane@stripe.com",
18 "emailStatus": "verified",
19 "phone": "+1-555-0123",
20 "linkedinUrl": "https://linkedin.com/in/janesmith",
21 "location": "San Francisco, CA",
22 "country": "US",
23 "leadScore": 88,
24 "dataCompleteness": 85,
25 "sources": [
26 "linkedin",
27 "crunchbase",
28 ],
29 "sourceCount": 2,
30 "tags": [
31 "hot-lead",
32 "enterprise",
33 ],
34 },
35 {
36 "companyName": "Acme Corp",
37 "domain": "acme.com",
38 "contactName": "Bob Jones",
39 "email": "bob@acme.com",
40 "emailStatus": "unverified",
41 "sources": ["manual"],
42 "sourceCount": 1,
43 },
44 {
45 "companyName": "TechStart",
46 "industry": "SaaS",
47 "contactTitle": "CEO",
48 "sources": ["crunchbase"],
49 "sourceCount": 1,
50 },
51 ],
52 "minConfidence": 0,
53 "includeDebugWeights": True,
54}
55
56
57run = client.actor("automation-lab/lead-enrichment-confidence-scorer").call(run_input=run_input)
58
59
60print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
61for item in client.dataset(run["defaultDatasetId"]).iterate_items():
62 print(item)
63
64