LinkedIn public person profile API

What LinkedIn shows a signed-out visitor on a public profile page.

GETapi.socialscrape.io/v1/linkedin/profile
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
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,
    timeout=60,
)
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": {}
}

Parameters

NameTypeRequiredDescription
urlurlyesProfile 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.

Status 200Sample
{
  "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.

FieldTypeAlwaysNotes
object"profile"
platformPlatformyes
idstring or null
handlestring or null
namestring or null
headlinestring or nulla short tagline apart from the bio (LinkedIn's headline)
urlstring or null
kind"person" or "creator" or "channel" or "page" or "company" or "artist" or "organization" or "shop" or "unknown"
biostring or null
avatar_urlstring or null
banner_urlstring or null
verifiedboolean or null
is_privateboolean or null
external_urlstring or null
Show the other 6 fields
FieldTypeAlwaysNotes
linksLink[] or null
locationstring or null
categorystring or null
created_atstring (ISO 8601 date-time) or null
statsProfileStats
extraobject 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.

Build on social data early.

Developers and agent builders get the first keys.

Get early access