LinkedIn company page API
A company page: description, website, industry, size, headquarters, specialties, locations, followers, employee count, affiliated and similar pages.
GET /v1/linkedin/company
GET /v1/linkedin/company
A company page: description, website, industry, size, headquarters, specialties, locations, followers, employee count, affiliated and similar pages.
- Cost: 1 credit
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Company page URL (linkedin.com/company/<slug>). Accepted hosts: linkedin.com. |
Every request also accepts:
trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
1curl -G "https://api.socialscrape.dev/v1/linkedin/company" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "url=https://www.linkedin.com/company/microsoft"1import os2import requests34params = {5 "url": "https://www.linkedin.com/company/microsoft",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/linkedin/company",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/linkedin/company");2url.search = new URLSearchParams({3 "url": "https://www.linkedin.com/company/microsoft"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape LinkedIn company page",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/linkedin/company",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.linkedin.com/company/microsoft"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_effcd4396c0e4af796ebf091",8 "data": {9 "object": "profile",10 "platform": "linkedin",11 "id": "1035",12 "handle": "microsoft",13 "name": "Microsoft",14 "headline": null,15 "url": "https://www.linkedin.com/company/microsoft",16 "kind": "company",17 "bio": "Every company has a mission. What's ours? To empower every person and every organization to achieve more. We believe technology can and should be a force for good and that meaningful innovation contributes to a brighter world in the future...",18 "avatar_url": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_200_200/B56ZYQ0mrGGoAM-/0/1744038948046/microsoft_logo?e=2147483647&v=beta&t=ts9MGrTk7Lz3R1bmAfzCL8euuuuPWPCoXfdiLA2_IzM",19 "banner_url": "https://media.licdn.com/dms/image/v2/D4E3DAQGWOa_gAs1qXg/image-scale_325_1920/B4EZ8ZTX5SJEAI-/0/1782835937311/microsoft_cover?e=2147483647&v=beta&t=z_r5wUburw7hBaw0p2LprNAGNhvq22Evh-q5biHXpYM",20 "verified": null,21 "is_private": null,22 "external_url": "https://news.microsoft.com/",23 "links": [24 {25 "title": "Website",26 "url": "https://news.microsoft.com/"27 }28 ],29 "location": "Redmond, Washington",30 "category": "Software Development",31 "created_at": null,32 "stats": {33 "followers": 29402101,34 "following": null,35 "posts": null,36 "likes": null,37 "views": null38 },39 "extra": {40 "address": "1 Microsoft Way, Redmond, Washington, 98052, US",41 "affiliated_pages": [42 {43 "name": "GitHub",44 "slug": "github",45 "url": "https://www.linkedin.com/company/github"46 },47 {48 "name": "Microsoft Learn",49 "slug": "microsoftlearn",50 "url": "https://www.linkedin.com/showcase/microsoftlearn/"51 },52 {53 "name": "Microsoft Azure",54 "slug": "microsoft-azure",55 "url": "https://www.linkedin.com/showcase/microsoft-azure/"56 }57 ],58 "company_size": "10,001+ employees",59 "employees_count": 231133,60 "employees_on_linkedin": 231133,61 "employees_sample": [62 {63 "name": "Reid Hoffman",64 "url": "https://www.linkedin.com/in/reidhoffman"65 }66 ],67 "headquarters": "Redmond, Washington",68 "industry": "Software Development",69 "locations": [70 "1 Microsoft Way Redmond, Washington 98052, US",71 "1 Denison Street North Sydney, NSW 2060, AU",72 "1950 Meadowvale Blvd Mississauga, Ontario L5N 8L9, CA"73 ],74 "organization_type": "Public Company",75 "postal_address": {76 "addressCountry": "US",77 "addressLocality": "Redmond",78 "addressRegion": "Washington",79 "postalCode": "98052",80 "streetAddress": "1 Microsoft Way"81 },82 "similar_pages": [83 {84 "name": "Google",85 "slug": "google",86 "url": "https://www.linkedin.com/company/google"87 },88 {89 "name": "Amazon",90 "slug": "amazon",91 "url": "https://www.linkedin.com/company/amazon"92 },93 {94 "name": "Apple",95 "slug": "apple",96 "url": "https://www.linkedin.com/company/apple"97 }98 ],99 "source": "logged_out_public_view",100 "specialties": [101 "Business Software",102 "Developer Tools",103 "Home & Educational Software"104 ]105 }106 },107 "cursor": null,108 "has_more": null109}Response#
A Profile object in data.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
1{2 "ok": false,3 "error": {4 "code": "not_found",5 "message": "The platform says this profile, post or item does not exist.",6 "retryable": false7 },8 "credits_charged": 0,9 "request_id": "req_efbd1da264d86028e02f4cc1"10}Related endpoints#
- LinkedIn Ad Library search (
GET /v1/linkedin/ad-library/search) - LinkedIn Ad Library ad details (
GET /v1/linkedin/ad-library/ad) - LinkedIn public person profile (
GET /v1/linkedin/profile) - LinkedIn company posts (
GET /v1/linkedin/company/posts) - LinkedIn post search (
GET /v1/linkedin/search/posts) - LinkedIn public post (
GET /v1/linkedin/post) - LinkedIn post video transcript (
GET /v1/linkedin/post/transcript)