# X (Twitter) Tweet Quotes API

> Quote tweets of a post by tweet ID, newest first, with optional time range and cursor pagination.

Source: https://www.sandbase.ai/apis/twitter/tweet-quotes
API reference: https://www.sandbase.ai/apis/twitter/tweet-quotes/docs

## Facts

- Provider: X (Twitter)
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/twitter/tweet-quotes`
- Price: From $0.003 per call
- Capabilities: api, twitter, social media
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `tweetId` | string | yes |  |
| `cursor` | string | no |  |
| `includeReplies` | boolean | no |  |
| `sinceTime` | integer | no |  |
| `untilTime` | integer | no |  |

## FAQ

### How do I use the X (Twitter) Tweet Quotes API?

Send a POST request to https://api.sandbase.ai/v1/api/twitter/tweet-quotes 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 X (Twitter) Tweet Quotes API cost?

From $0.003 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the X (Twitter) Tweet Quotes API accept?

Required: tweetId (string). Optional: cursor (string), includeReplies (boolean), sinceTime (integer) and untilTime (integer). The Parameters table and the Playground on this page list every field.

### What does the X (Twitter) Tweet Quotes API return?

A JSON response returned in the same HTTP request (synchronous).

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

No. X (Twitter) Tweet Quotes 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 X (Twitter) API access separately.

## README

### X (Twitter) Tweet Quotes API

Quote tweets of a post by tweet ID, newest first, with optional time range and cursor pagination.

The result is returned in `outputs[0].data` as the official X (Twitter) API response, unchanged.

#### Request

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

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | No | Cursor for pagination. |
| `includeReplies` | boolean | No | Whether to include replies in the results. Default is True. Provider reference (supplier schema): `{"default":true,"type":"boolean"}`. |
| `sinceTime` | integer | No | On or after a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. |
| `tweetId` | string | No | The tweet ID to get quotes for. |
| `untilTime` | integer | No | Before a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. |

#### Pricing

Billed at the actual cost of each call, about $0.003 for a typical request; the cost grows with the number of rows returned. Searches with no results are billed at their actual cost. Failed calls are not charged.
