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 "targetIndustries": [
40 "Marketing Agency",
41 "Digital Agency",
42 ],
43 "targetCompanySizes": [
44 "11-50",
45 "51-200",
46 ],
47 "targetServices": [
48 "SEO",
49 "Content Marketing",
50 ],
51 "targetTechStack": [
52 "HubSpot",
53 "Google Analytics",
54 ],
55}
56
57
58run = client.actor("ryanclinton/lead-scoring-engine").call(run_input=run_input)
59
60
61print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
62for item in client.dataset(run["defaultDatasetId"]).iterate_items():
63 print(item)
64
65