Skip to main content
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.
  1. For mentions in posts: When implementing @mentions, use this endpoint with typeahead functionality.
  2. Company search: The exact company vanity name is required.
  3. Person search: Start with at least 3 characters of a name for best results.
  4. 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.
Search behavior:
  • 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.
  • 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
personOnly
boolean
default:false
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).

Examples