---
title: "How to get LinkedIn data"
description: "Get public LinkedIn profiles, company pages, company posts and job postings as JSON, without partner approval. What LinkedIn’s APIs allow, working code, a real response and prices."
canonical_url: https://groundsocial.dev/guides/how-to-get-linkedin-data
---
# How to get LinkedIn data

> Get public LinkedIn profiles, company pages, company posts and job postings as JSON, without partner approval. What LinkedIn’s APIs allow, working code, a real response and prices.

_Checked 2026-11-27._

LinkedIn has no API for other people’s profiles: self-serve access covers only the signed-in member’s own basics, and everything else is a partner programme. A data API reads what LinkedIn shows logged-out visitors. One GET returns a public profile with headline, experience, education and followers, 5 credits.

> **Checked 27 November 2026** Every request on this page was run against the live API on that date, and the sample response is from that run. Official-API facts link to the platform’s own pages.

## The official LinkedIn API

LinkedIn’s open APIs are about the signed-in member; the rest are partner programmes.

- **Sign In with LinkedIn** (OpenID Connect) returns the member’s own name, headline, photo and email; **Share on LinkedIn** posts for them. Any developer can self-serve these.
- Marketing, Sales Navigator, Talent and Learning APIs need LinkedIn’s approval as a partner. There is no API for looking up other people’s profiles.
- The Job Posting API is for applicant-tracking partners posting jobs, not reading them.

Sources: [Getting access to LinkedIn APIs](https://learn.microsoft.com/en-us/linkedin/shared/authentication/getting-access), [Sign In with LinkedIn](https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2).

## Quick start

1. **Get a key.** [Sign up](https://groundsocial.dev/app/sign-in?new=1) with an email code: 100 free credits, no card. An agent can sign itself up with `POST https://api.groundsocial.dev/v1/agent/signup`.
2. **Set it in your shell.** `export GROUNDSOCIAL_API_KEY=gs_live_…`
3. **Make the call.** A public profile: `GET /v1/linkedin/profiles/williamhgates`, 5 credits.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/linkedin/profiles/williamhgates" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/linkedin/profiles/williamhgates', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/linkedin/profiles/williamhgates",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

## Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened. Every field is described in the [tutorial](https://groundsocial.dev/tutorials/linkedin/profile/python).

```json
{
  "public_identifier": "williamhgates",
  "url": "https://www.linkedin.com/in/williamhgates",
  "member_urn": "urn:li:member:251749025",
  "name": "Bill Gates",
  "first_name": "Bill",
  "last_name": "Gates",
  "headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
  "location": "Seattle, Washington, United States",
  "country": "US",
  "about": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Vo…",
  "followers_count": 40858641,
  "connections": "8",
  "current_companies": [
    "Gates Foundation"
  ],
  "experience": [
    {
      "title": "Co-chair",
      "company": "Gates Foundation",
      "company_url": "https://www.linkedin.com/company/gates-foundation",
      "date_range": "2000 - Present 26 years"
    }
  ]
}
```

## Get every page

`/v1/linkedin/jobs` returns jobs a page at a time, and each page costs 5 credits. Pass the response’s `after` back as `after` until it runs out.

TypeScript:

```ts
// Collect up to 3 pages of jobs.
const first = 'https://api.groundsocial.dev/v1/linkedin/jobs?keywords=data%20engineer&location=London&date_posted=past_week'
const items: unknown[] = []
let cursor: string | undefined
for (let page = 0; page < 3; page++) {
  const url = new URL(first)
  if (cursor) url.searchParams.set('after', cursor)
  const res = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
  })
  if (!res.ok) throw new Error((await res.json()).error.hint)
  const data = await res.json()
  items.push(...(data.data ?? []))
  cursor = data.after ?? undefined
  if (!cursor) break
}
console.log(items.length, 'jobs')
```

Python:

```python
import os, requests

# Collect up to 3 pages of jobs.
FIRST = "https://api.groundsocial.dev/v1/linkedin/jobs?keywords=data%20engineer&location=London&date_posted=past_week"
headers = {"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"}
items, cursor = [], None
for page in range(3):
    params = {"after": cursor} if cursor else {}
    res = requests.get(FIRST, params=params, headers=headers)
    res.raise_for_status()
    data = res.json()
    items += data.get("data") or []
    cursor = data.get("after")
    if not cursor:
        break
print(len(items), "jobs")
```

## What else you can get from LinkedIn

| What you get | Endpoint | Credits |
| --- | --- | --- |
| [A public profile](https://groundsocial.dev/tutorials/linkedin/profile/python) | `GET /v1/linkedin/profiles/williamhgates` | 5 |
| [A company page](https://groundsocial.dev/tutorials/linkedin/company/python) | `GET /v1/linkedin/companies/microsoft` | 5 |
| [A company’s posts](https://groundsocial.dev/tutorials/linkedin/company-posts/python) | `GET /v1/linkedin/companies/microsoft/posts` | 5 |
| [Job postings, 10 a page](https://groundsocial.dev/tutorials/linkedin/jobs-search/python) | `GET /v1/linkedin/jobs` | 5 |
| [One posting in full](https://groundsocial.dev/tutorials/linkedin/job-posting/python) | `GET /v1/linkedin/jobs/4476983365` | 5 |
| [Find companies](https://groundsocial.dev/tutorials/linkedin/company-id/python) | `GET /v1/linkedin/search/companies` | 1 |

Each row links to its tutorial. Every LinkedIn endpoint and price: [LinkedIn API](https://groundsocial.dev/linkedin-api).

## Tips

- Pass the part after `/in/` or the whole profile URL.
- People search is shown only to signed-in members, so start from a list of profile URLs or a company page.
- Track one company’s hiring: pass its `organization_id` as `company_id` to job search with `date_posted=past_24_hours`, daily.

## Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server `https://api.groundsocial.dev/mcp`. The `?platforms=linkedin` below loads only the LinkedIn tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: `linkedin_profile_get`, `linkedin_jobs_search`, `linkedin_company_get`, `linkedin_company_posts`, `linkedin_job_get`, `linkedin_search_companies`.

Claude Code:

```bash
claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=linkedin"
```

Cursor:

```json
{
  "mcpServers": {
    "groundsocial": {
      "url": "https://api.groundsocial.dev/mcp?platforms=linkedin"
    }
  }
}
```

Claude.ai:

```text
Customize → Connectors → + Add → Add custom connector
URL: https://api.groundsocial.dev/mcp?platforms=linkedin
```

> **Then ask** “Get the LinkedIn profile linkedin.com/in/williamhgates and summarise the career history, then list Microsoft’s five latest company posts.”

Setup for ChatGPT, VS Code, Windsurf, n8n and others: [MCP client setup](https://groundsocial.dev/mcp).

## Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the [credit packs](https://groundsocial.dev/pricing)’ highest and lowest rates.

| Job | Credits | Cost |
| --- | --- | --- |
| Enrich 1,000 profiles | 5,000 | $5.00 → $2.00 |
| 200 companies with their posts | 2,000 | $2.00 → $0.80 |
| 1,000 job postings (100 pages) | 500 | $0.50 → $0.20 |

## FAQ

### Do I get emails or phone numbers?

No. Only what the public profile page shows. We don’t enrich contact details.

### What if a profile is hidden?

Members can hide their public profile; then the call answers `404 target_not_found` and is not charged.

### Are failed calls charged?

No. A target that does not exist answers `404 target_not_found`, an upstream failure answers `503`, and neither costs anything. Credits never expire.

### Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.

## Go deeper

- [LinkedIn tutorials: 12 endpoints in six languages](https://groundsocial.dev/tutorials/linkedin)
- [How do I scrape LinkedIn legally?](https://groundsocial.dev/answers/how-to-scrape-linkedin-legally)
- [Does LinkedIn have a public API?](https://groundsocial.dev/answers/does-linkedin-have-a-public-api)
- [Proxycurl alternatives](https://groundsocial.dev/alternatives/proxycurl)
- [Lead generation API](https://groundsocial.dev/use-cases/lead-generation-api)

## Related guides

- [How to get X (Twitter) data](https://groundsocial.dev/guides/how-to-get-x-twitter-data)
- [How to get Reddit data](https://groundsocial.dev/guides/how-to-get-reddit-data)

LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.

_Canonical HTML: https://groundsocial.dev/guides/how-to-get-linkedin-data_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Guides","item":"https://groundsocial.dev/guides"},{"@type":"ListItem","position":3,"name":"How to get LinkedIn data","item":"https://groundsocial.dev/guides/how-to-get-linkedin-data"}]}
```
