Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

X (Twitter) Tweet Quotes

Tài liệu 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.

Giá
Từ $0.003USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 4 tùy chọn

Phòng thử nghiệm

Đầu vào
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"}`. Phạm vi: 0 đến 9223372036854776000.
Before a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. Phạm vi: 0 đến 9223372036854776000.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
X (Twitter)Từ $0.003 mỗi lần gọiJSON
X (Twitter)Từ $0.00054 mỗi lần gọiJSON
TwitterTừ $0.0006 mỗi lần gọiJSON bất đồng bộ
X (Twitter)Từ $0.0001 mỗi lần gọiJSON
X (Twitter)Từ $0.0036 mỗi lần gọiJSON
X (Twitter)Từ $0.00045 mỗi lần gọiJSON

Hướng dẫn:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API X (Twitter) Tweet Quotes?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/twitter/tweet-quotes với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API X (Twitter) Tweet Quotes có giá bao nhiêu?

Từ $0.003 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API X (Twitter) Tweet Quotes chấp nhận những tham số nào?

Bắt buộc: tweetId (string). Tùy chọn: cursor (string), includeReplies (boolean), sinceTime (integer) và untilTime (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API X (Twitter) Tweet Quotes trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của X (Twitter) không?

Không. X (Twitter) Tweet Quotes chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của X (Twitter).