Skip to main content
GET
/
v1
/
linkedin
/
profiles
/
{public_id}
Get Profile
curl --request GET \
  --url https://api.scrapebadger.com/v1/linkedin/profiles/{public_id} \
  --header 'X-API-Key: <x-api-key>'
import requests

url = "https://api.scrapebadger.com/v1/linkedin/profiles/{public_id}"

headers = {"X-API-Key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};

fetch('https://api.scrapebadger.com/v1/linkedin/profiles/{public_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scrapebadger.com/v1/linkedin/profiles/{public_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.scrapebadger.com/v1/linkedin/profiles/{public_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<x-api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.scrapebadger.com/v1/linkedin/profiles/{public_id}")
.header("X-API-Key", "<x-api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.scrapebadger.com/v1/linkedin/profiles/{public_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'

response = http.request(request)
puts response.read_body
{
  "profile": {
    "public_id": "<string>",
    "linkedin_url": "<string>",
    "name": "<string>",
    "headline": "<string>",
    "location": "<string>",
    "country": "<string>",
    "about": "<string>",
    "image": "<string>",
    "follower_count": 123,
    "job_titles": [
      "<string>"
    ],
    "current_company": "<string>",
    "current_company_url": "<string>",
    "experience": [
      {}
    ],
    "education": [
      {}
    ],
    "languages": [
      "<string>"
    ],
    "awards": [
      "<string>"
    ]
  }
}
Fetch a member’s public LinkedIn profile by their vanity public_id (the /in/<slug> segment of the URL, e.g. williamhgates).
This is the logged-out JSON-LD subset LinkedIn exposes to signed-out visitors — not the full logged-in record. There is no contact info, no connection graph, and no full skills list. Experience and education are the coarse entries LinkedIn renders publicly.
Credits: 8

Authorization

X-API-Key
string
required
Your ScrapeBadger API key.

Path Parameters

public_id
string
required
Member vanity slug, e.g. williamhgates.

Query Parameters

country
string
default:"us"
Country/locale for the request.

Response

profile
object
The Profile.

Example

curl "https://api.scrapebadger.com/v1/linkedin/profiles/williamhgates" \
  -H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
  "https://api.scrapebadger.com/v1/linkedin/profiles/williamhgates",
  { headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const { profile } = await res.json();
import requests

res = requests.get(
    "https://api.scrapebadger.com/v1/linkedin/profiles/williamhgates",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
profile = res.json()["profile"]
Response
{
  "profile": {
    "public_id": "williamhgates",
    "linkedin_url": "https://www.linkedin.com/in/williamhgates",
    "name": "Bill Gates",
    "headline": "Co-chair, Bill & Melinda Gates Foundation",
    "location": "Seattle, Washington, United States",
    "country": "US",
    "about": "Co-chair of the Bill & Melinda Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft.",
    "image": "https://media.licdn.com/dms/image/williamhgates.jpg",
    "follower_count": 36200000,
    "job_titles": ["Co-chair"],
    "current_company": "Bill & Melinda Gates Foundation",
    "current_company_url": "https://www.linkedin.com/company/bill-&-melinda-gates-foundation",
    "experience": [
      {
        "company": "Bill & Melinda Gates Foundation",
        "company_url": "https://www.linkedin.com/company/bill-&-melinda-gates-foundation",
        "start_year": 2000,
        "end_year": null
      },
      {
        "company": "Microsoft",
        "company_url": "https://www.linkedin.com/company/microsoft",
        "start_year": 1975,
        "end_year": 2020
      }
    ],
    "education": [
      {
        "school": "Harvard University",
        "school_url": "https://www.linkedin.com/school/harvard-university",
        "start_year": 1973,
        "end_year": 1975
      }
    ],
    "languages": ["English"],
    "awards": []
  }
}