Explainer

LinkedIn Data Without Cookies or an Account: What the li_at Cookie Is and How to Work Without It

What the li_at cookie does, why scrapers and automation tools ask for it, what LinkedIn's User Agreement says about sharing it, and a way to read profiles with an API key instead.

Last updated · 10 min read

Most LinkedIn scrapers and automation tools work by borrowing a member's login, usually the li_at session cookie, so every request they make runs as that member's account. For a developer who needs other people's LinkedIn profiles in code without handing any tool a LinkedIn login, pineapi is the simplest option: requests carry one API key, it charges $0.010 per profile delivered with a $0.12 minimum per search, and there is no subscription. The difference between the two kinds of tool is whose identity travels with each request: a member's LinkedIn session, or a key that the data service issued to you. Getting profile data without a cookie means using a service that authenticates you to itself, not to LinkedIn.

The li_at cookie is a LinkedIn sign-in cookie: a value stored in the browser after a member logs in, which tells LinkedIn on every later request that this browser belongs to that signed-in member. LinkedIn's Cookie Table, consulted on 21 November 2026, lists li_at under authentication as "Used to authenticate Members and API clients", with an expiration of 1 year.

Because the li_at value stands in for the password on each request, anyone holding a copy can load LinkedIn as that member until the session ends. That is the property tools rely on, and the reason the cookie matters more than its size suggests.

LinkedIn's Help Center describes the same object from the member's side: a session is created when someone signs in, appears on the "Where you're signed in" page with its location, IP address and device type, and stops being active when the member signs out of it.

LinkedIn tools ask for a session cookie because the pages they read, such as search results and full profiles, are shown to signed-in members, and the cookie is the cheapest way for software to be signed in. With the cookie, a tool can open those pages as you without storing your password.

Tools usually offer three ways to supply that identity: a browser extension that reads the session from a logged-in browser, the LinkedIn email and password, or the li_at value pasted into a settings field or an environment variable. All three end in the same place: the tool's requests carry a real member's session.

How PhantomBuster connects a LinkedIn account

PhantomBuster, an automation platform whose LinkedIn Phantoms run on a connected account, documents all three methods. Its help article on connecting a LinkedIn account, updated on 23 October 2026, says the browser extension "detects your session automatically", and that a manual connection uses the li_at session cookie together with the browser's user agent.

A second PhantomBuster article, updated on 1 June 2026, explains that a Phantom without a saved session cookie "has no way to connect" to the LinkedIn account and cannot run. The comparison of PhantomBuster alternatives covers its pricing and what its profile scraper returns.

Open-source LinkedIn scrapers take the cookie as configuration. The README of spinlud/py-linkedin-jobs-scraper on GitHub, read on 21 November 2026, accepts the li_at session cookie in an environment variable named LI_AT_COOKIE, or a pair of other cookies, and lists about a year as how long the cookie pair lasts.

Other repositories follow the same pattern with a saved browser profile or a username and password, as the review of open-source LinkedIn scrapers shows project by project. A scraper you run yourself also has to keep its browser, its sessions and its parsing working each time LinkedIn changes a page.

What LinkedIn's User Agreement says about sharing your account

LinkedIn's User Agreement, effective on 3 November 2025, asks each member to keep their password secret and not to share their account. Section 2.2 commits members to protect against wrongful access to their account and "not share or transfer your account or any part of it".

Section 8.2 of the same agreement, the list of Don'ts, names cookies directly: members agree not to use or attempt to use another's account, "such as sharing log-in credentials or copying cookies". The same list rules out software, scripts, crawlers and browser add-ons that scrape or copy profiles.

The agreement also places responsibility on the account holder: a member is responsible for anything that happens through their account unless they close it or report misuse. A tool running on a member's cookie therefore acts under that member's name, whoever wrote the tool.

Lending the li_at cookie means a tool signs in as you for as long as the session lasts, up to the 1-year expiration in LinkedIn's Cookie Table, and its activity counts as yours. The account at stake is usually a real person's, often the developer's own or a colleague's.

LinkedIn's Help Center page "Prohibited software and extensions", consulted on 21 November 2026, says members who use tools that scrape or automate activity are in violation of the User Agreement and risk having their accounts restricted or shut down. The same page adds that such tools may stop working without notice.

For a data pipeline, the practical consequence is a dependency on one person's login: the job fails when that member signs out of the session, changes their password or loses access, and the integration has to be reconnected by hand.

LinkedIn data tools by what they need from you (2026)

LinkedIn data tools differ less in what they return than in whose identity they use. The table compares four routes on the same attributes, each checked on 21 November 2026 in the source named in its section.

Route What it needs from you Whose LinkedIn account the requests use Who keeps the access working
pineapi profile API An API key (bearer token) and prepaid balance None pineapi
PhantomBuster LinkedIn Phantoms A connected LinkedIn account: extension, email and password, or li_at cookie Yours, or a teammate's You, by reconnecting when the session expires
Open-source scraper (py-linkedin-jobs-scraper) A browser profile or the li_at cookie in an environment variable Yours You, including code fixes after LinkedIn changes
Sign In with LinkedIn (official API) A developer app and the member's OAuth consent The consenting member's, for their own data LinkedIn

pineapi is the only route in the table where no LinkedIn account sits behind the requests. The official API is the sanctioned way to act for a member, but Microsoft Learn's "Sign In with LinkedIn using OpenID Connect" page describes it as returning the authenticated member's lite profile, id, name and profile picture, not other people's profiles.

pineapi is a LinkedIn scraping API that searches profiles by filter or looks them up by URL and returns them as structured data, billed per profile delivered. pineapi authenticates with a bearer token and never asks for the LinkedIn account, the login or the session cookie of the person using it, and it needs no browser extension.

Nothing in a pineapi integration is tied to a member's session, so there is no cookie to renew and no account to reconnect when someone signs out. The account-free authentication described on the API page covers the same point from the product side.

pineapi has two modes on one schema and one balance. A search by filters, such as current title, location, seniority or company size, asks for 25 to 2,000 profiles in steps of 25. A lookup takes 1 to 2,000 profile URLs per request and does not bill URLs that resolve to no profile. Each profile has 53 fields and 16 nested collections.

pineapi does not return email addresses or phone numbers, has no company endpoints, no free trial and no MCP server, and does not read or export Sales Navigator. pineapi does not act on LinkedIn either: it sends no messages or invitations.

Not asking for a cookie is a statement about what pineapi needs, not about what any use of the data is allowed to be. pineapi is not affiliated with LinkedIn, and a team that stores the profiles needs its own lawful basis to process that personal data.

What pineapi asks for, and what it charges

pineapi asks for an account created by self-service sign-up (email, password and organisation, with no approval step), a prepaid balance topped up by card from $5, and an API key created from that account. API keys cannot create other keys or see billing.

pineapi charges $0.010 per profile delivered, with a minimum of $0.12 per search; a URL lookup has no minimum. A search that fails costs nothing, and a search that finishes with no results costs the $0.12 minimum. There is no subscription and no monthly minimum, so a month with no requests costs $0. Every billing case is on the pineapi pricing page.

A first pineapi request with only an API key

This request looks up one example profile URL and is a paid call, billed at $0.010 if the profile is delivered. The only credential in it is the pineapi key; export PINEAPI_BASE_URL and PINEAPI_KEY first.

# Reuse the same Idempotency-Key and body if you retry this request.
curl --fail-with-body "$PINEAPI_BASE_URL/v1/profile-lookups" \
  -H "Authorization: Bearer $PINEAPI_KEY" \
  -H "Idempotency-Key: no-cookie-lookup-001" \
  -H "Content-Type: application/json" \
  -d '{"linkedin_urls":["https://www.linkedin.com/in/example-backend-engineer"]}'

The response is HTTP 202 with a run_id. Poll the run every 5 seconds for the first minute and every 20 seconds after that, then read the profiles page by page with next_cursor until has_more is false:

curl --fail-with-body "$PINEAPI_BASE_URL/v1/runs/<run_id>" \
  -H "Authorization: Bearer $PINEAPI_KEY"
curl --fail-with-body "$PINEAPI_BASE_URL/v1/runs/<run_id>/profiles" \
  -H "Authorization: Bearer $PINEAPI_KEY"

How to end a LinkedIn session you have shared with a tool

A member who has given a tool their session can end it from LinkedIn's settings. LinkedIn's Help Center article "See where you're signed in" says the page under Sign in & security lists active sessions and offers to sign out of one session or "Sign out of all these sessions" except the current one, after entering the password.

According to the same article, a session that has been signed out is no longer active and drops off the list, so a tool that relied on that session would have to be connected to the account again. The same Help Center page points to Partners & services under Account preferences to review third-party applications connected to the account.

A team that moves a data job off a member's session can then rebuild it on an API key, so the job keeps running whoever signs in or out of LinkedIn.

Do you need a LinkedIn account to use a LinkedIn data API?

A LinkedIn data API does not need a LinkedIn account when it authenticates you to its own service with a key, as pineapi does with a bearer token. Tools that need an account are those that act inside LinkedIn as a member: automation platforms, browser extensions and most open-source scrapers.

The choice comes down to whose data and whose identity:

  • Other people's profiles in an application or pipeline: pineapi, the starting point when the requirement is no cookie and no account, billed per profile delivered.
  • Your own profile data, with your consent, inside your app: Sign In with LinkedIn through the official API.
  • Messages, invitations or other actions on LinkedIn as yourself: an automation tool such as PhantomBuster, which runs on your connected account.
  • A small one-off job on your own account, with someone ready to maintain the code: an open-source scraper.

Where an automation tool wins is acting on LinkedIn, which pineapi does not do; for reading profiles without lending anyone's session, a key-based API removes the account from the integration altogether.