tweetIdstring必須
The tweet ID to get quotes for.
https://api.sandbase.ai/v1/api/twitter/tweet-quotesQuote tweets of a post by tweet ID, newest first, with optional time range and cursor pagination.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
likeCount or viewCount.sinceTime and untilTime.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.
| Name | Type | Required | Description |
|---|---|---|---|
tweetId | string | Yes | The tweet ID to get quotes for. |
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"}. |
untilTime | integer | No | Before a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}. |
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
}
]
}
| Field | Meaning |
|---|---|
tweets[].id | ID of the quote tweet, as a string. |
tweets[].text | Text of the quote tweet. Long text may be cut in the sample. |
tweets[].url / tweets[].twitterUrl | Links to the quote tweet on x.com and twitter.com. |
tweets[].createdAt | When 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[].viewCount | Engagement counts for the quote tweet. |
tweets[].author | Profile of the account that wrote the quote, including createdAt, coverPicture, canDm and description. |
tweets[].quoted_tweet | The original tweet that was quoted, with its own author, bookmarkCount, conversationId and createdAt. |
tweets[].isReply / tweets[].inReplyToId | Show 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_cursor | Show whether more results exist and give the cursor value for the next page. |
tweetId from the number at the end of a tweet URL, for example 1585341984679469056 in https://x.com/<user>/status/1585341984679469056.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.Billed at the actual cost of each call, about $0.003 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
tweetIdstring必須The tweet ID to get quotes for.
cursorstringCursor for pagination.
includeRepliesbooleanWhether to include replies in the results. Default is True. Provider reference (supplier schema): `{"default":true,"type":"boolean"}`.
sinceTimeintegerOn or after a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`.
untilTimeintegerBefore a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
X (Twitter) Tweet Quotesこの API X (Twitter) | 1回あたり $0.003 から | JSON |
X (Twitter) | 1回あたり $0.00054 から | JSON |
Twitter | 1回あたり $0.0006 から | 非同期 JSON |
X (Twitter) | 1回あたり $0.0001 から | JSON |
X (Twitter) | 1回あたり $0.0036 から | JSON |
X (Twitter) | 1回あたり $0.00045 から | JSON |
ガイド:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/twitter/tweet-quotes に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.003 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: tweetId (string)。 任意: cursor (string), includeReplies (boolean), sinceTime (integer) と untilTime (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。X (Twitter) Tweet Quotes は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。X (Twitter) の API アクセスを別途申請する必要はありません。