1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "url": "example: https://app.apollo.io/#/people....",
12 "cookies": `[
13 {
14 "name": "PASTE_YOUR_COOKIES_HERE",
15 "value": "Replace this whole box with your own cookies - any free B2B platform account works, no premium needed",
16 "step_1": "Install the 'EditThisCookie v3' browser extension",
17 "step_2": "Go to your lead platform URL while logged in (keep the tab open)",
18 "step_3": "Click the extension icon",
19 "step_4": "Click 'Export' to copy the cookies JSON",
20 "step_5": "Select everything in this box and paste your exported JSON"
21 }
22]`
23};
24
25
26const run = await client.actor("amr-mando/lead-finder").call(input);
27
28
29console.log('Results from dataset');
30console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31const { items } = await client.dataset(run.defaultDatasetId).listItems();
32items.forEach((item) => {
33 console.dir(item);
34});
35
36