Skip to content

Turn LinkedIn Profile
into structured data

Extract public LinkedIn profile details from profile URLs or IDs: names, headlines, locations, about sections, follower counts, experience, and education.

01-Integration

Integrate LinkedIn Profile API your way

Connect to Scrape.ly using Python, JavaScript, HTTP, cURL, OpenAPI, or MCP and start extracting LinkedIn Profile data in minutes.

from scrapely_client import ScrapelyClient
client = ScrapelyClient('YOUR_TOKEN', api_url='https://api.scrape.ly')
run = client.actor('cornerledger/linkedin-profile-scraper').call(
run_input={'queries': ['https://www.linkedin.com/in/williamhgates']}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)
02-Input & Output

Send a profile URL, get structured profile data

Pass profile URLs, public identifiers, and profile IDs into Scrape.ly. Get structured outputs with names and headlines, locations, about sections, experience and education, and follower and connection counts, and more.

Input
1 2 3 4 5
{
 "queries": [
  "https://www.linkedin.com/in/williamhgates"
 ]
}
Output
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{
 "publicIdentifier": "williamhgates",
 "firstName": "Bill",
 "lastName": "Gates",
 "headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
 "location": {
  "linkedinText": "Seattle, Washington, United States"
 },
 "followerCount": 41000000,
 "currentPosition": [
  {
   "companyName": "Gates Foundation"
  }
 ],
 "linkedinUrl": "https://www.linkedin.com/in/williamhgates"
}
Reference

LinkedIn Profile API reference

One request returns one public LinkedIn profile per target, as JSON. Send profile URLs, public identifiers (the last part of the URL) or profile IDs; no LinkedIn account or cookie is involved.

Endpoint

POST https://api.scrape.ly/v2/actors/cornerledger~linkedin-profile-scraper/run-sync-get-dataset-items

Starts a run, waits up to 90 seconds and returns the dataset items. Add ?format=csv for CSV. For longer jobs, start the run with POST /v2/actors/{actorId}/runs and read the dataset when it finishes. From $2.72 per 1,000 profiles.

curl -X POST "https://api.scrape.ly/v2/actors/cornerledger~linkedin-profile-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $SCRAPELY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["https://www.linkedin.com/in/williamhgates"]}'

Body parameters

NameTypeDescription
queriesstring[]Profile URLs or public identifiers, mixed, for example "https://www.linkedin.com/in/williamhgates" or "williamhgates".
urlsstring[]Profile URLs.
publicIdentifiersstring[]Public identifiers only.
profileIdsstring[]LinkedIn profile IDs.

Send at least one of the four fields. One row per target; error and errorDescription are set when a target cannot be read.

Profiles are personal data: process them with a lawful basis and in line with GDPR and CCPA.

Response fields

  • id
  • publicIdentifier
  • linkedinUrl
  • firstName
  • lastName
  • headline
  • about
  • location
  • connectionsCount
  • followerCount
  • currentPosition
  • experience
  • education
  • error
  • errorDescription

Status codes

StatusTypeMeaning
200—The run succeeded. The body is the dataset items, a JSON array.
400run-failedThe run ended in a status other than SUCCEEDED.
401token-not-provided / token-not-validNo Authorization: Bearer header, or an unknown, expired or revoked token.
402payment-requiredThe run cannot reserve enough credits.
408run-timeout-exceededThe run did not finish within 90 seconds. It keeps going: wait with GET /v2/actor-runs/{runId}?waitForFinish=60 instead of starting another.
429rate-limit-exceeded / concurrency-limit-exceededToo many requests or concurrent runs. Retry with exponential backoff.

Full details in the Actors API docs.

03-How it works

Start extracting LinkedIn Profile data in four simple steps

Scrape.ly keeps the setup simple so you can move from signup to live LinkedIn Profile data without wasting time on scraping infrastructure.

Step 1

Create your Scrape.ly account

Create your account and get access to ready-made APIs, scrapers, and automation tools.

Step 2

Get your Scrape.ly API token

Copy your API token from the Scrape.ly dashboard and use it to authenticate your requests.

Step 3

Connect LinkedIn Profile API

Choose Python, JavaScript, HTTP, or MCP and connect Scrape.ly to your app or workflow.

Step 4

Fetch LinkedIn Profile data

Send your profile URLs, public identifiers, and profile IDs, then receive clean structured data ready for analysis.

04-Why Scrape.ly

Everything you need to extract data reliably

Scrape.ly gives you ready-made APIs, proxy support, monitoring, exports, integrations, and scalable infrastructure in one platform.

Never Get Blocked

Use built-in proxy support to reduce blocks, rate limits, and failed requests.

Export Any Format

Get results in JSON, CSV, Excel, XML, HTML table, RSS, or other workflow-friendly formats.

Monitor Every Run

Track scraper status, performance, failures, retries, and outputs from one dashboard.

Built-In Integrations

Connect with webhooks, APIs, automation tools, cloud apps, and internal systems.

Scalable Infrastructure

Run small tests or high-volume extraction jobs without rebuilding your scraping stack.

Developer-Friendly

Use clean APIs, SDKs, docs, examples, and structured outputs built for real workflows.

05-AI-Ready Data

FeedLinkedIn Profiledata into your tools instantly

Connect Scrape.ly with your apps, dashboards, sheets, agents, and automation workflows to turn LinkedIn Profile data into action.

06-Explore APIs

More LinkedIn Profile APIs on Scrape.ly

Browse ready-made LinkedIn Profile scrapers and APIs available inside Scrape.ly and choose the one that fits your workflow.

//07-FAQ\\

Common questions about LinkedIn Profile API

Quick answers about using Scrape.ly's LinkedIn Profile API, available data, setup, and legal usage.

Got more questions?Reach out to us


Official APIs, where they exist, usually need approval, keys, or paid tiers and limit which public data you can pull. Scrape.ly's LinkedIn Profile API collects the public data shown on LinkedIn Profile and returns it as structured JSON, with no approval process.

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.