# Twitter Tweet Detail API

> Get a single tweet (X post) by ID: full text, author, media, and like, retweet, reply, quote, bookmark and view counts.

Source: https://www.sandbase.ai/model/twitter/web/tweet-detail
API reference: https://www.sandbase.ai/model/twitter/web/tweet-detail/docs

## Facts

- Provider: Twitter
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/twitter/web/tweet-detail`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, twitter
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/twitter/web/tweet-detail` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `tweet_id` | string | yes |  |

## FAQ

### How do I use the Twitter Tweet Detail API?

Send a POST request to https://api.sandbase.ai/v1/api/twitter/web/tweet-detail with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Twitter Tweet Detail API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Twitter Tweet Detail API accept?

Required: tweet_id (string). The Parameters table and the Playground on this page list every field.

### What does the Twitter Tweet Detail API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Twitter developer account or API key?

No. Twitter Tweet Detail runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Twitter API access separately.

## README

### Tweet Detail API

Pass a tweet ID and get the full post as JSON, including author details, media attachments and engagement metrics.

#### Use cases

- Track engagement on specific posts over time.
- Enrich tweet IDs from search results with full details.
- Archive posts referenced in reports.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/tweet-detail" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tweet_id": "1808168603721650364"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `tweet_id` | string | Yes | Tweet ID, can be obtained from the tweet link. |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "id": "1808168603721650364",
  "created_at": "Tue Jul 02 15:59:23 +0000 2024",
  "lang": "en",
  "likes": 282804,
  "retweets": 52252,
  "replies": 18666,
  "quotes": 3899,
  "bookmarks": 6568,
  "views": "53721665",
  "text": "<tweet text>",
  "author": {
    "screen_name": "<user>",
    "rest_id": "<user id>"
  },
  "media": [
    "…"
  ]
}
```

#### Notes

- The tweet ID is the number after `/status/` in the post URL.

#### Related APIs

- [Twitter (X) Search](/model/twitter/web/search-timeline): Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views).
- [Twitter (X) Trending Topics](/model/twitter/web/trending): Get trending topics on Twitter / X by country: trend names with their category context, for the United States, Japan, India, the UK and other markets.
- [Twitter (X) User Profile](/model/twitter/web/user-profile): Get a Twitter / X user profile by screen name or user ID: name, bio, follower and following counts, post and media counts, verification and creation date.
