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

# Threads API

> Threads API का उपयोग करके पोस्ट करने के विकल्प

<Info>
  Threads publishing Meta के server-side crawler के माध्यम से आपके URL से media प्राप्त करता है।
  यदि आप Ayrshare error code 379 देखते हैं — विशेष रूप से उसी publish में Instagram error 440 या 138 के साथ —
  तो [Meta Media Crawler Blocked](/help-center/technical-support/meta_media_crawler_blocked) देखें।
</Info>

## Threads पर पोस्ट करना

Threads API का उपयोग करके एक link और image के साथ एक basic post के लिए JSON:

```json Threads Post theme={"system"}
{
  "post": "The best Threads post ever #best #awesome https://www.threads.net", // empty string is allowed
  "mediaUrls": ["https://img.ayrshare.com/012/gb.jpg"],
  "platforms": ["threads"]
}
```

Threads API की निम्नलिखित आवश्यकताएँ और प्रतिबंध हैं:

<ul class="custom-bullets">
  <li>
    Threads पोस्ट में स्वचालित रूप से link का preview दिखाएगा जब तक कि एक image या video
    शामिल न हो। ऊपर दिए गए उदाहरण में image दिखाई देगी। Image हटाने से link
    preview दिखाई देगा।
  </li>

  <li>Threads प्रोफ़ाइल 24 घंटे की चलती अवधि के भीतर 250 API-प्रकाशित पोस्ट्स तक सीमित हैं।</li>
  <li>Threads प्रति पोस्ट केवल 1 hashtag की अनुमति देता है।</li>
  <li>@mention Threads उपयोगकर्ताओं को एक notification प्राप्त होगा।</li>
  <li>अधिकतम 500 पोस्ट characters।</li>

  <li>
    Multi-image/video पोस्ट्स समर्थित हैं और एक carousel के रूप में भेजे जाते हैं। आप 20 वीडियो और
    छवियाँ तक भेज सकते हैं।
  </li>

  <li>
    Threads API के माध्यम से deletes का समर्थन नहीं करता। Deletes Threads ऐप का उपयोग करके मैन्युअल रूप से होनी चाहिए।
  </li>

  <li>
    यदि आपका वीडियो mp4 जैसे ज्ञात video extension में समाप्त नहीं होता है, तो कृपया `isVideo`
    parameter का उपयोग करें। विवरण के लिए [/post endpoint](/apis/post/post) देखें।
  </li>

  <li>
    Threads पोस्ट text के बिना media भेजने का भी समर्थन करता है। यदि आप पोस्ट text शामिल नहीं करना चाहते हैं,
    तो एक खाली String `post: ""` भेजें।
  </li>

  <li>
    अधिक जानकारी के लिए [Threads Media Guidelines](/media-guidelines/threads) और [Threads
    Authorization](/dashboard/connect-social-accounts/threads) देखें।
  </li>
</ul>

## Threads Options

आप `threadsOptions` parameter का उपयोग करके पोस्ट के लिए अतिरिक्त options सेट कर सकते हैं।

```json Threads Options theme={"system"}
{
  "threadsOptions": {
    "allowCountries": ["US", "CA"],
    "thread": true,
    "threadNumber": true,
    "mediaUrls": ["https://img.ayrshare.com/012/gb.jpg"] // used when sending as a thread of threads
  }
}
```

Threads options वैकल्पिक fields हैं जिनका उपयोग पोस्ट को नियंत्रित करने के लिए किया जा सकता है।

<ParamField body="allowCountries" type="array of strings">
  Country codes का उपयोग करके पोस्ट को विशिष्ट देशों तक सीमित करें। [Country codes](/iso-codes/country) का उपयोग करें।

  केवल तभी उपलब्ध है जब Meta ने आपके account के लिए geo restrictions सक्षम की हैं।

  अधिक जानकारी के लिए [Threads Geo Restrictions](/apis/post/social-networks/threads#geo-restrictions) देखें।
</ParamField>

<ParamField body="thread" type="boolean" default={false}>
  वैकल्पिक numbering और media के साथ लंबे पोस्ट्स को एक जुड़े thread series में तोड़ें।

  अधिक जानकारी के लिए [Thread](/apis/post/social-networks/threads#thread) देखें।
</ParamField>

<ParamField body="threadNumber" type="boolean" default={false}>
  प्रत्येक thread के अंत में 1/n के प्रारूप में स्वचालित रूप से numbers जोड़ें।

  `thread: true` आवश्यक है।
</ParamField>

<ParamField body="mediaUrls" type="array of strings">
  Media objects को threads के thread में जोड़ें। एक media object क्रम में प्रत्येक thread में जोड़ा जाएगा।

  किसी विशिष्ट thread के लिए media छोड़ने के लिए `null` का उपयोग करें। प्रति thread कई media के लिए कई URLs वाले objects का उपयोग करें।

  अधिक जानकारी के लिए [Thread Media](/apis/post/social-networks/threads#thread-media) देखें।
</ParamField>

## Threads पोस्ट में line breaks या rich text जोड़ना

Threads line breaks को एक विशेष [new line character](/apis/post/post#line-breaks) के साथ पोस्ट में जोड़ा जा सकता है।

Rich text, जैसे bold या italic अक्षर, कुछ [html elements](/apis/post/overview#rich-text-posts) के साथ एक Threads पोस्ट में जोड़ा जा सकता है।

## Images और Videos का Carousel

आप Threads पर कई images या videos को एक carousel के रूप में पोस्ट कर सकते हैं; एक carousel में संयुक्त कुल 20 images या videos तक का उपयोग किया जा सकता है। बस अपनी अतिरिक्त छवियों या वीडियो को `mediaUrls` array में जोड़ें और carousel स्वचालित रूप से बन जाएगा।

```json theme={"system"}
"mediaUrls": ["https://url.com/image.jpg", "https://url.com/video.mp4" ...];  // Max 20 images or videos
```

Video URLs को mp4 जैसे ज्ञात extension में समाप्त होना चाहिए।

## Character Limits

अधिक जानकारी के लिए कृपया [Threads Character Limits](/help-center/technical-support/character_limits#threads-character-limits) देखें।

## Geo Restrictions

आप `allowCountries` array का उपयोग करके किसी पोस्ट को किसी विशिष्ट देश या देशों तक सीमित कर सकते हैं।

```json theme={"system"}
{
  "threadsOptions": {
    "allowCountries": ["US", "CA"]
  }
}
```

<ul class="custom-bullets">
  <li>
    `allowCountries`: अनुमति देने के लिए country codes की एक array। [Country codes](/iso-codes/country) देखें।
  </li>
</ul>

<Warning>
  Threads पर Geo restrictions (geo-gating) केवल तभी उपलब्ध हैं जब Meta ने आपके account के लिए यह फ़ीचर सक्षम किया है।

  Meta तय करता है कि कौन से Threads accounts geo restrictions के लिए पात्र हैं, जैसे कि account verification, follower count, या content creator status जैसे कारकों के आधार पर।
  यदि आपका account पात्र है, तो आप नया Threads पोस्ट बनाते समय post composer में भौगोलिक settings (globe icon) देखेंगे।

  आप [/user](/apis/user/profile-details) endpoint में `isEligibleForGeoRestrictions` property की जाँच करके यह जाँच सकते हैं कि क्या कोई user profile Threads geo restrictions के लिए पात्र है।
</Warning>

## Threads Mentions

पोस्ट text में @handle जोड़कर किसी अन्य Threads handle का उल्लेख करें। उदाहरण के लिए:

```json theme={"system"}
{
  "post": "The best social media API @Ayrshare ever!",
  "mediaUrls": ["https://images.com"],
  "platforms": ["threads"]
}
```

<Warning>
  @mentioned उपयोगकर्ता को mention की सूचना दी जाएगी। कृपया mentions पर [महत्वपूर्ण
  नियमों](/testing/post-verification#mentions) की समीक्षा करें।
</Warning>

यदि quota पहुँच गया है, तो एक error संदेश लौटाया जाएगा।

## Thread

एक Threads thread, जिसे threadstorm भी कहा जाता है, Threads पर पोस्ट्स की एक जुड़ी हुई श्रृंखला है जो आपको एक ही पोस्ट की character limit से परे लंबे विचार साझा करने की अनुमति देती है, जो एक साथ देखने पर एक निरंतर narrative के रूप में दिखाई देती है।

### एक Thread पोस्ट करना

Threads thread को API के माध्यम से पोस्ट किया जा सकता है। एक thread एक पोस्ट है जो Threads में एक साथ जुड़े reply पोस्ट्स के set में टूट जाता है। आप या तो स्वचालित रूप से पोस्ट को तोड़ सकते हैं या पोस्ट text में [thread breaks](/apis/post/social-networks/threads#thread-breaks) निर्दिष्ट कर सकते हैं।

```json Threads Thread theme={"system"}
{
  "threadsOptions": {
    "thread": true,        // required for threadstorm
    "threadNumber": true,  // optional to add numbers to each thread
    "mediaUrls": ["https://site.com/image1.png", "https://site.com/image2.png", ...]  // optional one media object is added to a thread in order
  }
}
```

<ul class="custom-bullets">
  <li>
    `thread: true` line breaks के आधार पर पोस्ट text को threads में स्वचालित रूप से तोड़ने के लिए।
  </li>

  <li>
    `threadNumber: true` 1/n के प्रारूप में threads के अंत में स्वचालित रूप से numbers जोड़ने के लिए।
    उदाहरण के लिए, 5 में से 2nd thread में जुड़ेगा: 2/5
  </li>

  <li>
    `mediaUrls: [array of urls]` क्रम में प्रत्येक media object, एक image या video, को thread में जोड़ने के लिए।
    केवल एक media object क्रम में एक thread में जोड़ा जाएगा।
  </li>
</ul>

#### Thread Media

##### Media छोड़ें

Array में `null` का उपयोग करके एक thread के लिए media छोड़ें। उदाहरण के लिए:

`["https://site.com/image1.png", null, "https://site.com/image2.png"]`

यह image1 को पहले पोस्ट पर, दूसरे पोस्ट पर कोई image नहीं, और image2 को तीसरे पोस्ट पर रखेगा।

##### कई Media

`mediaUrls` array में media URLs के साथ एक object `{}` जोड़कर एक thread के भीतर एक ही पोस्ट में कई media objects जोड़े जा सकते हैं। किसी भी अद्वितीय object keys का उपयोग किया जा सकता है। उदाहरण के लिए:

```json Threads Thread with Multiple Media URLs theme={"system"}
{
  "threadsOptions": {
    "thread": true,
    "threadNumber": true,
    "mediaUrls": [
      "https://img.ayrshare.com/random/photo-1.jpg",
      {
        "1": "https://img.ayrshare.com/random/photo-2.jpg",
        "2": "https://img.ayrshare.com/random/photo-3.jpg"
      },
      "https://img.ayrshare.com/random/photo-4.jpg"
    ]
  }
}
```

इस उदाहरण में, पहले पोस्ट में photo-1.jpg होगा, दूसरे पोस्ट में photo-2.jpg और photo-3.jpg, और तीसरे पोस्ट में photo-4.jpg।

#### Thread Breaks

Ayrshare Threads के लिए स्वचालित रूप से पोस्ट text को उपयुक्त लंबाई के पोस्ट्स (> 500 characters) में तोड़ देता है। Threads बनाते समय, हम जब संभव हो, एक पोस्ट में पूर्ण वाक्यों को रखने को प्राथमिकता देते हैं। यदि कोई वाक्य फिट नहीं होगा, तो हम वाक्यों के बीच विभाजित करते हैं। बहुत लंबे वाक्यों के लिए, हम शब्दों के बीच विभाजित करते हैं। दुर्लभ मामलों में जहाँ कोई शब्द बहुत लंबा है, हम स्वयं शब्द को विभाजित करते हैं।

आप एक अद्वितीय thread बनाया जाना चाहिए यह दर्शाने के लिए पोस्ट text में `\n\n` के साथ मैन्युअल रूप से पैराग्राफ भी जोड़ सकते हैं। यदि आपके पोस्ट text में `\n\n` है, तो हम पोस्ट को स्वचालित रूप से threads में नहीं तोड़ेंगे।

उदाहरण के लिए:

```json Example Threads Thread theme={"system"}
{
  "post": "This is post 1\n\nThis is post 2.",
  "platforms": ["threads"],
  "threadsOptions": {
    "thread": true
  }
}
```

thread में दो पोस्ट्स का परिणाम देगा।

यदि आप पैराग्राफ जोड़ना चाहते हैं, लेकिन पोस्ट्स में तोड़ना नहीं चाहते हैं, तो `\u2063\n\u2063\n` का उपयोग करें।

```json Threads Thread with Paragraphs theme={"system"}
{
  "post": "This is paragraph 1\u2063\n\u2063\nThis is paragraph 2.",
  "platforms": ["threads"],
  "threadsOptions": {
    "thread": true
  }
}
```

यह दो पैराग्राफ के साथ एक पोस्ट में परिणाम देगा क्योंकि पोस्ट 500 characters से कम है।

### एक Thread हटाएँ

Threads API के माध्यम से deletes का समर्थन नहीं करता। Deletes Threads ऐप का उपयोग करके मैन्युअल रूप से होनी चाहिए।
