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

LinkedIn location id lookup API

LinkedIn’s own location typeahead: places matching a name, with the geo id the job search takes.

GET /v1/linkedin/search/locationsBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/linkedin/search/locations?query=london",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"data": [
{
"id": "90009496",
"type": "GEO",
"displayName": "London Area, United Kingdom",
"trackingId": "IrO5yWYTRuewKTzSkrJhWg=="
},
{
"id": "90009538",
"type": "GEO",
"displayName": "London, Canada Metropolitan Area",
"trackingId": "TZx9+actRXCVQRShhtW1ZA=="
},
"… 8 more"
]
}

Parameters

NameTypeDescription
queryquery · requiredstringA place name. Example: london.
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 places.
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

How many results?

Up to 10.

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