Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

X (Twitter) Tweet Quotes

API 文档
https://api.sandbase.ai/v1/api/twitter/tweet-quotes

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

价格
起价 $0.003美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 4 个可选

Playground

输入
The tweet ID to get quotes for.
Cursor for pagination.
Whether to include replies in the results. Default is True. Provider reference (supplier schema): `{"default":true,"type":"boolean"}`.
On or after a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. 范围:0 到 9223372036854776000。
Before a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. 范围:0 到 9223372036854776000。
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

X (Twitter) Tweet Quotes API

Returns quote tweets of a post, newest first. Each item has the quoting tweet's text, engagement counts, author and a copy of the quoted tweet. It needs a tweetId.

Use cases

  • Find who is quoting a viral post and read what they say about it.
  • Track reaction to a brand announcement by sorting quote tweets by likeCount or viewCount.
  • Pull quotes posted inside a set time window using sinceTime and untilTime.
  • Collect quoting authors for a tweet to review who amplifies it.

Request

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"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
tweetIdstringYesThe tweet ID to get quotes for.
cursorstringNoCursor for pagination.
includeRepliesbooleanNoWhether to include replies in the results. Default is True. Provider reference (supplier schema): {"default":true,"type":"boolean"}.
sinceTimeintegerNoOn or after a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}.
untilTimeintegerNoBefore a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "has_next_page": true,
  "msg": "success",
  "next_cursor": "DAADDAABCgABHV-2mSOaQZoKAAIdWnCOlBtBRgAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdYvRLOMAn…",
  "status": "success",
  "tweets": [
    {
      "article": null,
      "author": {
        "affiliatesHighlightedLabel": {},
        "automatedBy": null,
        "canDm": true,
        "canMediaTag": true,
        "coverPicture": "https://pbs.twimg.com/profile_banners/374202112/1747863953",
        "createdAt": "Thu Sep 15 21:57:34 +0000 2011",
        "description": "",
        "entities": {
          "description": {
            "urls": []
          },
          "url": {}
        }
      },
      "bookmarkCount": 0,
      "card": null,
      "communityInfo": null,
      "conversationId": "2116611118730985882",
      "createdAt": "Sat Oct 31 19:19:50 +0000 2026",
      "displayTextRange": [
        0
      ],
      "entities": {},
      "extendedEntities": {},
      "id": "2116611118730985882",
      "inReplyToId": null
    }
  ]
}

Response fields

FieldMeaning
tweets[].idID of the quote tweet, as a string.
tweets[].textText of the quote tweet. Long text may be cut in the sample.
tweets[].url / tweets[].twitterUrlLinks to the quote tweet on x.com and twitter.com.
tweets[].createdAtWhen the quote tweet was posted, in a format like Sat Oct 31 19:19:50 +0000 2026.
tweets[].likeCount / tweets[].replyCount / tweets[].retweetCount / tweets[].quoteCount / tweets[].bookmarkCount / tweets[].viewCountEngagement counts for the quote tweet.
tweets[].authorProfile of the account that wrote the quote, including createdAt, coverPicture, canDm and description.
tweets[].quoted_tweetThe original tweet that was quoted, with its own author, bookmarkCount, conversationId and createdAt.
tweets[].isReply / tweets[].inReplyToIdShow whether the quote tweet is also a reply, and which tweet it replies to.
tweets[].entities.user_mentions[]Accounts mentioned in the quote tweet, with screen_name, name and id_str.
has_next_page / next_cursorShow whether more results exist and give the cursor value for the next page.

Notes

  • Take tweetId from the number at the end of a tweet URL, for example 1585341984679469056 in https://x.com/<user>/status/1585341984679469056.
  • To get the next page, pass the next_cursor value as cursor while has_next_page is true.
  • sinceTime and untilTime are unix timestamps in seconds. createdAt in the response uses a text date format instead.
  • To read the original post itself, call Twitter Tweet Detail or X (Twitter) Twitter Tweet.

Pricing

Billed at the actual cost of each call, about $0.003 for the request above. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
X (Twitter)每次调用从 $0.003 起JSON
X (Twitter)每次调用从 $0.00054 起JSON
Twitter每次调用从 $0.0006 起异步 JSON
X (Twitter)每次调用从 $0.0001 起JSON
X (Twitter)每次调用从 $0.0036 起JSON
X (Twitter)每次调用从 $0.00045 起JSON

指南:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

问题

常见问题

如何使用 X (Twitter) Tweet Quotes API?

向 https://api.sandbase.ai/v1/api/twitter/tweet-quotes 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

X (Twitter) Tweet Quotes API 的价格是多少?

起价每次调用 $0.003,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

X (Twitter) Tweet Quotes API 接受哪些参数?

必填:tweetId (string)。 可选:cursor (string), includeReplies (boolean), sinceTime (integer) 和 untilTime (integer)。 Parameters 表和本页的 Playground 列出了每个字段。

X (Twitter) Tweet Quotes API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 X (Twitter) 开发者账户或 API key 吗?

不需要。X (Twitter) Tweet Quotes 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 X (Twitter) API 访问权限。