Get Profile
curl --request GET \
--url https://scrapebadger.com/v1/linkedin/profiles/{public_id} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://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://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://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://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://scrapebadger.com/v1/linkedin/profiles/{public_id}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://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>",
"access_scope": "<string>",
"name": "<string>",
"headline": "<string>",
"location": "<string>",
"country": "<string>",
"about": "<string>",
"image": "<string>",
"cover_image": "<string>",
"follower_count": 123,
"connection_count": "<string>",
"badges": [
"<string>"
],
"websites": [
"<string>"
],
"job_titles": [
"<string>"
],
"current_company": "<string>",
"current_company_url": "<string>",
"experience": [
{}
],
"education": [
{}
],
"languages": [
"<string>"
],
"language_details": [
{}
],
"awards": [
"<string>"
],
"award_details": [
{}
],
"volunteering": [
{}
],
"recommendations": [
{}
],
"instructor_courses": [
{}
],
"recent_posts": [
{}
],
"recent_articles": [
{}
],
"similar_profiles": [
{}
],
"partial_sections": [
"<string>"
]
}
}Profiles
Get Profile
A public LinkedIn member profile by vanity public_id — headline, location, about, experience, education, languages and awards.
GET
/
v1
/
linkedin
/
profiles
/
{public_id}
Get Profile
curl --request GET \
--url https://scrapebadger.com/v1/linkedin/profiles/{public_id} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://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://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://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://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://scrapebadger.com/v1/linkedin/profiles/{public_id}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://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>",
"access_scope": "<string>",
"name": "<string>",
"headline": "<string>",
"location": "<string>",
"country": "<string>",
"about": "<string>",
"image": "<string>",
"cover_image": "<string>",
"follower_count": 123,
"connection_count": "<string>",
"badges": [
"<string>"
],
"websites": [
"<string>"
],
"job_titles": [
"<string>"
],
"current_company": "<string>",
"current_company_url": "<string>",
"experience": [
{}
],
"education": [
{}
],
"languages": [
"<string>"
],
"language_details": [
{}
],
"awards": [
"<string>"
],
"award_details": [
{}
],
"volunteering": [
{}
],
"recommendations": [
{}
],
"instructor_courses": [
{}
],
"recent_posts": [
{}
],
"recent_articles": [
{}
],
"similar_profiles": [
{}
],
"partial_sections": [
"<string>"
]
}
}Fetch a member’s public LinkedIn profile by their vanity
Credits: 8
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.
Authorization
Path Parameters
Query Parameters
Response
The
Profile. access_scope is public for this endpoint.Show profile
Show profile
Each can include
title, company, company_url, location, employment_type, description, date_range, duration, start_year, end_year, and is_current.Each can include
school, school_url, degree, field_of_study, description, date_range, start_year, and end_year.Each:
title, organization, organization_url, date_range, start_year, end_year, description.Public activity shares with
type, url, title, text, published_at, like_count, comment_count, author_name, and author_url.Example
curl "https://scrapebadger.com/v1/linkedin/profiles/williamhgates" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://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://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": []
}
}

