Search
Search LinkedIn
Search for LinkedIn companies or people
GET
Search for LinkedIn companies or people based on a search query. This endpoint is commonly used for typeahead mention completion in social media posts. The linked account must be a LinkedIn company page to search. Personal LinkedIn accounts can not be used to perform searches.Documentation Index
Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- For mentions in posts: When implementing @mentions, use this endpoint with typeahead functionality.
- Company search: The exact company vanity name is required.
- Person search: Start with at least 3 characters of a name for best results.
- Rate limiting: This endpoint follows standard API rate limits.
Search Limitations
- Companies: You can search for any LinkedIn company page
- People: You can only search for people who are followers of your LinkedIn account and the Ayrshare linked account must be a LinkedIn company page to perform the search. If a person has their LinkedIn visibility set to private, they will not be found in the search results.
Header Parameters
Query Parameters
Search query to find LinkedIn companies or people.Requirements:
- Minimum length: 3 characters for people and 1 character for companies.
- Maximum length: 100 characters for both people and companies.
- For companies: Use the company’s vanity name (found in the LinkedIn URL). Only exact vanity name matches will be returned.
- Example: For
linkedin.com/company/ayrshare, search for “ayrshare”. - Searching for partial names like “ayrsh” will NOT return results.
- Example: For
- For people: Use first name and/or last name. Partial name matches are supported.
- Example: “John Smith” will find people named John Smith. Be sure to URL encode the space.
- Partial matches like “Joh” or “Smi” will also return results.
- Remember: Only your LinkedIn followers can be found and the Ayrshare linked account must be a LinkedIn company page to perform the search
Controls the search scope: -
false (default): Searches for companies first, then people if no
companies are found. - true: Searches only for people (skips company search entirely).