# X API: Get post

> Gets a public X (Twitter) post from its link: author, full text, posting time, likes, reposts, replies, quotes, views, language, media and the quoted post. Deleted, protected and unavailable posts cannot be returned.

Unofficial. Not affiliated with or endorsed by X.

- Page: https://fous.com/methods/x.com/get-post
- Method: `x.com/get_post`, version 1
- Website: x.com
- Returns: author username and display name, full text, posted at, likes, reposts, replies, quotes, views, language, media, quoted post, post link and ID
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `post` | string | yes | `"https://x.com/NASAJPL/status/1950583566947213444"` | Link to the public X post, for example https://x.com/NASA/status/2041915225776009742. |

## Output

From a run on Oct 31, 2026. Its input:

```json
{
  "post": "https://x.com/NASAJPL/status/1950583566947213444"
}
```

Its output:

```json
{
  "likes": 567,
  "media": [
    {
      "type": "photo",
      "image_or_thumbnail_link": "https://pbs.twimg.com/media/GxHdAf0bgAAPO76.jpg"
    },
    {
      "type": "video",
      "image_or_thumbnail_link": "https://pbs.twimg.com/amplify_video_thumb/1950582192369004544/img/t8Ln3nL6kcIRjFWp.jpg"
    },
    {
      "type": "photo",
      "image_or_thumbnail_link": "https://pbs.twimg.com/media/GxHdZRdbsAAqxXa.jpg"
    }
  ],
  "views": 164367,
  "quotes": 11,
  "post_id": "1950583566947213444",
  "replies": 41,
  "reposts": 110,
  "language": "English",
  "full_text": "Launch success! NISAR is in orbit and communicating with @NASA and @ISRO teams after launching from India this morning 🚀\n\nThe mission will study Earth’s land and ice surfaces, providing critical insight into how our planet changes over time. https://t.co/m1uEXR5QqR https://t.co/L0EEo3Lx19",
  "post_link": "https://x.com/NASAJPL/status/1950583566947213444",
  "posted_at": "2025-07-30T15:45:37Z",
  "quoted_post": null,
  "author_username": "NASAJPL",
  "author_display_name": "NASA JPL"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"x.com/get_post","input":{"post":"https://x.com/NASAJPL/status/1950583566947213444"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- How many likes and reposts does this tweet have right now? https://x.com/elonmusk/status/1893456789012345678
- Pull the full text, posting time and view count for https://twitter.com/SpaceX/status/1887654321098765432
- On X, what does the post at https://x.com/nytimes/status/1901234567890123456 say, and does it quote another post?
- I need the author's display name, language and any attached images or video from this link: https://x.com/BBCBreaking/status/1876543210987654321
- Grab the reply count, quote count and timestamp of this Twitter post so I can log it in my spreadsheet: https://x.com/OpenAI/status/1912345678901234567

## Input schema

```json
{
  "type": "object",
  "required": [
    "post"
  ],
  "properties": {
    "post": {
      "type": "string",
      "description": "Link to the public X post, for example https://x.com/NASA/status/2041915225776009742."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "author_username",
    "author_display_name",
    "full_text",
    "posted_at",
    "likes",
    "reposts",
    "replies",
    "quotes",
    "views",
    "language",
    "media",
    "quoted_post",
    "post_link",
    "post_id"
  ],
  "properties": {
    "likes": {
      "type": "integer"
    },
    "media": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "type",
          "image_or_thumbnail_link"
        ],
        "properties": {
          "type": {
            "enum": [
              "photo",
              "video",
              "gif"
            ],
            "type": "string"
          },
          "image_or_thumbnail_link": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "views": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Null if the public page does not show views."
    },
    "quotes": {
      "type": "integer"
    },
    "post_id": {
      "type": "string",
      "x-fous-developer": true
    },
    "replies": {
      "type": "integer"
    },
    "reposts": {
      "type": "integer"
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "full_text": {
      "type": "string"
    },
    "post_link": {
      "type": "string"
    },
    "posted_at": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time in UTC."
    },
    "quoted_post": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "author_username",
        "author_display_name",
        "text"
      ],
      "properties": {
        "text": {
          "type": "string"
        },
        "author_username": {
          "type": "string"
        },
        "author_display_name": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "author_username": {
      "type": "string",
      "description": "Author username without the @ sign."
    },
    "author_display_name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

## See more

- [X API: Get profile](https://fous.com/methods/x.com/get-profile.md): Gets the public X profile for a username or profile link, including counts, verification, images and account details. Does not include posts or a timeline.
- [Threads API: Get post](https://fous.com/methods/threads.com/get-post.md): Gets a public Threads post with its engagement counts and the replies visible without logging in.
- [Threads API: List recent posts](https://fous.com/methods/threads.com/list-recent-posts.md): Lists an account's latest public Threads posts, newest first, with text, engagement counts, thumbnails and links. Only posts shown without logging in are returned.
- [Bluesky API: List recent posts](https://fous.com/methods/bsky.app/list-recent-posts.md): Lists an account's latest public Bluesky posts, newest first. Replies and reposts are left out unless requested; a repost's time is when the account reposted it.
- [Mastodon API: List recent posts](https://fous.com/methods/mastodon.social/list-recent-posts.md): Lists a Mastodon account's latest public posts, newest first. Replies and boosts are optional. Private and unlisted posts are left out.
- [LinkedIn API: List company posts](https://fous.com/methods/linkedin.com/list-company-posts.md): Lists a company's recent public LinkedIn posts in page order, from its name or LinkedIn company page link: post text, approximate date, reactions, comments, image and link. Only updates shown on the signed-out company page are available.
- [Instagram API: List recent posts](https://fous.com/methods/instagram.com/list-recent-posts.md): Lists the latest publicly embeddable posts and reels from an Instagram account, newest first. Without login Instagram may show fewer posts than requested. View counts that are not available are null.
- [TikTok API: Get video](https://fous.com/methods/tiktok.com/get-video.md): Gets details and engagement statistics for one public TikTok video from its link, including vm.tiktok.com short links: creator, caption, hashtags, posting time, views, likes, comments, shares, length and sound.
- [All X methods](https://fous.com/methods/x.com.md)
