> ## 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.

# LinkedIn खोजें

> LinkedIn कंपनियों या लोगों को खोजें

export const PlansAvailable = ({plans = [], maxPackRequired}) => {
  let displayPlans = plans;
  if (plans && plans.length === 1) {
    const lowerCasePlan = plans[0].toLowerCase();
    if (lowerCasePlan === "business") {
      displayPlans = ["Launch", "Business", "Enterprise"];
    } else if (lowerCasePlan === "premium") {
      displayPlans = ["Premium", "Launch", "Business", "Enterprise"];
    }
  }
  return <Note>
Available on {displayPlans.length === 1 ? "the " : ""}
{displayPlans.join(", ").replace(/\b\w/g, l => l.toUpperCase())}{" "}
{displayPlans.length > 1 ? "plans" : "plan"}.

{maxPackRequired && <span onClick={() => window.open('https://www.ayrshare.com/docs/additional/maxpack', '_self')} className="flex items-center mt-2 cursor-pointer">
 <span className="px-1.5 py-0.5 rounded text-sm" style={{
    backgroundColor: '#C264B6',
    color: 'white',
    fontSize: '12px'
  }}>
   Max Pack required
 </span>
</span>}
</Note>;
};

export const HeaderAPI = ({noProfileKey, profileKeyRequired}) => <>
    <ParamField header="Authorization" type="string" required>
      <a href="/apis/overview#authorization">API Key</a> of the Primary Profile.
      <br />
      <br />
      Format: <code>Authorization: Bearer API_KEY</code>
    </ParamField>
    {!noProfileKey && (profileKeyRequired ? <ParamField header="Profile-Key" type="string" required>
          <a href="/apis/overview#profile-key-format">Profile Key</a> of a User Profile.
          <br />
          <br />
          Format: <code>Profile-Key: PROFILE_KEY</code>
        </ParamField> : <ParamField header="Profile-Key" type="string">
          <a href="/apis/overview#profile-key-format">Profile Key</a> of a User Profile.
          <br />
          <br />
          Format: <code>Profile-Key: PROFILE_KEY</code>
        </ParamField>)}
  </>;

<PlansAvailable plans={["business"]} maxPackRequired={false} />

खोज query के आधार पर LinkedIn कंपनियों या लोगों को खोजें।
यह endpoint आमतौर पर सोशल मीडिया पोस्ट्स में typeahead mention completion के लिए उपयोग किया जाता है।

**खोज करने के लिए लिंक किया गया खाता एक LinkedIn कंपनी पेज होना चाहिए।** व्यक्तिगत LinkedIn खातों का उपयोग खोज करने के लिए नहीं किया जा सकता है।

1. **पोस्ट्स में mentions के लिए**: @mentions लागू करते समय, typeahead functionality के साथ इस endpoint का उपयोग करें।
2. **कंपनी खोज**: सटीक कंपनी vanity नाम आवश्यक है।
3. **व्यक्ति खोज**: सर्वोत्तम परिणामों के लिए नाम के कम से कम 3 अक्षरों से शुरू करें।
4. **Rate limiting**: यह endpoint मानक API rate limits का पालन करता है।

<Note>
  **खोज सीमाएँ**

  <ul class="custom-bullets">
    <li>**कंपनियाँ**: आप किसी भी LinkedIn कंपनी पेज को खोज सकते हैं</li>

    <li>
      **लोग**: आप केवल उन लोगों को खोज सकते हैं जो आपके LinkedIn खाते के फ़ॉलोअर हैं और खोज करने के लिए
      Ayrshare linked account एक LinkedIn कंपनी पेज होना चाहिए। यदि किसी व्यक्ति ने अपनी LinkedIn visibility को private पर सेट किया है, तो वे खोज परिणामों में नहीं मिलेंगे।
    </li>
  </ul>
</Note>

## Header Parameters

<HeaderAPI />

## Query Parameters

<ParamField query="search" type="string" required>
  LinkedIn कंपनियों या लोगों को खोजने के लिए खोज query।

  **आवश्यकताएँ:**

  {" "}

  <ul class="custom-bullets">
    <li>न्यूनतम लंबाई: लोगों के लिए 3 अक्षर और कंपनियों के लिए 1 अक्षर।</li>
    <li>अधिकतम लंबाई: लोगों और कंपनियों दोनों के लिए 100 अक्षर।</li>
  </ul>

  **खोज व्यवहार:**

  <ul class="custom-bullets">
    <li>
      <strong>कंपनियों के लिए</strong>: कंपनी के vanity नाम (LinkedIn URL में पाया गया) का उपयोग करें। केवल **सटीक vanity नाम मिलान** लौटाए जाएँगे।

      <ul class="custom-bullets">
        <li>
          उदाहरण: `linkedin.com/company/ayrshare` के लिए, "ayrshare" खोजें।
        </li>

        <li>
          "ayrsh" जैसे आंशिक नामों की खोज परिणाम नहीं देगी।
        </li>
      </ul>
    </li>

    <li>
      <strong>लोगों के लिए</strong>: पहला नाम और/या अंतिम नाम उपयोग करें। आंशिक नाम मिलान समर्थित है।

      <ul class="custom-bullets">
        <li>
          उदाहरण: "John Smith" John Smith नाम के लोगों को ढूँढेगा। सुनिश्चित करें कि स्पेस को URL encode किया गया हो।
        </li>

        <li>
          "Joh" या "Smi" जैसे आंशिक मिलान भी परिणाम लौटाएँगे।
        </li>
      </ul>

      <ul class="custom-bullets">
        <li>
          याद रखें: केवल आपके LinkedIn फ़ॉलोअर्स को ही ढूँढा जा सकता है और खोज करने के लिए Ayrshare linked account एक LinkedIn कंपनी पेज होना चाहिए
        </li>
      </ul>
    </li>
  </ul>
</ParamField>

<ParamField query="personOnly" type="boolean" default={false}>
  खोज scope को नियंत्रित करता है: - `false` (डिफ़ॉल्ट): पहले कंपनियों को खोजता है, फिर लोगों को यदि कोई
  कंपनी नहीं मिलती। - `true`: केवल लोगों को खोजता है (कंपनी खोज को पूरी तरह छोड़ देता है)।
</ParamField>

## उदाहरण

<RequestExample>
  ```bash Company Search theme={"system"}
  curl \
    -H "Authorization: Bearer API_KEY" \
    -X GET "https://api.ayrshare.com/api/brand/search/linkedin?search=ayrshare"
  ```

  ```bash Person Search Only theme={"system"}
  curl \
    -H "Authorization: Bearer API_KEY" \
    -X GET "https://api.ayrshare.com/api/brand/search/linkedin?search=John%20Smith&personOnly=true"
  ```

  ```javascript JavaScript theme={"system"}
  const API_KEY = "API_KEY";

  // Search for company or person
  fetch("https://api.ayrshare.com/api/brand/search/linkedin?search=ayrshare", {
    method: "GET",
    headers: {
      Authorization: `Bearer ${API_KEY}`
    }
  })
    .then((res) => res.json())
    .then((json) => console.log(json))
    .catch(console.error);

  // Search for person only
  fetch("https://api.ayrshare.com/api/brand/search/linkedin?search=John%20Smith&personOnly=true", {
    method: "GET",
    headers: {
      Authorization: `Bearer ${API_KEY}`
    }
  })
    .then((res) => res.json())
    .then((json) => console.log(json))
    .catch(console.error);
  ```

  ```python Python theme={"system"}
  import requests

  headers = {'Authorization': 'Bearer API_KEY'}

  # Search for company or person
  r = requests.get('https://api.ayrshare.com/api/brand/search/linkedin?search=ayrshare', headers=headers)
  print(r.json())

  # Search for person only
  r = requests.get('https://api.ayrshare.com/api/brand/search/linkedin?search=john&personOnly=true', headers=headers)
  print(r.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Company Search Result theme={"system"}
  {
    "linkedin": [
      {
        "vanityName": "ayrshare",
        "website": "https://www.ayrshare.com",
        "groups": [],
        "description": "Ayrshare's APIs provide the core infrastructure for social media posting, management, and analytics.\n\nThe Ayrshare API takes care of the social media infrastructure so you don't have to. Your team can focus on building your product instead of stitching together and maintaining multiple social media platforms.\n\nPost to Facebook, Twitter, Instagram, LinkedIn, Reddit, Telegram, TikTok, Google My Business, and YouTube.\n",
        "defaultLocale": {
          "country": "US",
          "language": "en"
        },
        "organizationType": "PARTNERSHIP",
        "alternativeNames": [],
        "specialties": [
          "social media",
          "api",
          "saas",
          "social networks",
          "tiktok",
          "facebook",
          "instagram"
        ],
        "staffCountRange": "SIZE_10_TO_100",
        "name": "Ayrshare",
        "primaryOrganizationType": "NONE",
        "locations": [
          {
            "description": {
              "localized": {
                "en_US": "Headquarters"
              },
              "preferredLocale": {
                "country": "US",
                "language": "en"
              }
            },
            "locationType": "HEADQUARTERS",
            "address": {
              "geographicArea": "New York",
              "country": "US",
              "city": "New York",
              "line1": "142 W 57th St",
              "postalCode": "10019"
            },
            "localizedDescription": "Headquarters",
            "streetAddressFieldState": "UNSET_OPT_OUT",
            "geoLocation": "urn:li:geo:103963738"
          }
        ],
        "id": 66755333
      }
    ]
  }
  ```

  ```json Person Search Result theme={"system"}
  {
    "linkedin": [
      {
        "lastName": "Smith",
        "firstName": "John",
        "headline": "CTO at Ayrshare",
        "id": "urn:li:person:WBwF1C23L"
      }
    ]
  }
  ```

  ```json 400: Search query too short theme={"system"}
  {
    "linkedin": {
      "action": "request",
      "status": "error",
      "code": 101,
      "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
      "details": "The search must be a string between 3 and 100 characters."
    }
  }
  ```

  ```json 404: No results found theme={"system"}
  {
    "linkedin": []
  }
  ```
</ResponseExample>
