curl --request POST \
--url http://localhost:8000/scrape \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cookies": "li_at=AQEDxxxxxx; JSESSIONID=ajax:1234567890",
"url": "https://www.linkedin.com/sales/search/people?query=(filters:List())",
"start": 0,
"scraper_type": "contacts"
}
'{
"success": true,
"data": [
{
"id": "<string>",
"entityUrn": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"headline": "<string>",
"title": "<string>",
"companyName": "<string>",
"location": "<string>",
"industry": "<string>"
}
],
"total_scraped": 123,
"pages_processed": 123,
"message": "<string>",
"paging": {
"total": 123,
"start": 123,
"count": 123
}
}{
"error_id": "<string>",
"message": "<string>",
"error": "<string>",
"request_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error_id": "<string>",
"message": "<string>",
"error": "<string>",
"request_id": "<string>"
}API Reference
Scrape LinkedIn Data
Scrapes LinkedIn Sales Navigator search results. Returns up to 25 items per request (1 page).
POST
/
scrape
curl --request POST \
--url http://localhost:8000/scrape \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cookies": "li_at=AQEDxxxxxx; JSESSIONID=ajax:1234567890",
"url": "https://www.linkedin.com/sales/search/people?query=(filters:List())",
"start": 0,
"scraper_type": "contacts"
}
'{
"success": true,
"data": [
{
"id": "<string>",
"entityUrn": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"headline": "<string>",
"title": "<string>",
"companyName": "<string>",
"location": "<string>",
"industry": "<string>"
}
],
"total_scraped": 123,
"pages_processed": 123,
"message": "<string>",
"paging": {
"total": 123,
"start": 123,
"count": 123
}
}{
"error_id": "<string>",
"message": "<string>",
"error": "<string>",
"request_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error_id": "<string>",
"message": "<string>",
"error": "<string>",
"request_id": "<string>"
}Authorizations
API key for authentication
Body
application/json
LinkedIn Sales Navigator search or list URL.
Paths include /sales/search/people, /sales/search/accounts,
/sales/search/company, /sales/search/leads, and /sales/lists/....
Example:
"https://www.linkedin.com/sales/search/people"
Full cookie string from LinkedIn browser session, exported as a Header
string via the Cookie-Editor extension. Must contain li_at and
JSESSIONID cookies.
Get it: Cookie-Editor extension → Export → select "Header" (NOT JSON).
Example:
"li_at=AQEDxxxxxx; JSESSIONID=\"ajax:1234567890\""
Deprecated - use 'cookies' instead
Starting offset for pagination. Must be a multiple of 25, maximum 2475.
Required range:
0 <= x <= 2475Example:
0
Type of data to scrape
Available options:
contacts, accounts