LinkedIn company id lookup API
LinkedIn’s own company typeahead: companies matching a name, with the numeric id the job and Ad Library searches take.
GET /v1/linkedin/search/companiesBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/linkedin/search/companies?query=stripe",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "data": [ { "id": "2135371", "type": "COMPANY", "displayName": "Stripe", "trackingId": "CwLcDHj4QBSFHOrY5crrUA==" }, { "id": "86090", "type": "COMPANY", "displayName": "Stripes", "trackingId": "C/CHYcZpSM6ynTws5PtuBA==" }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | A company name. Example: stripe. |
Response fields
200 with a LinkedInTypeaheadPage, in LinkedIn’s own schema.org JSON-LD, with the rest of the public page beside it.
| Field | Type | Description |
|---|---|---|
data | LinkedInTypeaheadHit[] |
Status codes
| Status | Meaning |
|---|---|
200 | Matching companies. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | LinkedIn has no such public page, or it was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Does it give the page’s details?
No, names and ids only. Use the company page endpoint for details.
LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.