Linkedin Session Cookies

  • big-brain.io/linkedin-session-cookies
  • Modified
  • Users 27
  • Runs 5.1k
  • Created by Author's avatarBig Brain

Get your Linkedin session cookies to automatically update Phantombuster, TexAu and Growth-Hacking.io. Scale to multiple Linkedin accounts.

Free trial for 7 days

Then $10.00/month

No credit card required now

Linkedin Session Cookies

Free trial for 7 days

Then $10.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running actors via the API in Apify Docs.

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare actor input
const input = {
    "proxyConfiguration": {
        "useApifyProxy": true
    },
    "imap": {
        "user": "",
        "password": "",
        "host": "imap.gmail.com",
        "port": 993,
        "tls": true,
        "mailbox": "INBOX"
    }
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("big-brain.io/linkedin-session-cookies").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();