Facebook Pixel

Search Geo Locations

Search for geographic locations on LinkedIn for use in filters. Returns location IDs that can be used in other search endpoints.

POST/linkedin/search/geo

Search Geo Locations

Search for geographic locations on LinkedIn for use in filters. Returns location IDs that can be used in other search endpoints.

Authentication requiredLinkedIn Search

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/search/geo' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"keywords":"San Francisco"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
keywordsstringYesLocation search keywords (e.g., city, state, country name)
countryCodesstring[]NoFilter results by country codes (e.g., ["US", "CA"])

Example

{
  "keywords": "San Francisco"
}

Example with Country Filter

{
  "keywords": "Toronto",
  "countryCodes": ["CA"]
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "locations": [
    {
      "id": "102277331",
      "name": "San Francisco, California, United States",
      "type": "CITY"
    },
    {
      "id": "102571732",
      "name": "San Francisco Bay Area",
      "type": "REGION"
    },
    {
      "id": "103167585",
      "name": "San Francisco County, California, United States",
      "type": "ADMIN_DIVISION_2"
    }
  ],
  "count": 3
}

Usage Notes

The location IDs returned by this endpoint can be used in other search endpoints:

  • Jobs Search: Use the id as geoUrn or locationId in the filters
  • People Search: Use the id as geoUrn or locationId in the filters
  • Companies Search: Use the id as geoUrn or locationId in the filters

Location Types

TypeDescription
COUNTRYCountry-level location
REGIONRegional area (e.g., Bay Area, Metro Area)
CITYCity-level location
ADMIN_DIVISION_1State/Province level
ADMIN_DIVISION_2County/District level