Getting LinkedIn Cookies
The API needs your LinkedIn Sales Navigator session cookies to authenticate requests on your behalf. This guide shows you how to extract them from your browser.Which cookies you need
Two cookies are required:Step-by-step: Chrome / Edge / Firefox
- Log in to LinkedIn Sales Navigator — open https://www.linkedin.com/sales in your browser and make sure you’re fully logged in.
-
Open Developer Tools — press
F12(orCmd+Option+Ion Mac) to open DevTools. -
Go to Application > Cookies:
- Chrome / Edge:
Applicationtab →Storage→Cookies→https://www.linkedin.com - Firefox:
Storagetab →Cookies→https://www.linkedin.com
- Chrome / Edge:
-
Find the two cookies:
- Locate
li_atin the cookie list and copy its Value - Locate
JSESSIONIDin the cookie list and copy its Value (including quotes)
- Locate
-
Build the cookie string — combine them in the format the API expects:
For example:
Alternative: copy as cURL
A faster method if you’re comfortable with DevTools:- Log in to LinkedIn Sales Navigator and navigate to a search page
- Open DevTools (
F12) → Network tab - Refresh the page
- Right-click any request to
www.linkedin.com→ Copy → Copy as cURL - In the copied cURL command, find the
-H 'cookie: ...'header — that entire string is your cookie value
The cookie string from this method includes all cookies, not just
li_at and JSESSIONID. That’s fine — the API will extract what it needs.Providing cookies to the API
You can send cookies in two formats:Option A: Cookie string (recommended)
Pass the full cookie string in thecookies field:
Option B: List of cookie objects
If you’re reading cookies programmatically (e.g., from a JSON export), pass them as a list:Troubleshooting
Next steps
- Quickstart — use your cookies in a real request
- Pagination — page through results
- Scrape API Reference — full endpoint documentation