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

Threads User Posts

Tài liệu API
https://api.sandbase.ai/v1/api/threads/web/user-posts

Returns a list of posts from a specified Threads account. Accepts a user identifier and an optional pagination cursor to retrieve subsequent pages of data.

Giá
$0.002USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
User ID, for example: 63625256886, can be obtained from user profile API
Pagination cursor (optional), used to get next page data
Đầu raVí dụ
Phản hồioutputs · 28 B · 5 dòng
[
  {
    "data": null
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Threads User Posts API

Returns a list of text posts from a Threads account. It needs the numeric user_id of the account and takes an optional end_cursor to fetch the next page.

Use cases

  • Pull the latest posts from a news or brand account on Threads.
  • Archive the caption text and short codes of an account's posts for later review.
  • Track which links a publisher shares by reading the caption text of each post.
  • Page through an account's older posts by passing the cursor from the previous response.

Request

curl -X POST "https://api.sandbase.ai/v1/api/threads/web/user-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "63625256886"}'

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

Parameters

NameTypeRequiredDescription
user_idstringYesUser ID, for example: 63625256886, can be obtained from user profile API
end_cursorstringNoPagination cursor (optional), used to get next page data

Example response

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

{
  "mediaData": {
    "edges": [
      {
        "__typename": "XDTUserTextPostsResponseEdge",
        "cursor": "",
        "node": {
          "__typename": "XDTThread",
          "id": "4022095224599806479",
          "thread_header_context": null,
          "thread_items": [
            {
              "__typename": "XDTThreadItem",
              "line_type": "none",
              "post": {
                "accessibility_caption": "How NATO states on the Black Sea are being drawn into Ukraine war escalation",
                "audio": null,
                "caption": {
                  "has_translation": null,
                  "pk": "18121968424969344",
                  "text": "How NATO states on the Black Sea are being drawn into Ukraine war escalation reu…"
                },
                "caption_add_on": null,
                "caption_is_edited": false,
                "carousel_media": null,
                "code": "DfRWkv7EQIP",
                "gen_ai_detection_method": {
                  "detection_method": "NONE"
                }
              },
              "should_show_ephemeral_post_timer": null
            }
          ],
          "thread_type": "thread"
        }
      }
    ],
    "page_info": {
      "end_cursor": null,
      "has_next_page": false,
      "has_previous_page": false,
      "start_cursor": null
    }
  }
}

Response fields

FieldMeaning
mediaData.edges[]One entry per thread in the account's post list.
mediaData.edges[].node.idID of the thread, returned as a string.
mediaData.edges[].node.thread_typeType of the thread. The sample value is thread.
mediaData.edges[].node.thread_items[].post.caption.textText of the post. Long text may be cut, and links appear as short URLs.
mediaData.edges[].node.thread_items[].post.caption.pkNumeric ID of the caption, returned as a string.
mediaData.edges[].node.thread_items[].post.codeShort code of the post. It is the code that identifies the post on Threads.
mediaData.edges[].node.thread_items[].post.accessibility_captionAlt-text style description of the post. It is null when none is set.
mediaData.edges[].node.thread_items[].post.caption_is_editedtrue if the caption was edited after posting.
mediaData.page_info.has_next_pagetrue if more posts are available on another page.
mediaData.page_info.end_cursorCursor for the next page. It is null when there is no further page.

Notes

  • Get user_id from Threads User Profile. The example value is 63625256886.
  • To get the next page, send the end_cursor from mediaData.page_info as the end_cursor parameter. In the sample response it is null and has_next_page is false.
  • For details on a single post, call Threads Post Detail.
  • To see what an account replied to others, use Threads User Replies.

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Threads$0.002 mỗi lần gọiJSON
Threads$0.002 mỗi lần gọiJSON
Threads$0.002 mỗi lần gọiJSON
Threads$0.003 mỗi lần gọiJSON
Threads$0.002 mỗi lần gọiJSON
Threads$0.002 mỗi lần gọiJSON

Hướng dẫn:Best Threads API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Threads User Posts?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/threads/web/user-posts 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 Threads User Posts có giá bao nhiêu?

$0.002 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Threads User Posts chấp nhận những tham số nào?

Bắt buộc: user_id (string). Tùy chọn: end_cursor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Threads User Posts 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 Threads không?

Không. Threads User Posts 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 Threads.