LinkedIn Scraper API
Extract profiles and posts as structured JSON from public LinkedIn targets. Queue a request, then retrieve the result with its responseId.
Decide before you build
- Endpoint
- POST /scrape/data-scraper
- Scrapers
- linkedinProfile linkedinPost
- Cost
- 30 credits / call
- Free plan
- 500 credits / month
- Call pattern
- async, POST then GET
- On failure
- credits refunded
- Response format
- JSON
- Concurrency
- by plan tier
Launching a Social Media scrape costs 30 credits. Retrieving a pending result costs nothing; failed scrapes are refunded.
Try the LinkedIn scraper on your own targetRun a request against a public target and inspect the JSON before you integrate.
Open the live testWhat you get back
linkedinProfileMember profile
Use linkedinProfile to get the name, position, current company, city, follower and following counts, experience, education, languages, recent posts and activity.
- Required input: url
- Optional input: language
- Structured JSON once the result is ready
- Public data only; no account login is used
linkedinPostSingle post
Use linkedinPost to get the post text, date, hashtags, images and videos, like and comment counts, and the author's name, headline and follower count.
- Required input: url
- Optional input: language
- Structured JSON once the result is ready
- Public data only; no account login is used
Call the LinkedIn scraper
Send the scraper name with the input required by that scraper. The POST returns a responseId to poll for the final JSON.
# POST - queue a public social media scrape
curl -X POST "https://api.scraping-bot.io/scrape/data-scraper" \
-u "yourUsername:yourApiKey" \
-H "Content-Type: application/json" \
-d '{
"scraper": "linkedinProfile",
"url": "https://www.linkedin.com/in/emmanuelmacron/",
"language": "en"
}'# GET - retrieve the result after the POST returns a responseId
curl -G "https://api.scraping-bot.io/scrape/data-scraper-response" \
-u "yourUsername:yourApiKey" \
--data-urlencode "responseId=RESPONSE_ID" \
--data-urlencode "scraper=linkedinProfile"Code example
Authenticate with your ScrapingBot username and API key, then poll until the queued result is ready.
const auth = "Basic " + Buffer.from(
"yourUsername:yourApiKey",
).toString("base64");
const queued = await fetch("https://api.scraping-bot.io/scrape/data-scraper", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: auth },
body: JSON.stringify({
"scraper": "linkedinProfile",
"url": "https://www.linkedin.com/in/emmanuelmacron/",
"language": "en"
}),
});
const { responseId } = await queued.json();
let result;
do {
await new Promise((resolve) => setTimeout(resolve, 5000));
result = await fetch(
"https://api.scraping-bot.io/scrape/data-scraper-response?" +
new URLSearchParams({ responseId, scraper: "linkedinProfile" }),
{ headers: { Authorization: auth } },
).then((response) => response.json());
} while (result.status === "pending");Run this call in two minutesCreate an account, copy your API key, then use the example above.
Get your API keyRequest parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
scraper | string | — | One of the scraper names supported by this endpoint. |
url | string | — | Public page URL, including https://. |
language | string | — | Optional for this scraper. |
Response example
Example of the JSON returned by the LinkedIn scraper once the result is ready.
[
{
"id": "williamhgates",
"name": "Bill Gates",
"city": "Seattle, Washington, United States",
"country_code": "US",
"position": "Chair, Gates Foundation and Founder, Breakthrough Energy",
"about": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger.",
"posts": [
{
"title": "How Guinea beat the tsetse fly",
"attribution": "The first sleeping sickness patient that Dr. Mamadou Camara ever diagnosed and treated was brought to him tied up.",
"link": "https://www.linkedin.com/pulse/how-guinea-beat-tsetse-fly-bill-gates-6mxue",
"created_at": "2026-11-22T00:00:00.000Z",
"interaction": "1,79 - 263 Comments",
"id": "7530327862860726272"
},
{
"title": "Fighting climate change one text at a time",
"attribution": "In Kenya, AI-powered weather forecasts are helping farmers adapt to a changing climate. When I check the forecast for…",
"link": "https://www.linkedin.com/pulse/fighting-climate-change-one-text-time-bill-gates-1ddze",
"created_at": "2026-11-16T00:00:00.000Z",
"interaction": "2,89 - 474 Comments",
"id": "7527933506786619392"
}
],
"current_company": {
"name": "Gates Foundation",
"company_id": "gates-foundation",
"title": "Co-chair"
},
"experience": [
{
"title": "Co-chair",
"description_html": null,
"start_date": "2000",
"end_date": "Present",
"company": "Gates Foundation",
"company_id": "gates-foundation",
"url": "https://www.linkedin.com/company/gates-foundation",
"company_logo_url": null
},
{
"title": "Founder",
"description_html": null,
"start_date": "2015",
"end_date": "Present",
"company": "Breakthrough Energy",
"company_id": "breakthrough-energy",
"url": "https://www.linkedin.com/company/breakthrough-energy",
"company_logo_url": null
}
],
"url": "https://eg.linkedin.com/in/williamhgates",
"people_also_viewed": [
{
"profile_link": "https://www.linkedin.com/in/melindagates",
"name": "Melinda French Gates",
"about": "Pivotal",
"location": "7M followers United States"
},
{
"profile_link": "https://www.linkedin.com/in/tyleralterman",
"name": "Tyler Alterman",
"about": "Fractal University",
"location": "7K followers Brooklyn, NY"
}
],
"educations_details": "Harvard University",
"education": [
{
"title": "Harvard University",
"url": "https://www.linkedin.com/school/harvard-university/?trk=public_profile_school_profile-section-card_image-click",
"start_year": "1973",
"end_year": "1975",
"description": null,
"description_html": null,
"institute_logo_url": null
},
{
"title": "Lakeside School",
"url": "https://www.linkedin.com/school/lakeside-school/?trk=public_profile_school_profile-section-card_image-click",
"description": null,
"description_html": null,
"institute_logo_url": null
}
],
"avatar": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_200/B56ZRi8g.aGsAY-/0/1736826818802?e=2147483647&v=beta&t=bKWfN6Uwwt…",
"followers": 40845985,
"connections": 8,
"current_company_company_id": "gates-foundation",
"current_company_name": "Gates Foundation",
"location": "Seattle",
"input_url": "https://www.linkedin.com/in/williamhgates/",
"linkedin_id": "williamhgates",
"activity": [
{
"interaction": "Bill Gates shared this",
"link": "https://www.linkedin.com/posts/williamhgates_ausl%C3%A4nder-activity-7530766320620044288-EsbV",
"title": "Most people know Michael Moritz as a great businessman, but he was a writer long before he was an investor. In Ausländer, he recounts his family’s remarkable…",
"img": "https://media.licdn.com/dms/image/sync/v2/D4E27AQFQXkE4Q1oXww/articleshare-shrink_1280_800/B4EaIKn6OoIIAg-/0/1795474564521?e=2147483647&v=beta&t=g1k4fjq1t8Wr…",
"id": "7530766320620044288"
},
{
"interaction": "Bill Gates shared this",
"link": "https://www.linkedin.com/posts/williamhgates_how-guinea-beat-the-tsetse-fly-activity-7530333331243261952-IwdC",
"title": "Dr. Mamadou Camara will make you rethink what going the extra mile means. For three decades, he’s traveled to villages with no roads and paid out of his own …",
"img": "https://media.licdn.com/dms/image/v2/D4E12AQFcEFxrggBZaA/article-cover_image-shrink_720_1280/B4EaIEZSo9IYAU-/0/1795370068830?e=2147483647&v=beta&t=xp8tkGfC9z…",
"id": "7530333331243261952"
}
],
"linkedin_num_id": "251749025",
"banner_image": "https://media.licdn.com/dms/image/v2/D5616AQEjhPbTCeblYg/profile-displaybackgroundimage-shrink_200_800/B56ZcytR5SGsAc-/0/1748902420393?e=2147483647&v=beta&t=…",
"honors_and_awards": null,
"similar_profiles": [
{
"url": "https://www.linkedin.com/in/melindagates",
"name": "Melinda French Gates",
"title": "Pivotal",
"url_text": "https://www.linkedin.com/in/melindagates"
},
{
"url": "https://www.linkedin.com/in/tyleralterman",
"name": "Tyler Alterman",
"title": "Fractal University",
"url_text": "https://www.linkedin.com/in/tyleralterman"
}
],
"default_avatar": false,
"memorialized_account": false,
"bio_links": [
{
"title": "Blog",
"link": "https://gatesnot.es/sourcecode-li"
}
],
"first_name": "Bill",
"last_name": "Gates",
"influencer": true,
"timestamp": "2026-11-24T08:42:47.496Z",
"input": {
"url": "https://www.linkedin.com/in/williamhgates/"
}
}
]Credits, failures and limits
| Case | Credits | Notes |
|---|---|---|
| Launch a scrape | 30 credits | Consumed when a result is ready. |
| Result not ready | Not consumed | The API returns a pending status; retry after a few seconds. |
| Failed, blocked or timed-out scrape | Refunded | Credits are returned for an unsuccessful request. |
LinkedIn API or Raw HTML scraper?
| LinkedIn API | Raw HTML scraper | |
|---|---|---|
| Endpoint | /scrape/data-scraper | /scrape/raw-html |
| Returns | Profiles and posts JSON | Rendered page HTML |
| Flow | Asynchronous: POST then GET | One synchronous request |
| Starting cost | 30 credits | 1 credit |
| Use it when | You need parsed LinkedIn data | You need your own extraction logic |
Questions about the LinkedIn API
- Which LinkedIn scraper names can I use?
- This page supports linkedinProfile and linkedinPost. Send the exact name in the scraper field.
- Why does the API return a responseId?
- Social Media requests are asynchronous. The responseId lets you retrieve the result without holding the initial request open.
- What if the result is still pending?
- Wait a few seconds and repeat the GET request. A pending response does not consume credits.
- Does this scraper access private account data?
- No. It is intended for public pages and does not sign in to a social media account to access private data.
Source: ScrapingBot API documentation.
Other social media scrapers
Browse the Social Media category for the complete list of guides. Read How to scrape LinkedIn.
Trusted by developers and social media teams.
Customer reviews apply to ScrapingBot's service overall, not specifically to this scraper.
Start scraping LinkedIn today
500 free credits every month. No card required, cancel anytime.
