100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
queryquery · requiredstringA 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.

FieldTypeDescription
dataLinkedInTypeaheadHit[]
Status codes
StatusMeaning
200Matching companies.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404LinkedIn has no such public page, or it was removed.
429Too many requests. Wait for Retry-After seconds.
503LinkedIn 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.