> ## Documentation Index
> Fetch the complete documentation index at: https://getanyapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn Profile Search

> Sell linkedin.search_profiles on AnyAPI: the request your endpoint receives, the response it must return, and what the real-request check judges.

Search LinkedIn profiles by keyword with optional location and job-title filters. Each match returns a full profile record: name, headline, location, current position, work experience, education, and skills, plus the profile URL, handle, and id. For a cheaper name/headline/URL-only search use linkedin.search\_profiles\_thin; add emails with linkedin.search\_profiles\_email.

This page is the seller-facing summary of one catalog API, `linkedin.search_profiles`. The transport rules that apply to every API a seller serves - signed requests, the response envelope, timeouts, and body limits - are on [the operator endpoint contract](https://getanyapi.com/docs/sell/operator-endpoint-contract.md).

## The price you compete with

AnyAPI publishes this API from **\$95.00 per 1,000 requests**. That is the price a buyer sees today, so it is the price your endpoint has to come in under to win traffic.

## The request your endpoint receives

| Field | Type | Required | What it means |
| - | - | - | - |
| `companyHeadcount` | array | no | Filter by current company size (employee count). Codes: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+. |
| `companyHeadquarterLocations` | array | no | Filter by the location of the person's current company headquarters, by place name (e.g. \['United States']). |
| `currentCompanies` | array | no | Filter to people who currently work at any of these companies, by name (e.g. \['Google','Meta']). Multiple names widen the match (OR). |
| `excludeCompanyHeadquarterLocations` | array | no | Exclude people whose current company is headquartered in any of these locations. |
| `excludeCurrentCompanies` | array | no | Exclude people who currently work at any of these companies, by name. |
| `excludeCurrentJobTitles` | array | no | Exclude people whose current job title matches any of these. |
| `excludeFunctionIds` | array | no | Exclude these job functions (same codes as functionIds). |
| `excludeLocations` | array | no | Exclude people in any of these locations, by place name. |
| `excludePastCompanies` | array | no | Exclude people who previously worked at any of these companies, by name. |
| `excludePastJobTitles` | array | no | Exclude people who held any of these past job titles. |
| `excludeSchools` | array | no | Exclude people who attended any of these schools, by name. |
| `excludeSeniorityLevelIds` | array | no | Exclude these seniority levels (same codes as seniorityLevelIds). |
| `firstNames` | array | no | Filter to people whose first name matches any of these. |
| `functionIds` | array | no | Filter by job function. Codes: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Healthcare Services, 12=Human Resources, 13=Information Technology, 14=Legal, 15=Marketing, 16=Media and Communication, 17=Military and Protective Services, 18=Operations, 19=Product Management, 20=Program and Project Management, 21=Purchasing, 22=Quality Assurance, 23=Real Estate, 24=Research, 25=Sales, 26=Customer Success and Support. |
| `jobTitle` | string | no | Optional current job title filter (e.g. 'Software Engineer'). |
| `lastNames` | array | no | Filter to people whose last name matches any of these. |
| `limit` | integer | no | Maximum number of full profiles to return (1-25, default 10). You are billed per profile returned, so a lower limit costs less. |
| `location` | string | no | Optional location filter (e.g. 'San Francisco'). |
| `pastCompanies` | array | no | Filter to people who previously worked at any of these companies, by name. |
| `pastJobTitles` | array | no | Filter by a past job title the person held (e.g. \['Product Manager']). |
| `profileLanguages` | array | no | Filter by the profile's primary language. |
| `query` | string | yes | Search query for LinkedIn profiles: a role, name, or keywords (e.g. 'Marketing Manager'). |
| `recentlyChangedJobs` | boolean | no | When true, only return people who recently changed jobs (a strong sales/recruiting signal). |
| `recentlyPostedOnLinkedIn` | boolean | no | When true, only return people who recently posted on LinkedIn (an activity signal). |
| `schools` | array | no | Filter to people who attended any of these schools, by name. |
| `seniorityLevelIds` | array | no | Filter by seniority level. Codes: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner. |
| `yearsAtCurrentCompanyIds` | array | no | Filter by tenure at the current company. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years. |
| `yearsOfExperienceIds` | array | no | Filter by total years of experience. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years. |

> [accordion] Full input JSON Schema
>
> ```json theme={"dark"}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "$id": "https://getanyapi.com/schemas/linkedin.search_profiles.input.json",
>   "example": {
>     "query": "engineer",
>     "currentCompanies": [
>       "Google"
>     ],
>     "limit": 3
>   },
>   "title": "LinkedIn profile search input",
>   "type": "object",
>   "additionalProperties": false,
>   "required": [
>     "query"
>   ],
>   "properties": {
>     "limit": {
>       "type": "integer",
>       "minimum": 1,
>       "maximum": 25,
>       "description": "Maximum number of full profiles to return (1-25, default 10). You are billed per profile returned, so a lower limit costs less."
>     },
>     "query": {
>       "type": "string",
>       "description": "Search query for LinkedIn profiles: a role, name, or keywords (e.g. 'Marketing Manager')."
>     },
>     "location": {
>       "type": "string",
>       "description": "Optional location filter (e.g. 'San Francisco')."
>     },
>     "jobTitle": {
>       "type": "string",
>       "description": "Optional current job title filter (e.g. 'Software Engineer')."
>     },
>     "currentCompanies": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR)."
>     },
>     "pastCompanies": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter to people who previously worked at any of these companies, by name."
>     },
>     "schools": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter to people who attended any of these schools, by name."
>     },
>     "pastJobTitles": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter by a past job title the person held (e.g. ['Product Manager'])."
>     },
>     "firstNames": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter to people whose first name matches any of these."
>     },
>     "lastNames": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter to people whose last name matches any of these."
>     },
>     "companyHeadquarterLocations": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Filter by the location of the person's current company headquarters, by place name (e.g. ['United States'])."
>     },
>     "recentlyChangedJobs": {
>       "type": "boolean",
>       "description": "When true, only return people who recently changed jobs (a strong sales/recruiting signal)."
>     },
>     "recentlyPostedOnLinkedIn": {
>       "type": "boolean",
>       "description": "When true, only return people who recently posted on LinkedIn (an activity signal)."
>     },
>     "seniorityLevelIds": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "100",
>           "110",
>           "120",
>           "130",
>           "200",
>           "210",
>           "220",
>           "300",
>           "310",
>           "320"
>         ]
>       },
>       "description": "Filter by seniority level. Codes: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner."
>     },
>     "functionIds": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "1",
>           "2",
>           "3",
>           "4",
>           "5",
>           "6",
>           "7",
>           "8",
>           "9",
>           "10",
>           "11",
>           "12",
>           "13",
>           "14",
>           "15",
>           "16",
>           "17",
>           "18",
>           "19",
>           "20",
>           "21",
>           "22",
>           "23",
>           "24",
>           "25",
>           "26"
>         ]
>       },
>       "description": "Filter by job function. Codes: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Healthcare Services, 12=Human Resources, 13=Information Technology, 14=Legal, 15=Marketing, 16=Media and Communication, 17=Military and Protective Services, 18=Operations, 19=Product Management, 20=Program and Project Management, 21=Purchasing, 22=Quality Assurance, 23=Real Estate, 24=Research, 25=Sales, 26=Customer Success and Support."
>     },
>     "yearsOfExperienceIds": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "1",
>           "2",
>           "3",
>           "4",
>           "5"
>         ]
>       },
>       "description": "Filter by total years of experience. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years."
>     },
>     "yearsAtCurrentCompanyIds": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "1",
>           "2",
>           "3",
>           "4",
>           "5"
>         ]
>       },
>       "description": "Filter by tenure at the current company. Codes: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years."
>     },
>     "companyHeadcount": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "A",
>           "B",
>           "C",
>           "D",
>           "E",
>           "F",
>           "G",
>           "H",
>           "I"
>         ]
>       },
>       "description": "Filter by current company size (employee count). Codes: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+."
>     },
>     "profileLanguages": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "Arabic",
>           "English",
>           "Spanish",
>           "Portuguese",
>           "Chinese",
>           "French",
>           "Italian",
>           "Russian",
>           "German",
>           "Dutch",
>           "Turkish",
>           "Tagalog",
>           "Polish",
>           "Korean",
>           "Japanese",
>           "Malay",
>           "Norwegian",
>           "Danish",
>           "Romanian",
>           "Swedish",
>           "Bahasa Indonesia",
>           "Czech"
>         ]
>       },
>       "description": "Filter by the profile's primary language."
>     },
>     "excludeLocations": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people in any of these locations, by place name."
>     },
>     "excludeCurrentCompanies": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people who currently work at any of these companies, by name."
>     },
>     "excludeCurrentJobTitles": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people whose current job title matches any of these."
>     },
>     "excludePastCompanies": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people who previously worked at any of these companies, by name."
>     },
>     "excludeSchools": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people who attended any of these schools, by name."
>     },
>     "excludePastJobTitles": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people who held any of these past job titles."
>     },
>     "excludeCompanyHeadquarterLocations": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "description": "Exclude people whose current company is headquartered in any of these locations."
>     },
>     "excludeSeniorityLevelIds": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "100",
>           "110",
>           "120",
>           "130",
>           "200",
>           "210",
>           "220",
>           "300",
>           "310",
>           "320"
>         ]
>       },
>       "description": "Exclude these seniority levels (same codes as seniorityLevelIds)."
>     },
>     "excludeFunctionIds": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "enum": [
>           "1",
>           "2",
>           "3",
>           "4",
>           "5",
>           "6",
>           "7",
>           "8",
>           "9",
>           "10",
>           "11",
>           "12",
>           "13",
>           "14",
>           "15",
>           "16",
>           "17",
>           "18",
>           "19",
>           "20",
>           "21",
>           "22",
>           "23",
>           "24",
>           "25",
>           "26"
>         ]
>       },
>       "description": "Exclude these job functions (same codes as functionIds)."
>     }
>   }
> }
> ```

## The response your endpoint must return

| Field | Type | Always present | What it means |
| - | - | - | - |
| `data` | null or object | yes | The results wrapper, or null when nothing was found. |
| `data.items` | array | yes | Matched profile records. |
| `data.items[].about` | string | no | Profile about / summary text. |
| `data.items[].city` | string | no | City of the member. |
| `data.items[].connectionsCount` | integer | no | Number of connections on the profile. |
| `data.items[].country` | string | no | Country of the member. |
| `data.items[].countryCode` | string | no | Two-letter country code of the member. |
| `data.items[].coverImage` | string | no | Profile cover (banner) image URL. The query string is a signed token, so keep the URL intact. |
| `data.items[].creator` | boolean | no | Whether the member is in LinkedIn creator mode. |
| `data.items[].currentPosition` | array | no | Current role(s). Each entry is an open object with the position title, company, dates, and location; shape can vary by profile. |
| `data.items[].education` | array | no | Education history. Each entry is an open object with school, degree, and field of study; shape can vary by profile. |
| `data.items[].experience` | array | no | Full work history. Each entry is an open object with the position title, company, dates, and location; shape can vary by profile. |
| `data.items[].firstName` | string | no | Member's first name. |
| `data.items[].followerCount` | integer | no | Number of followers of the profile. |
| `data.items[].handle` | string | no | Public profile identifier (the vanity slug in the URL). |
| `data.items[].headline` | string | no | Profile headline (the tagline under the name). |
| `data.items[].hiring` | boolean | no | Whether the member shows the Hiring badge. |
| `data.items[].id` | string | yes | LinkedIn member URN id for the profile. |
| `data.items[].image` | string | no | Profile picture URL. |
| `data.items[].influencer` | boolean | no | Whether LinkedIn marks the member as an influencer. |
| `data.items[].lastName` | string | no | Member's last name. |
| `data.items[].location` | string | no | Member's location as a single string (city, region, country). |
| `data.items[].openToWork` | boolean | no | Whether the member has the Open to Work flag set. |
| `data.items[].premium` | boolean | no | Whether the member has a LinkedIn Premium subscription. |
| `data.items[].skills` | array | no | Listed skills, one object per skill with its name and, when the source has them, the endorsements label and related positions. |
| `data.items[].state` | string | no | State or region of the member. |
| `data.items[].url` | string | yes | Canonical LinkedIn profile URL. |
| `data.items[].verified` | boolean | no | Whether LinkedIn has verified the member's identity. |
| `found` | boolean | yes | True when at least one profile was returned. |

Extra fields are kept, missing declared fields fail.

> [accordion] Full output JSON Schema
>
> ```json theme={"dark"}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "$id": "https://getanyapi.com/schemas/linkedin.search_profiles.output.json",
>   "title": "LinkedIn profile search output",
>   "type": "object",
>   "additionalProperties": false,
>   "required": [
>     "found",
>     "data"
>   ],
>   "properties": {
>     "found": {
>       "type": "boolean",
>       "description": "True when at least one profile was returned."
>     },
>     "data": {
>       "description": "The results wrapper, or null when nothing was found.",
>       "oneOf": [
>         {
>           "type": "null"
>         },
>         {
>           "type": "object",
>           "additionalProperties": false,
>           "required": [
>             "items"
>           ],
>           "properties": {
>             "items": {
>               "x-anyapi-must-populate": true,
>               "type": "array",
>               "description": "Matched profile records.",
>               "items": {
>                 "type": "object",
>                 "description": "A full LinkedIn profile: name, headline, location, about, current position, work experience, education, and skills, plus the profile URL, handle, and id.",
>                 "required": [
>                   "id",
>                   "url"
>                 ],
>                 "properties": {
>                   "id": {
>                     "type": "string",
>                     "description": "LinkedIn member URN id for the profile."
>                   },
>                   "url": {
>                     "x-anyapi-domain": "linkedin.com",
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Canonical LinkedIn profile URL."
>                   },
>                   "handle": {
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Public profile identifier (the vanity slug in the URL)."
>                   },
>                   "firstName": {
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Member's first name."
>                   },
>                   "lastName": {
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Member's last name."
>                   },
>                   "headline": {
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Profile headline (the tagline under the name)."
>                   },
>                   "location": {
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Member's location as a single string (city, region, country)."
>                   },
>                   "about": {
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Profile about / summary text."
>                   },
>                   "image": {
>                     "x-anyapi-domain": "licdn.com",
>                     "x-anyapi-must-populate": true,
>                     "type": "string",
>                     "description": "Profile picture URL."
>                   },
>                   "premium": {
>                     "type": "boolean",
>                     "description": "Whether the member has a LinkedIn Premium subscription."
>                   },
>                   "openToWork": {
>                     "type": "boolean",
>                     "description": "Whether the member has the Open to Work flag set."
>                   },
>                   "verified": {
>                     "type": "boolean",
>                     "description": "Whether LinkedIn has verified the member's identity."
>                   },
>                   "connectionsCount": {
>                     "type": "integer",
>                     "description": "Number of connections on the profile."
>                   },
>                   "followerCount": {
>                     "type": "integer",
>                     "description": "Number of followers of the profile."
>                   },
>                   "hiring": {
>                     "type": "boolean",
>                     "description": "Whether the member shows the Hiring badge."
>                   },
>                   "influencer": {
>                     "type": "boolean",
>                     "description": "Whether LinkedIn marks the member as an influencer."
>                   },
>                   "creator": {
>                     "type": "boolean",
>                     "description": "Whether the member is in LinkedIn creator mode."
>                   },
>                   "city": {
>                     "type": "string",
>                     "description": "City of the member."
>                   },
>                   "state": {
>                     "type": "string",
>                     "description": "State or region of the member."
>                   },
>                   "country": {
>                     "type": "string",
>                     "description": "Country of the member."
>                   },
>                   "countryCode": {
>                     "type": "string",
>                     "description": "Two-letter country code of the member."
>                   },
>                   "coverImage": {
>                     "x-anyapi-domain": "licdn.com",
>                     "type": "string",
>                     "description": "Profile cover (banner) image URL. The query string is a signed token, so keep the URL intact."
>                   },
>                   "currentPosition": {
>                     "type": "array",
>                     "description": "Current role(s). Each entry is an open object with the position title, company, dates, and location; shape can vary by profile.",
>                     "items": {
>                       "type": "object"
>                     }
>                   },
>                   "experience": {
>                     "x-anyapi-must-populate": true,
>                     "type": "array",
>                     "description": "Full work history. Each entry is an open object with the position title, company, dates, and location; shape can vary by profile.",
>                     "items": {
>                       "type": "object"
>                     }
>                   },
>                   "education": {
>                     "type": "array",
>                     "description": "Education history. Each entry is an open object with school, degree, and field of study; shape can vary by profile.",
>                     "items": {
>                       "type": "object"
>                     }
>                   },
>                   "skills": {
>                     "type": "array",
>                     "description": "Listed skills, one object per skill with its name and, when the source has them, the endorsements label and related positions.",
>                     "items": {}
>                   }
>                 }
>               }
>             }
>           }
>         }
>       ]
>     }
>   }
> }
> ```

## Fields that must never come back empty

* `about`
* `experience`
* `firstName`
* `handle`
* `headline`
* `image`
* `items`
* `lastName`
* `location`
* `url`

The repository marks these fields as ones every source must be able to fill. An empty value is only correct when the entity itself genuinely has nothing there.

## Not found, and how it differs from empty

When the entity does not exist, answer 2xx with the not-found shape:

```json theme={"dark"}
{
  "found": false,
  "data": null
}
```

An empty list is not a not-found: when the entity exists and has nothing to return, answer 2xx with `found: true` and an empty `items` array.

This output schema declares no `reason` field, so `found: false` is the whole not-found answer.

## Example request

```json theme={"dark"}
{
  "query": "engineer",
  "currentCompanies": [
    "Google"
  ],
  "limit": 3
}
```

The registration tests send this example to your endpoint, with the API's other test inputs. After that, the real-request check sends your endpoint real past customer inputs, and an AI reviewer compares each answer with AnyAPI's own answer to the same input.

## Next

* [The operator endpoint contract](https://getanyapi.com/docs/sell/operator-endpoint-contract.md) for signing, budgets, and the real-request check.
* [Every API open to sellers](https://getanyapi.com/docs/sell/apis/index.md).
* Want to sell an API that is not on that list? Email [support@getanyapi.com](mailto:support@getanyapi.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.