LinkedIn public person profile API
What LinkedIn shows a signed-out visitor on a public profile page.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Name, headline, location, about, followers, experience, education, skills, courses, recommendations, articles, recent public posts and similar profiles. A member who hides the public profile answers not_found.
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/linkedin/profile" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.linkedin.com/in/williamhgates'import os
import requests
params = {
"url": "https://www.linkedin.com/in/williamhgates",
}
res = requests.get(
"https://api.socialscrape.io/v1/linkedin/profile",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/linkedin/profile");
url.search = new URLSearchParams({
url: "https://www.linkedin.com/in/williamhgates",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape LinkedIn public person profile",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/linkedin/profile",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.linkedin.com/in/williamhgates"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Profile URL (linkedin.com/in/<slug>). |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_7e6d1a42ebdb96f2c68b8c0e",
"data": {
"object": "profile",
"platform": "linkedin",
"id": "williamhgates",
"handle": "williamhgates",
"name": "Bill Gates",
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
"url": "https://www.linkedin.com/in/williamhgates",
"kind": "person",
"bio": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger.",
"avatar_url": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_200/B56ZRi8g.aGsAY-/0/1736826818802?e=2147483647&v=beta&t=bKWfN6Uwwt...",
"banner_url": "https://media.licdn.com/dms/image/v2/D5616AQEjhPbTCeblYg/profile-displaybackgroundimage-shrink_200_800/B56ZcytR5SGsAc-/0/1748902420393?e=2147483647&v=beta&t=...",
"verified": null,
"is_private": null,
"external_url": "https://gatesnot.es/sourcecode-li",
"links": [
{
"title": "Blog",
"url": "https://gatesnot.es/sourcecode-li"
}
],
"location": "Seattle, Washington, United States",
"category": null,
"created_at": null,
"stats": {
"followers": 40766396,
"following": null,
"posts": null,
"likes": null,
"views": null
},
"extra": {
"articles": [
{
"comments": 449,
"image_url": "https://media.licdn.com/dms/image/v2/D4E12AQGy6pQI3vMmVQ/article-cover_image-shrink_720_1280/B4EaFumG73HoAQ-/0/1792856849611?e=2147483647&v=beta&t=2QmmumsGYg...",
"likes": 2870,
"published_at": "2026-10-24T15:54:10Z",
"summary": "I’ve been following the fight against polio almost daily for more than two decades, ever since I got involved in the…",
"title": "6 things you should know on World Polio Day",
"url": "https://www.linkedin.com/pulse/6-things-you-should-know-world-polio-day-bill-gates-ycree"
},
{
"comments": 652,
"likes": 4073,
"published_at": "2026-10-12T20:10:59Z",
"summary": "When I was growing up in Seattle, planes were everywhere. Boeing was the biggest employer in the area, and it felt like…",
"title": "For an affordable climate win, look to the sky",
"url": "https://www.linkedin.com/pulse/affordable-climate-win-look-sky-bill-gates-eoj7e"
},
{
"comments": 509,
"image_url": "https://media.licdn.com/dms/image/v2/D4E12AQFwjr3EOC2slQ/article-cover_image-shrink_720_1280/B4EaCvyLnRKAAQ-/0/1789655564567?e=2147483647&v=beta&t=LlizryNgZ1...",
"likes": 2993,
"published_at": "2026-09-17T15:18:20Z",
"summary": "Explore the full 2026 Goalkeepers Report Earlier this year, I met Gaudence Ngendahayo, a community health worker in…",
"title": "AI, equity, and the choice we can’t delay",
"url": "https://www.linkedin.com/pulse/ai-equity-choice-we-cant-delay-bill-gates-d1gte"
}
],
"badges": [
"Creator",
"Top Voice"
],
"connections": "8",
"connections_count": 8,
"current_companies": [
"Gates Foundation"
],
"education": [
{
"end_year": 1975,
"school": "Harvard University",
"school_url": "https://www.linkedin.com/school/harvard-university/",
"start_year": 1973
},
{
"school": "Lakeside School",
"school_url": "https://www.linkedin.com/school/lakeside-school/"
}
]
}
},
"cursor": null,
"has_more": null
}Fields
One Profile in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "profile" | ||
platform | Platform | yes | |
id | string or null | ||
handle | string or null | ||
name | string or null | ||
headline | string or null | a short tagline apart from the bio (LinkedIn's headline) | |
url | string or null | ||
kind | "person" or "creator" or "channel" or "page" or "company" or "artist" or "organization" or "shop" or "unknown" | ||
bio | string or null | ||
avatar_url | string or null | ||
banner_url | string or null | ||
verified | boolean or null | ||
is_private | boolean or null | ||
external_url | string or null |
Show the other 6 fields
| Field | Type | Always | Notes |
|---|---|---|---|
links | Link[] or null | ||
location | string or null | ||
category | string or null | ||
created_at | string (ISO 8601 date-time) or null | ||
stats | ProfileStats | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The preview Python client has client.linkedin.profile(...) and the TypeScript client client.linkedin.profile(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.