Docs menu

LinkedIn public person profile

Beta GET /v1/linkedin/profile

GET /v1/linkedin/profile

What LinkedIn shows a signed-out visitor on a public profile page: 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.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLyesProfile URL (linkedin.com/in/<slug>). Accepted hosts: linkedin.com.

Every request also accepts:

  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

curl
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"
Python
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,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
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);
}
n8n
{
  "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": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "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=bKWfN6UwwtiCqFWsG7rBELbd48qJOAMLdxhBzzkJV0k",
    "banner_url": "https://media.licdn.com/dms/image/v2/D5616AQEjhPbTCeblYg/profile-displaybackgroundimage-shrink_200_800/B56ZcytR5SGsAc-/0/1748902420393?e=2147483647&v=beta&t=a-tBeZkxzWTHWYY6MAjxt0oTEuxlW33EUkK3gm5_te4",
    "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=2QmmumsGYgIaGVcztnLlWnXPZtyFMqHl9yIm81SSYrg",
          "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=LlizryNgZ1ezXY4ev0mnp5KI3svHbPVgHXT5gNgHwdM",
          "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/"
        }
      ],
      "experience": [
        {
          "company": "Gates Foundation",
          "company_slug": "gates-foundation",
          "company_url": "https://www.linkedin.com/company/gates-foundation",
          "duration": "26 years",
          "is_current": true,
          "start": "2000",
          "title": "Co-chair"
        },
        {
          "company": "Breakthrough Energy",
          "company_slug": "breakthrough-energy",
          "company_url": "https://www.linkedin.com/company/breakthrough-energy",
          "duration": "11 years",
          "is_current": true,
          "start": "2015",
          "title": "Founder"
        },
        {
          "company": "Microsoft",
          "company_slug": "microsoft",
          "company_url": "https://www.linkedin.com/company/microsoft",
          "duration": "51 years",
          "is_current": true,
          "start": "1975",
          "title": "Co-founder"
        }
      ],
      "recent_posts": [
        {
          "id": "7520966952035454976",
          "likes": 828,
          "published_at": "2026-10-27T21:57:34.172000Z",
          "text": "I’ve been focused on the fight against polio for over 20 years. Here’s where things stand: https://lnkd.in/erTRsCTQ",
          "url": "https://www.linkedin.com/posts/williamhgates_good-news-and-bad-news-on-world-polio-day-activity-7520966952035454976-mM6k"
        },
        {
          "id": "7520910955187212290",
          "likes": 1342,
          "published_at": "2026-10-27T18:15:03.484000Z",
          "text": "I met an incredible group of healthcare professionals in London on Friday. Some work in their local health clinics and others are researching infectious diseases like malaria or providing emergency pediatric care to children. What unites th...",
          "url": "https://www.linkedin.com/posts/williamhgates_i-met-an-incredible-group-of-healthcare-professionals-activity-7520910955187212290-ceq3"
        },
        {
          "id": "7520240431754969089",
          "likes": 1829,
          "published_at": "2026-10-25T21:50:38.240000Z",
          "text": "Agriculture is one area where AI is already having an impact, especially in countries where many people depend on farming for their livelihoods. When we talk about AI's potential for good, this is the kind of progress I'm excited to see:",
          "url": "https://www.linkedin.com/posts/williamhgates_the-4-next-big-things-in-food-and-agriculture-activity-7520240431754969089-6Rvr"
        }
      ],
      "similar_profiles": [
        {
          "followers": 7000000,
          "headline": "Pivotal",
          "location": "United States",
          "name": "Melinda French Gates",
          "url": "https://www.linkedin.com/in/melindagates"
        },
        {
          "followers": 7000,
          "headline": "Fractal University",
          "location": "Brooklyn, NY",
          "name": "Tyler Alterman",
          "url": "https://www.linkedin.com/in/tyleralterman"
        },
        {
          "followers": 9000,
          "headline": "Duckett Enterprises",
          "location": "Lansing, MI",
          "name": "Todd J. Duckett",
          "url": "https://www.linkedin.com/in/toddjduckett"
        }
      ],
      "source": "logged_out_public_view"
    }
  },
  "cursor": null,
  "has_more": null
}

Response#

A Profile object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_51ba705dd2bf06f589eb8ecc"
}