Facebook Pixel
ApiLinkedin search

Search service categories

Search LinkedIn service-category ids by name, for `POST /search/people` `filters.serviceCategories`. 1. `POST /search/service-categories` with `{ "keywords": "Fina" }` returns `{ "serviceCategoryId": "826", "name": "Financial Analysis" }`. 2. `POST /search/people` with `{ "filters": { "serviceCategories": ["826"] } }`. The ids are opaque and not guessable (Financial Analysis is `826`, Accounting is `71`), and LinkedIn answers an unrecognised id with 200 and zero results rather than an error — so without this lookup a wrong id is indistinguishable from "nobody matched". Returns up to 10 matches in LinkedIn's ranking order. Rate limit: no per-account search quota is enforced on this lookup — only the general 30-calls-per-minute velocity limit. Resolve an id once and reuse it rather than looking it up on every request.

POST/search/service-categories
Authentication requiredSearch

Code Examples

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

Search LinkedIn service-category ids by name, for POST /search/people filters.serviceCategories.

  1. POST /search/service-categories with { "keywords": "Fina" } returns { "serviceCategoryId": "826", "name": "Financial Analysis" }.
  2. POST /search/people with { "filters": { "serviceCategories": ["826"] } }.

The ids are opaque and not guessable (Financial Analysis is 826, Accounting is 71), and LinkedIn answers an unrecognised id with 200 and zero results rather than an error — so without this lookup a wrong id is indistinguishable from "nobody matched". Returns up to 10 matches in LinkedIn's ranking order.

Rate limit: no per-account search quota is enforced on this lookup — only the general 30-calls-per-minute velocity limit. Resolve an id once and reuse it rather than looking it up on every request.

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use for the search. If not provided, uses the default account.
keywordsstringYesService category name to search for (e.g., "Fina", "Marketing", "Accounting")

Example

{
  "keywords": "software engineer"
}

Responses

StatusDescription
200Service categories retrieved successfully
400Bad Request - Missing required keywords parameter
401Unauthorized
500Failed to search service categories

200 Response Parameters

NameTypeDescription
successboolean
serviceCategoriesarray
countnumberNumber of categories returned

200 Example

{
  "success": true,
  "serviceCategories": [
    {
      "name": "Financial Analysis",
      "serviceCategoryId": "826"
    },
    {
      "name": "Financial Reporting",
      "serviceCategoryId": "219"
    }
  ],
  "count": 2
}

400 Response Parameters

NameTypeDescription
successboolean
errorobject

400 Example

{
  "success": false,
  "error": {
    "issues": [
      {
        "code": "invalid_type",
        "expected": "string",
        "received": "undefined",
        "path": [
          "keywords"
        ],
        "message": "Required"
      }
    ],
    "name": "ZodError"
  }
}

On this page