1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "leads": [{
10 "domain": "brightedge.com",
11 "companyName": "BrightEdge",
12 "industry": "Marketing Agency",
13 "services": [
14 "SEO",
15 "Content Marketing",
16 "Analytics",
17 ],
18 "companySize": "51-200",
19 "emails": ["hello@brightedge.com"],
20 "contacts": [{
21 "name": "Sarah Chen",
22 "title": "Head of SEO",
23 "email": "s.chen@brightedge.com",
24 }],
25 "phones": ["+1 415-555-0182"],
26 "address": "1 Market St, San Francisco, CA",
27 "rating": 4.7,
28 "reviewCount": 143,
29 "hasChatWidget": True,
30 "hasContactForm": True,
31 "techStack": [
32 "HubSpot",
33 "Google Analytics",
34 "Salesforce",
35 ],
36 "foundedYear": 2011,
37 "description": "Enterprise SEO and content performance platform for B2B companies.",
38 }],
39 "goal": "generic",
40 "mode": "auto",
41 "persona": "generic",
42 "outputProfile": "standard",
43 "scorecardTemplate": "custom",
44 "targetIndustries": [
45 "Marketing Agency",
46 "Digital Agency",
47 ],
48 "targetCompanySizes": [
49 "11-50",
50 "51-200",
51 ],
52 "targetServices": [
53 "SEO",
54 "Content Marketing",
55 ],
56 "targetTechStack": [
57 "HubSpot",
58 "Google Analytics",
59 ],
60}
61
62
63run = client.actor("ryanclinton/lead-scoring-engine").call(run_input=run_input)
64
65
66print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
67for item in client.dataset(run["defaultDatasetId"]).iterate_items():
68 print(item)
69
70