1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "body": {
12 "page": 1,
13 "url": "https://www.linkedin.com/sales/search/people?query=(spellCorrectionEnabled%3Atrue%2CrecentSearchParam%3A(id%3A3987336874%2CdoLogHistory%3Atrue)%2Cfilters%3AList((type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3Aurn%253Ali%253Aorganization%253A825160%2Ctext%3AHyundai%2520Motor%2520Company%2520%2528%25ED%2598%2584%25EB%258C%2580%25EC%259E%2590%25EB%258F%2599%25EC%25B0%25A8%2529%2CselectionType%3AINCLUDED%2Cparent%3A(id%3A0)))))%2Ckeywords%3Agoo)&sessionId=V%2BfhmkmqTlSofc8%2F1FmgJw%3D%3D",
14 "cookies": []
15 }
16};
17
18
19const run = await client.actor("muhammad_usama/apify-sales-navifgator").call(input);
20
21
22console.log('Results from dataset');
23console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
24const { items } = await client.dataset(run.defaultDatasetId).listItems();
25items.forEach((item) => {
26 console.dir(item);
27});
28
29