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

# Retweets of Me

> अपने उन पोस्ट्स को प्राप्त करें जिन्हें रीट्वीट किया गया है

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <span>
          {children}
        </span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

यह मार्गदर्शिका आपको उन आपकी पोस्ट्स को प्राप्त करने की प्रक्रिया बताती है जिन्हें दूसरों द्वारा रीट्वीट किया गया है।

<Note>
  **पूर्वापेक्षाएँ**

  शुरू करने से पहले, आपको इनकी आवश्यकता होगी:

  * स्वीकृत ऐप के साथ एक [डेवलपर खाता](https://developer.x.com/en/portal/petition/essential/basic-info)
  * यूज़र एक्सेस टोकन (OAuth 1.0a या OAuth 2.0 PKCE)
</Note>

***

<div id="why-use-retweets-of-me">
  ## Retweets of Me का उपयोग क्यों करें?
</div>

Retweets of Me endpoint इन तरीकों से आपकी मदद करता है:

* **सहभागिता ट्रैक करें** — देखें कि आपकी कौन-सी पोस्ट्स शेयर की जा रही हैं
* **प्रभाव समझें** — जानें कि कौन-सी सामग्री आपके दर्शकों के साथ सबसे ज़्यादा जुड़ती है
* **रणनीति तय करें** — शेयरिंग पैटर्न के आधार पर अपनी सामग्री रणनीति समायोजित करें

***

<div id="get-your-retweeted-posts">
  ## अपनी वे पोस्ट्स प्राप्त करें जिन्हें रीट्वीट किया गया है
</div>

<CodeGroup dropdown>
  ```bash cURL theme={null}
  curl "https://api.x.com/2/users/reposts_of_me?\
  tweet.fields=created_at,public_metrics&\
  max_results=10" \
    -H "Authorization: Bearer $USER_ACCESS_TOKEN"
  ```

  ```python Python SDK theme={null}
  from xdk import Client

  client = Client(bearer_token="YOUR_USER_ACCESS_TOKEN")

  # अपनी वे पोस्ट्स प्राप्त करें जिन्हें रीट्वीट किया गया है
  for page in client.posts.get_reposts_of_me(
      tweet_fields=["created_at", "public_metrics"],
      max_results=10
  ):
      for post in page.data:
          print(f"{post.text[:50]}... - Retweets: {post.public_metrics.retweet_count}")
  ```

  ```javascript JavaScript SDK theme={null}
  import { Client } from "@xdevplatform/xdk";

  const client = new Client({ accessToken: "YOUR_USER_ACCESS_TOKEN" });

  // अपनी वे पोस्ट्स प्राप्त करें जिन्हें रीट्वीट किया गया है
  const paginator = client.posts.getRepostsOfMe({
    tweetFields: ["created_at", "public_metrics"],
    maxResults: 10,
  });

  for await (const page of paginator) {
    page.data?.forEach((post) => {
      console.log(`${post.text?.slice(0, 50)}... - Retweets: ${post.public_metrics?.retweet_count}`);
    });
  }
  ```
</CodeGroup>

***

<div id="response">
  ## रिस्पॉन्स
</div>

```json theme={null}
{
  "data": [
    {
      "id": "1848781937210802364",
      "text": "ever wanted to discover trends.. before they're trends?...",
      "created_at": "2024-01-15T10:30:00.000Z",
      "public_metrics": {
        "retweet_count": 42,
        "reply_count": 5,
        "like_count": 156,
        "quote_count": 8
      },
      "edit_history_tweet_ids": ["1848781937210802364"]
    },
    {
      "id": "1847990559081648620",
      "text": "posting is just journaling with an audience",
      "created_at": "2024-01-14T15:20:00.000Z",
      "public_metrics": {
        "retweet_count": 28,
        "reply_count": 12,
        "like_count": 89,
        "quote_count": 3
      },
      "edit_history_tweet_ids": ["1847990559081648620"]
    }
  ],
  "meta": {
    "result_count": 2,
    "next_token": "7140dibdnow9c7btw481s8m561gat797rboud5r80xvzm"
  }
}
```

***

<div id="filter-by-time-range">
  ## समयावधि के अनुसार फ़िल्टर करें
</div>

किसी खास अवधि के रीट्वीट किए गए पोस्ट्स प्राप्त करें:

<CodeGroup dropdown>
  ```bash cURL theme={null}
  curl "https://api.x.com/2/users/reposts_of_me?\
  start_time=2024-01-01T00%3A00%3A00Z&\
  end_time=2024-01-31T23%3A59%3A59Z&\
  tweet.fields=created_at,public_metrics" \
    -H "Authorization: Bearer $USER_ACCESS_TOKEN"
  ```

  ```python Python SDK theme={null}
  from xdk import Client

  client = Client(bearer_token="YOUR_USER_ACCESS_TOKEN")

  # किसी समयावधि के रीट्वीट किए गए पोस्ट्स प्राप्त करें
  for page in client.posts.get_reposts_of_me(
      start_time="2024-01-01T00:00:00Z",
      end_time="2024-01-31T23:59:59Z",
      tweet_fields=["created_at", "public_metrics"]
  ):
      for post in page.data:
          print(f"{post.created_at}: {post.text[:50]}...")
  ```

  ```javascript JavaScript SDK theme={null}
  import { Client } from "@xdevplatform/xdk";

  const client = new Client({ accessToken: "YOUR_USER_ACCESS_TOKEN" });

  // किसी समयावधि के रीट्वीट किए गए पोस्ट्स प्राप्त करें
  const paginator = client.posts.getRepostsOfMe({
    startTime: "2024-01-01T00:00:00Z",
    endTime: "2024-01-31T23:59:59Z",
    tweetFields: ["created_at", "public_metrics"],
  });

  for await (const page of paginator) {
    page.data?.forEach((post) => {
      console.log(`${post.created_at}: ${post.text?.slice(0, 50)}...`);
    });
  }
  ```
</CodeGroup>

***

<div id="common-parameters">
  ## सामान्य पैरामीटर
</div>

| पैरामीटर           | विवरण                                       | डिफ़ॉल्ट     |
| :----------------- | :------------------------------------------ | :----------- |
| `max_results`      | प्रति पृष्ठ परिणाम (1-100)                  | 10           |
| `start_time`       | सबसे पुराने पोस्ट का टाइमस्टैम्प (ISO 8601) | —            |
| `end_time`         | सबसे नए पोस्ट का टाइमस्टैम्प (ISO 8601)     | —            |
| `pagination_token` | अगले पेज के लिए टोकन                        | —            |
| `tweet.fields`     | अतिरिक्त पोस्ट फ़ील्ड्स                     | `id`, `text` |

***

<div id="next-steps">
  ## अगले चरण
</div>

<CardGroup cols={2}>
  <Card title="रीट्वीट लुकअप" icon="retweet" href="/hi/x-api/posts/retweets/quickstart/retweets-lookup">
    देखें कि किसी पोस्ट को किसने Retweet किया
  </Card>

  <Card title="रीट्वीट प्रबंधित करें" icon="share" href="/hi/x-api/posts/retweets/quickstart/manage-retweets">
    Retweet करें और रीट्वीट वापस लें
  </Card>

  <Card title="API संदर्भ" icon="code" href="/hi/x-api/posts/reposts-of-me">
    एंडपॉइंट का पूरा दस्तावेज़ीकरण
  </Card>
</CardGroup>
