1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "company_domain": "stripe.com",
12 "scoring_config": {
13 "weights": {
14 "gtm_hiring_signal": 12,
15 "gtm_role_count_strong": 6,
16 "crm_detected": 6,
17 "seq_tool_detected": 5,
18 "uses_clay": 4,
19 "uses_hubspot": 3,
20 "uses_salesforce": 2,
21 "headcount_in_range": 8,
22 "employee_band_match": 8,
23 "revenue_in_range": 7,
24 "industry_match": 8,
25 "recently_funded": 9,
26 "well_funded": 5,
27 "social_presence": 4,
28 "strong_social_following": 4,
29 "active_hiring_volume": 5,
30 "keyword_signal_match": 4
31 },
32 "headcount_range": {
33 "min": 50,
34 "max": 5000
35 },
36 "target_industries": [
37 "B2B Software",
38 "SaaS",
39 "Developer Tools",
40 "MarTech",
41 "Fintech",
42 "Professional Services"
43 ],
44 "target_employee_bands": [
45 "11-50",
46 "51-200",
47 "201-500",
48 "501-1000",
49 "1001-5000"
50 ],
51 "revenue_range": {
52 "min": 1000000,
53 "max": 1000000000
54 },
55 "min_gtm_roles": 2,
56 "min_total_followers": 1000,
57 "min_social_platforms": 2,
58 "min_job_count": 3,
59 "min_keyword_matches": 1,
60 "min_funding_amount": 1000000
61 },
62 "template": "full_signal",
63 "tier_thresholds": {
64 "tier_a": 80,
65 "tier_b": 60,
66 "tier_c": 40
67 },
68 "funded_within_days": 540,
69 "gtm_hiring_signal": "true",
70 "gtm_role_count": "8",
71 "uses_clay": "true",
72 "crm_detected": "true",
73 "seq_tool_detected": "true",
74 "headcount": "3000",
75 "employee_band": "1001-5000",
76 "revenue_estimate": "50000000",
77 "latest_funding_amount": "50000000",
78 "funding_stage": "series_b",
79 "industry": "Fintech",
80 "social_platforms_found": "5",
81 "total_followers": "1490000",
82 "has_linkedin": "true",
83 "job_count": "12",
84 "keyword_match_count": "3"
85};
86
87
88const run = await client.actor("mambalabs/icp-account-lead-scoring-fit-scorer-0-100-for-clay").call(input);
89
90
91console.log('Results from dataset');
92console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
93const { items } = await client.dataset(run.defaultDatasetId).listItems();
94items.forEach((item) => {
95 console.dir(item);
96});
97
98