Docs menu

LinkedIn company page

Beta GET /v1/linkedin/company

GET /v1/linkedin/company

A company page as a signed-out visitor sees it: description, website, industry, size, headquarters, specialties, locations, followers, employee count, affiliated and similar pages.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLyesCompany page URL (linkedin.com/company/<slug>). Accepted hosts: linkedin.com.

Every request also accepts:

  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • 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).

curl
curl -G "https://api.socialscrape.io/v1/linkedin/company" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/company/microsoft"
Python
import os
import requests

params = {
    "url": "https://www.linkedin.com/company/microsoft",
}
res = requests.get(
    "https://api.socialscrape.io/v1/linkedin/company",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/linkedin/company");
url.search = new URLSearchParams({
  "url": "https://www.linkedin.com/company/microsoft"
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape LinkedIn company page",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/linkedin/company",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.linkedin.com/company/microsoft"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_effcd4396c0e4af796ebf091",
  "data": {
    "object": "profile",
    "platform": "linkedin",
    "id": "1035",
    "handle": "microsoft",
    "name": "Microsoft",
    "headline": null,
    "url": "https://www.linkedin.com/company/microsoft",
    "kind": "company",
    "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...",
    "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",
    "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",
    "verified": null,
    "is_private": null,
    "external_url": "https://news.microsoft.com/",
    "links": [
      {
        "title": "Website",
        "url": "https://news.microsoft.com/"
      }
    ],
    "location": "Redmond, Washington",
    "category": "Software Development",
    "created_at": null,
    "stats": {
      "followers": 29402101,
      "following": null,
      "posts": null,
      "likes": null,
      "views": null
    },
    "extra": {
      "address": "1 Microsoft Way, Redmond, Washington, 98052, US",
      "affiliated_pages": [
        {
          "name": "GitHub",
          "slug": "github",
          "url": "https://www.linkedin.com/company/github"
        },
        {
          "name": "Microsoft Learn",
          "slug": "microsoftlearn",
          "url": "https://www.linkedin.com/showcase/microsoftlearn/"
        },
        {
          "name": "Microsoft Azure",
          "slug": "microsoft-azure",
          "url": "https://www.linkedin.com/showcase/microsoft-azure/"
        }
      ],
      "company_size": "10,001+ employees",
      "employees_count": 231133,
      "employees_on_linkedin": 231133,
      "employees_sample": [
        {
          "name": "Reid Hoffman",
          "url": "https://www.linkedin.com/in/reidhoffman"
        }
      ],
      "headquarters": "Redmond, Washington",
      "industry": "Software Development",
      "locations": [
        "1 Microsoft Way Redmond, Washington 98052, US",
        "1 Denison Street North Sydney, NSW 2060, AU",
        "1950 Meadowvale Blvd Mississauga, Ontario L5N 8L9, CA"
      ],
      "organization_type": "Public Company",
      "postal_address": {
        "addressCountry": "US",
        "addressLocality": "Redmond",
        "addressRegion": "Washington",
        "postalCode": "98052",
        "streetAddress": "1 Microsoft Way"
      },
      "similar_pages": [
        {
          "name": "Google",
          "slug": "google",
          "url": "https://www.linkedin.com/company/google"
        },
        {
          "name": "Amazon",
          "slug": "amazon",
          "url": "https://www.linkedin.com/company/amazon"
        },
        {
          "name": "Apple",
          "slug": "apple",
          "url": "https://www.linkedin.com/company/apple"
        }
      ],
      "source": "logged_out_public_view",
      "specialties": [
        "Business Software",
        "Developer Tools",
        "Home & Educational Software"
      ]
    }
  },
  "cursor": null,
  "has_more": null
}

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.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe 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:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_efbd1da264d86028e02f4cc1"
}