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>"
}Body
application/json