---
title: "Twitter Chi tiết bài đăng API (V1)"
description: "Lấy lại toàn bộ thông tin chi tiết của một bài đăng X (Twitter) được xác định bằng ID tweet. Sử dụng để kiểm tra một bài đăng đã biết sau khi tìm thấy thông qua tìm kiếm, lịch sử bài đăng của người dùng hoặc URL của bài đăng đã có."
lastUpdated: false
aiUsagePrompt: true
---

# Twitter Chi tiết bài đăng API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/twitter/get-post-detail/v1\"")'
  :summary='JSON.parse("\"Chi tiết bài đăng (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/twitter/post-detail-v1-vi.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Cần có token xác thực để truy cập API.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"tweetId\",\"in\":\"query\",\"description\":\"ID duy nhất của bài đăng trên Twitter.\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID bài đăng trên X, được trả về dưới dạng chuỗi ký tự.\"},\"status\":{\"type\":\"string\",\"description\":\"Thẻ trạng thái được trả về trong dữ liệu phản hồi.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Thời gian bài đăng được công bố.\"},\"text\":{\"type\":\"string\",\"description\":\"Văn bản của bài đăng.\"},\"display_text\":{\"type\":\"string\",\"description\":\"Văn bản được cung cấp để hiển thị cùng với bài đăng.\"},\"lang\":{\"type\":\"string\",\"description\":\"Mã ngôn ngữ được báo cáo cho bài đăng.\"},\"sensitive\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Liệu bài đăng có được đánh dấu là có tính chất nhạy cảm hay không khi có giá trị tương ứng.\"},\"likes\":{\"type\":\"integer\",\"description\":\"Số lượt like được báo cáo.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Số lần repost được báo cáo.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Số lần người dùng đánh dấu như bookmark được báo cáo.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Số lần người dùng trích dẫn được báo cáo.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Số lần người dùng trả lời được báo cáo.\"},\"views\":{\"type\":\"string\",\"description\":\"Số lần xem được báo cáo dưới dạng chuỗi số.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID của bài đăng gốc trong cuộc trò chuyện, được trả về dưới dạng chuỗi.\"},\"reply_to\":{\"type\":[\"string\",\"null\"],\"description\":\"ID của bài đăng mà lời ghi chú này trả lời trực tiếp, nếu có.\"},\"in_reply_to_status_id_str\":{\"type\":[\"string\",\"null\"],\"description\":\"ID của bài đăng mà lời ghi chú này trả lời trực tiếp, được trả về dưới dạng chuỗi.\"},\"in_reply_to_user_id_str\":{\"type\":[\"string\",\"null\"],\"description\":\"ID của tài khoản mà lời ghi chú này trả lời trực tiếp, được trả về dưới dạng chuỗi.\"},\"in_reply_to_screen_name\":{\"type\":[\"string\",\"null\"],\"description\":\"Tên người dùng của tài khoản mà lời ghi chú này trả lời trực tiếp.\"},\"author\":{\"type\":\"object\",\"description\":\"Thông tin hồ sơ công khai về tác giả của bài đăng này.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"ID tài khoản X, được trả về dưới dạng chuỗi ký tự.\"},\"name\":{\"type\":\"string\",\"description\":\"Tên hiển thị của tài khoản.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Tên người dùng tài khoản không có tiền tố @.\"},\"image\":{\"type\":\"string\",\"description\":\"URL hình ảnh đại diện của tài khoản.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Trạng thái “Blue check” được báo cáo cho tài khoản này.\"},\"verification\":{\"type\":[\"string\",\"null\"],\"description\":\"Loại xác thực được báo cáo cho tác giả bài đăng, nếu có.\"},\"sub_count\":{\"type\":\"integer\",\"description\":\"Số lượng tài khoản theo dõi tác giả được báo cáo.\"}}},\"entities\":{\"type\":\"object\",\"description\":\"Liên kết, lời nhắc và các thực thể khác liên quan đến văn bản bài đăng.\",\"properties\":{\"media\":{\"type\":\"array\",\"description\":\"ID thực thể phương tiện được trả về cho bài đăng.\",\"items\":{\"type\":\"object\",\"properties\":{\"id_str\":{\"type\":\"string\",\"description\":\"ID thực thể phương tiện truyền thông, được trả về dưới dạng chuỗi ký tự.\"},\"type\":{\"type\":\"string\",\"description\":\"Loại thực thể phương tiện truyền thông được trả về cho tệp này.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"URL HTTPS liên quan đến thực thể phương tiện truyền thông.\"},\"original_info\":{\"type\":\"object\",\"description\":\"Kích thước ban đầu của tệp đính kèm media.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tệp media gốc tính bằng pixel.\"},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tệp media gốc tính bằng pixel.\"}}},\"ext_media_availability\":{\"type\":\"object\",\"description\":\"Thông tin về tính khả dụng của tệp đính kèm truyền thông.\",\"properties\":{\"status\":{\"type\":\"string\",\"description\":\"Trạng thái khả dụng được báo cáo cho tệp đính kèm truyền thông.\"}}},\"sizes\":{\"type\":\"object\",\"description\":\"Các kích thước có sẵn cho hình ảnh truyền thông.\",\"properties\":{\"large\":{\"type\":\"object\",\"description\":\"Kích thước của phiên bản hình ảnh này.\",\"properties\":{\"w\":{\"type\":\"integer\",\"description\":\"Chiều rộng của hình ảnh trong pixel.\"},\"h\":{\"type\":\"integer\",\"description\":\"Chiều cao của hình ảnh trong pixel.\"},\"resize\":{\"type\":\"string\",\"description\":\"Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này.\"}}},\"medium\":{\"type\":\"object\",\"description\":\"Kích thước của phiên bản hình ảnh này.\",\"properties\":{\"w\":{\"type\":\"integer\",\"description\":\"Chiều rộng của hình ảnh trong pixel.\"},\"h\":{\"type\":\"integer\",\"description\":\"Chiều cao của hình ảnh trong pixel.\"},\"resize\":{\"type\":\"string\",\"description\":\"Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này.\"}}},\"small\":{\"type\":\"object\",\"description\":\"Kích thước của phiên bản hình ảnh này.\",\"properties\":{\"w\":{\"type\":\"integer\",\"description\":\"Chiều rộng của hình ảnh trong pixel.\"},\"h\":{\"type\":\"integer\",\"description\":\"Chiều cao của hình ảnh trong pixel.\"},\"resize\":{\"type\":\"string\",\"description\":\"Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này.\"}}},\"thumb\":{\"type\":\"object\",\"description\":\"Kích thước của phiên bản hình ảnh này.\",\"properties\":{\"w\":{\"type\":\"integer\",\"description\":\"Chiều rộng của hình ảnh trong pixel.\"},\"h\":{\"type\":\"integer\",\"description\":\"Chiều cao của hình ảnh trong pixel.\"},\"resize\":{\"type\":\"string\",\"description\":\"Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này.\"}}}}},\"video_info\":{\"type\":\"object\",\"description\":\"Thông tin meta lưu trữ được cung cấp cùng với thực thể video.\",\"properties\":{\"duration_millis\":{\"type\":\"integer\",\"description\":\"Khoảng thời gian video trong mili giây.\"},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Tỷ lệ khung video dưới dạng một mảng hai số nguyên.\",\"items\":{\"type\":\"integer\"}},\"variants\":{\"type\":\"array\",\"description\":\"Các phiên bản phát lại video có sẵn.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL phát lại dành cho phiên bản video này.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Loại phương tiện truyền thông dành cho phiên bản video này.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Tốc độ bit được báo cáo cho phiên bản video này.\"}}}}}}}}},\"urls\":{\"type\":\"array\",\"description\":\"Liên kết được tìm thấy trong văn bản bài đăng.\"},\"user_mentions\":{\"type\":\"array\",\"description\":\"Thực thể ký hiệu tài chính được trả về cho bài đăng.\",\"items\":{\"type\":\"object\",\"properties\":{\"id_str\":{\"type\":\"string\",\"description\":\"ID tài khoản X, được trả về dưới dạng chuỗi ký tự.\"},\"name\":{\"type\":\"string\",\"description\":\"Tên hiển thị của tài khoản.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Tên người dùng tài khoản không có tiền tố @.\"},\"indices\":{\"type\":\"array\",\"description\":\"Vị trí bắt đầu và kết thúc của thực thể trong văn bản bài đăng.\",\"items\":{\"type\":\"integer\"}}}}},\"hashtags\":{\"type\":\"array\",\"description\":\"Các thực thể hashtag được trả về cho bài đăng.\"},\"symbols\":{\"type\":\"array\",\"description\":\"Các thực thể ký hiệu được trả về cho bài đăng.\"}}},\"media\":{\"type\":[\"object\",\"null\"],\"description\":\"Các tệp đính kèm truyền thông được trả về cho bài đăng.\",\"properties\":{\"photo\":{\"type\":\"array\",\"description\":\"ID hình ảnh tải lên, được trả về dưới dạng chuỗi ký tự.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID tệp hình ảnh, được trả về dưới dạng chuỗi ký tự.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"URL HTTPS cho hình ảnh.\"}}}},\"video\":{\"type\":\"array\",\"description\":\"Video được tải lên.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID tài liệu phụ video, được trả về dưới dạng chuỗi.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"URL HTTPS dành cho hình ảnh xem trước video.\"},\"original_info\":{\"type\":\"object\",\"description\":\"Kích thước ban đầu của tệp đính kèm media.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Chiều cao của tệp media gốc tính bằng pixel.\"},\"width\":{\"type\":\"integer\",\"description\":\"Chiều rộng của tệp media gốc tính bằng pixel.\"}}},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Tỷ lệ khung video dưới dạng một mảng hai số nguyên.\",\"items\":{\"type\":\"integer\"}},\"duration\":{\"type\":\"integer\",\"description\":\"Khoảng thời gian video trong mili giây.\"},\"variants\":{\"type\":\"array\",\"description\":\"Các phiên bản phát lại video có sẵn.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL phát lại dành cho phiên bản video này.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Loại phương tiện truyền thông dành cho phiên bản video này.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Tốc độ bit được báo cáo cho phiên bản video này.\"}}}}}}}}},\"quoted\":{\"type\":\"object\",\"description\":\"Bài đăng được trích dẫn trong bài viết này, khi có sẵn.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"ID bài đăng trên X, được trả về dưới dạng chuỗi ký tự.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Thời gian bài đăng được công bố.\"},\"text\":{\"type\":\"string\",\"description\":\"Văn bản của bài đăng.\"},\"lang\":{\"type\":\"string\",\"description\":\"Mã ngôn ngữ được báo cáo cho bài đăng.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID của bài đăng gốc trong cuộc trò chuyện, được trả về dưới dạng chuỗi.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Số lượt like được báo cáo.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Số lần repost được báo cáo.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Số lần người dùng đánh dấu như bookmark được báo cáo.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Số lần người dùng trích dẫn được báo cáo.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Số lần người dùng trả lời được báo cáo.\"},\"views\":{\"type\":\"string\",\"description\":\"Số lần xem được báo cáo dưới dạng chuỗi số.\"},\"author\":{\"type\":\"object\",\"description\":\"Thông tin hồ sơ công khai về tác giả của bài đăng này.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"ID tài khoản X, được trả về dưới dạng chuỗi ký tự.\"},\"name\":{\"type\":\"string\",\"description\":\"Tên hiển thị của tài khoản.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Tên người dùng tài khoản không có tiền tố @.\"},\"avatar\":{\"type\":\"string\",\"description\":\"URL hình ảnh đại diện của tài khoản.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Trạng thái “Blue check” được báo cáo cho tài khoản này.\"}}},\"media\":{\"type\":\"array\",\"description\":\"Các tệp đính kèm truyền thông được trả về cho bài đăng.\"}}},\"card\":{\"type\":\"object\",\"description\":\"Thẻ xem trước liên kết được trả về cho bài đăng, nếu có sẵn.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Tiêu đề của thẻ xem trước liên kết.\"},\"url\":{\"type\":\"string\",\"description\":\"URL đích liên quan đến thẻ xem trước liên kết.\"},\"media\":{\"type\":\"object\",\"description\":\"Tệp đính kèm truyền thông được xem trước trong thẻ xem trước liên kết.\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Các tham số hoặc nội dung yêu cầu không hợp lệ.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Tài khoản truy cập không hợp lệ hoặc không hoạt động.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Quyền truy cập bị từ chối.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Tốc độ yêu cầu hoặc giới hạn hàng ngày đã vượt quá.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Lỗi máy chủ nội bộ.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Dịch vụ tạm thời không khả dụng.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API sản xuất toàn cục (mặc định)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/twitter/get-post-detail/v1\"")' />

<p>Lấy lại toàn bộ thông tin chi tiết của một bài đăng X (Twitter) được xác định bằng ID tweet. Sử dụng để kiểm tra một bài đăng đã biết sau khi tìm thấy thông qua tìm kiếm, lịch sử bài đăng của người dùng hoặc URL của bài đăng đã có.</p>

## Tham số

<div class="api-doc-table api-doc-table--params">

| Tên | Vị trí | Kiểu dữ liệu | Bắt buộc | Mặc định | Mô tả |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Đúng | - | Cần có token xác thực để truy cập API. |
| <code>tweetId</code> | query | <code>string</code> | Đúng | - | ID duy nhất của bài đăng trên Twitter. |

</div>

## Ví dụ mã hóa

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE'
```

```text [🤖 Lời hướng dẫn AI]
Tôi muốn sử dụng API "Chi tiết bài đăng (V1)" từ JustOneAPI.
URL cơ sở: https://api.justoneapi.com.
Đường dẫn API: /api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE
Điểm cuối API: BASE_URL + /api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE
Phương thức HTTP: GET
Xác thực: Thêm tham số "token" vào URL.
Định nghĩa OpenAPI: https://docs.justoneapi.com/openapi/twitter/post-detail-v1-vi.json

Tham số:
- token (query): Cần có token xác thực để truy cập API. (Bắt buộc)
- tweetId (query): ID duy nhất của bài đăng trên Twitter. (Bắt buộc)

Định dạng trả về: Xử lý an toàn phản hồi JSON hoặc văn bản dựa trên Content-Type thực tế.

Xử lý phản hồi và mã lỗi:
1. Đọc kết quả xử lý từ trường "code" trong nội dung phản hồi (mã 0 là thành công).
2. Thời gian chờ đề xuất: 120 giây. Nếu 120 giây quá dài, hãy dành ít nhất 60 giây. Một số yêu cầu có thể hết thời gian chờ trước khi có kết quả.
3. Mã kết quả:
   - 0: Thành công
   - 100: Token không hợp lệ hoặc đã bị vô hiệu hóa
   - 301: Không lấy được dữ liệu. Hãy thử lại.
   - 302: Vượt giới hạn tần suất gọi
   - 303: Vượt hạn mức trong ngày
   - 400: Tham số không hợp lệ
   - 500: Lỗi nội bộ máy chủ
   - 600: Không có quyền truy cập
   - 601: Không đủ số dư
   - 602: Đã chạm giới hạn ngân sách token
4. Mã 601 nghĩa là số dư dùng chung của tài khoản không đủ. Mã 602 nghĩa là token API đã chạm giới hạn ngân sách tích lũy riêng. Việc đặt ngân sách cho token không chuyển tiền khỏi số dư dùng chung.

Xin hãy giúp tôi viết một script bằng ngôn ngữ lập trình yêu thích để gọi API này và xử lý phản hồi.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Được cung cấp bởi các server OpenAPI

url = BASE_URL + "/api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Được cung cấp bởi các server OpenAPI
const url = BASE_URL + "/api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Được cung cấp bởi các server OpenAPI
        final String url = BASE_URL + "/api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Được cung cấp bởi các server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Được cung cấp bởi các server OpenAPI
$url = $BASE_URL . '/api/twitter/get-post-detail/v1?token=YOUR_API_KEY&tweetId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/twitter/post-detail-v1-vi.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Định nghĩa OpenAPI (JSON)]</a>
</div>

## Các trường trong phản hồi

Các trường chính trong phản hồi thành công (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Đường dẫn trường | Kiểu dữ liệu | Mô tả |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | - |
| <code>data.id</code> | <code>string</code> | ID bài đăng trên X, được trả về dưới dạng chuỗi ký tự. |
| <code>data.status</code> | <code>string</code> | Thẻ trạng thái được trả về trong dữ liệu phản hồi. |
| <code>data.created_at</code> | <code>string</code> | Thời gian bài đăng được công bố. |
| <code>data.text</code> | <code>string</code> | Văn bản của bài đăng. |
| <code>data.display_text</code> | <code>string</code> | Văn bản được cung cấp để hiển thị cùng với bài đăng. |
| <code>data.lang</code> | <code>string</code> | Mã ngôn ngữ được báo cáo cho bài đăng. |
| <code>data.sensitive</code> | <code>boolean &#124; null</code> | Liệu bài đăng có được đánh dấu là có tính chất nhạy cảm hay không khi có giá trị tương ứng. |
| <code>data.likes</code> | <code>integer</code> | Số lượt like được báo cáo. |
| <code>data.retweets</code> | <code>integer</code> | Số lần repost được báo cáo. |
| <code>data.bookmarks</code> | <code>integer</code> | Số lần người dùng đánh dấu như bookmark được báo cáo. |
| <code>data.quotes</code> | <code>integer</code> | Số lần người dùng trích dẫn được báo cáo. |
| <code>data.replies</code> | <code>integer</code> | Số lần người dùng trả lời được báo cáo. |
| <code>data.views</code> | <code>string</code> | Số lần xem được báo cáo dưới dạng chuỗi số. |
| <code>data.conversation_id</code> | <code>string</code> | ID của bài đăng gốc trong cuộc trò chuyện, được trả về dưới dạng chuỗi. |
| <code>data.reply_to</code> | <code>string &#124; null</code> | ID của bài đăng mà lời ghi chú này trả lời trực tiếp, nếu có. |
| <code>data.in_reply_to_status_id_str</code> | <code>string &#124; null</code> | ID của bài đăng mà lời ghi chú này trả lời trực tiếp, được trả về dưới dạng chuỗi. |
| <code>data.in_reply_to_user_id_str</code> | <code>string &#124; null</code> | ID của tài khoản mà lời ghi chú này trả lời trực tiếp, được trả về dưới dạng chuỗi. |
| <code>data.in_reply_to_screen_name</code> | <code>string &#124; null</code> | Tên người dùng của tài khoản mà lời ghi chú này trả lời trực tiếp. |
| <code>data.author</code> | <code>object</code> | Thông tin hồ sơ công khai về tác giả của bài đăng này. |
| <code>data.author.rest_id</code> | <code>string</code> | ID tài khoản X, được trả về dưới dạng chuỗi ký tự. |
| <code>data.author.name</code> | <code>string</code> | Tên hiển thị của tài khoản. |
| <code>data.author.screen_name</code> | <code>string</code> | Tên người dùng tài khoản không có tiền tố @. |
| <code>data.author.image</code> | <code>string</code> | URL hình ảnh đại diện của tài khoản. |
| <code>data.author.blue_verified</code> | <code>boolean</code> | Trạng thái “Blue check” được báo cáo cho tài khoản này. |
| <code>data.author.verification</code> | <code>string &#124; null</code> | Loại xác thực được báo cáo cho tác giả bài đăng, nếu có. |
| <code>data.author.sub_count</code> | <code>integer</code> | Số lượng tài khoản theo dõi tác giả được báo cáo. |
| <code>data.entities</code> | <code>object</code> | Liên kết, lời nhắc và các thực thể khác liên quan đến văn bản bài đăng. |
| <code>data.entities.media</code> | <code>array</code> | ID thực thể phương tiện được trả về cho bài đăng. |
| <code>data.entities.media[]</code> | <code>object</code> | - |
| <code>data.entities.media[].id_str</code> | <code>string</code> | ID thực thể phương tiện truyền thông, được trả về dưới dạng chuỗi ký tự. |
| <code>data.entities.media[].type</code> | <code>string</code> | Loại thực thể phương tiện truyền thông được trả về cho tệp này. |
| <code>data.entities.media[].media_url_https</code> | <code>string</code> | URL HTTPS liên quan đến thực thể phương tiện truyền thông. |
| <code>data.entities.media[].original_info</code> | <code>object</code> | Kích thước ban đầu của tệp đính kèm media. |
| <code>data.entities.media[].original_info.height</code> | <code>integer</code> | Chiều cao của tệp media gốc tính bằng pixel. |
| <code>data.entities.media[].original_info.width</code> | <code>integer</code> | Chiều rộng của tệp media gốc tính bằng pixel. |
| <code>data.entities.media[].ext_media_availability</code> | <code>object</code> | Thông tin về tính khả dụng của tệp đính kèm truyền thông. |
| <code>data.entities.media[].ext_media_availability.status</code> | <code>string</code> | Trạng thái khả dụng được báo cáo cho tệp đính kèm truyền thông. |
| <code>data.entities.media[].sizes</code> | <code>object</code> | Các kích thước có sẵn cho hình ảnh truyền thông. |
| <code>data.entities.media[].sizes.large</code> | <code>object</code> | Kích thước của phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.large.w</code> | <code>integer</code> | Chiều rộng của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.large.h</code> | <code>integer</code> | Chiều cao của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.large.resize</code> | <code>string</code> | Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.medium</code> | <code>object</code> | Kích thước của phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.medium.w</code> | <code>integer</code> | Chiều rộng của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.medium.h</code> | <code>integer</code> | Chiều cao của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.medium.resize</code> | <code>string</code> | Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.small</code> | <code>object</code> | Kích thước của phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.small.w</code> | <code>integer</code> | Chiều rộng của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.small.h</code> | <code>integer</code> | Chiều cao của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.small.resize</code> | <code>string</code> | Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.thumb</code> | <code>object</code> | Kích thước của phiên bản hình ảnh này. |
| <code>data.entities.media[].sizes.thumb.w</code> | <code>integer</code> | Chiều rộng của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.thumb.h</code> | <code>integer</code> | Chiều cao của hình ảnh trong pixel. |
| <code>data.entities.media[].sizes.thumb.resize</code> | <code>string</code> | Chế độ thay đổi kích thước được báo cáo cho phiên bản hình ảnh này. |
| <code>data.entities.media[].video_info</code> | <code>object</code> | Thông tin meta lưu trữ được cung cấp cùng với thực thể video. |
| <code>data.entities.media[].video_info.duration_millis</code> | <code>integer</code> | Khoảng thời gian video trong mili giây. |
| <code>data.entities.media[].video_info.aspect_ratio</code> | <code>array</code> | Tỷ lệ khung video dưới dạng một mảng hai số nguyên. |
| <code>data.entities.media[].video_info.aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.entities.media[].video_info.variants</code> | <code>array</code> | Các phiên bản phát lại video có sẵn. |
| <code>data.entities.media[].video_info.variants[]</code> | <code>object</code> | - |
| <code>data.entities.media[].video_info.variants[].url</code> | <code>string</code> | URL phát lại dành cho phiên bản video này. |
| <code>data.entities.media[].video_info.variants[].content_type</code> | <code>string</code> | Loại phương tiện truyền thông dành cho phiên bản video này. |
| <code>data.entities.media[].video_info.variants[].bitrate</code> | <code>integer</code> | Tốc độ bit được báo cáo cho phiên bản video này. |
| <code>data.entities.urls</code> | <code>array</code> | Liên kết được tìm thấy trong văn bản bài đăng. |
| <code>data.entities.user_mentions</code> | <code>array</code> | Thực thể ký hiệu tài chính được trả về cho bài đăng. |
| <code>data.entities.user_mentions[]</code> | <code>object</code> | - |
| <code>data.entities.user_mentions[].id_str</code> | <code>string</code> | ID tài khoản X, được trả về dưới dạng chuỗi ký tự. |
| <code>data.entities.user_mentions[].name</code> | <code>string</code> | Tên hiển thị của tài khoản. |
| <code>data.entities.user_mentions[].screen_name</code> | <code>string</code> | Tên người dùng tài khoản không có tiền tố @. |
| <code>data.entities.user_mentions[].indices</code> | <code>array</code> | Vị trí bắt đầu và kết thúc của thực thể trong văn bản bài đăng. |
| <code>data.entities.user_mentions[].indices[]</code> | <code>integer</code> | - |
| <code>data.entities.hashtags</code> | <code>array</code> | Các thực thể hashtag được trả về cho bài đăng. |
| <code>data.entities.symbols</code> | <code>array</code> | Các thực thể ký hiệu được trả về cho bài đăng. |
| <code>data.media</code> | <code>object &#124; null</code> | Các tệp đính kèm truyền thông được trả về cho bài đăng. |
| <code>data.media.photo</code> | <code>array</code> | ID hình ảnh tải lên, được trả về dưới dạng chuỗi ký tự. |
| <code>data.media.photo[]</code> | <code>object</code> | - |
| <code>data.media.photo[].id</code> | <code>string</code> | ID tệp hình ảnh, được trả về dưới dạng chuỗi ký tự. |
| <code>data.media.photo[].media_url_https</code> | <code>string</code> | URL HTTPS cho hình ảnh. |
| <code>data.media.video</code> | <code>array</code> | Video được tải lên. |
| <code>data.media.video[]</code> | <code>object</code> | - |
| <code>data.media.video[].id</code> | <code>string</code> | ID tài liệu phụ video, được trả về dưới dạng chuỗi. |
| <code>data.media.video[].media_url_https</code> | <code>string</code> | URL HTTPS dành cho hình ảnh xem trước video. |
| <code>data.media.video[].original_info</code> | <code>object</code> | Kích thước ban đầu của tệp đính kèm media. |
| <code>data.media.video[].original_info.height</code> | <code>integer</code> | Chiều cao của tệp media gốc tính bằng pixel. |
| <code>data.media.video[].original_info.width</code> | <code>integer</code> | Chiều rộng của tệp media gốc tính bằng pixel. |
| <code>data.media.video[].aspect_ratio</code> | <code>array</code> | Tỷ lệ khung video dưới dạng một mảng hai số nguyên. |
| <code>data.media.video[].aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.media.video[].duration</code> | <code>integer</code> | Khoảng thời gian video trong mili giây. |
| <code>data.media.video[].variants</code> | <code>array</code> | Các phiên bản phát lại video có sẵn. |
| <code>data.media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.media.video[].variants[].url</code> | <code>string</code> | URL phát lại dành cho phiên bản video này. |
| <code>data.media.video[].variants[].content_type</code> | <code>string</code> | Loại phương tiện truyền thông dành cho phiên bản video này. |
| <code>data.media.video[].variants[].bitrate</code> | <code>integer</code> | Tốc độ bit được báo cáo cho phiên bản video này. |
| <code>data.quoted</code> | <code>object</code> | Bài đăng được trích dẫn trong bài viết này, khi có sẵn. |
| <code>data.quoted.tweet_id</code> | <code>string</code> | ID bài đăng trên X, được trả về dưới dạng chuỗi ký tự. |
| <code>data.quoted.created_at</code> | <code>string</code> | Thời gian bài đăng được công bố. |
| <code>data.quoted.text</code> | <code>string</code> | Văn bản của bài đăng. |
| <code>data.quoted.lang</code> | <code>string</code> | Mã ngôn ngữ được báo cáo cho bài đăng. |
| <code>data.quoted.conversation_id</code> | <code>string</code> | ID của bài đăng gốc trong cuộc trò chuyện, được trả về dưới dạng chuỗi. |
| <code>data.quoted.favorites</code> | <code>integer</code> | Số lượt like được báo cáo. |
| <code>data.quoted.retweets</code> | <code>integer</code> | Số lần repost được báo cáo. |
| <code>data.quoted.bookmarks</code> | <code>integer</code> | Số lần người dùng đánh dấu như bookmark được báo cáo. |
| <code>data.quoted.quotes</code> | <code>integer</code> | Số lần người dùng trích dẫn được báo cáo. |
| <code>data.quoted.replies</code> | <code>integer</code> | Số lần người dùng trả lời được báo cáo. |
| <code>data.quoted.views</code> | <code>string</code> | Số lần xem được báo cáo dưới dạng chuỗi số. |
| <code>data.quoted.author</code> | <code>object</code> | Thông tin hồ sơ công khai về tác giả của bài đăng này. |
| <code>data.quoted.author.rest_id</code> | <code>string</code> | ID tài khoản X, được trả về dưới dạng chuỗi ký tự. |
| <code>data.quoted.author.name</code> | <code>string</code> | Tên hiển thị của tài khoản. |
| <code>data.quoted.author.screen_name</code> | <code>string</code> | Tên người dùng tài khoản không có tiền tố @. |
| <code>data.quoted.author.avatar</code> | <code>string</code> | URL hình ảnh đại diện của tài khoản. |
| <code>data.quoted.author.blue_verified</code> | <code>boolean</code> | Trạng thái “Blue check” được báo cáo cho tài khoản này. |
| <code>data.quoted.media</code> | <code>array</code> | Các tệp đính kèm truyền thông được trả về cho bài đăng. |
| <code>data.card</code> | <code>object</code> | Thẻ xem trước liên kết được trả về cho bài đăng, nếu có sẵn. |
| <code>data.card.type</code> | <code>string</code> | Tiêu đề của thẻ xem trước liên kết. |
| <code>data.card.url</code> | <code>string</code> | URL đích liên quan đến thẻ xem trước liên kết. |
| <code>data.card.media</code> | <code>object</code> | Tệp đính kèm truyền thông được xem trước trong thẻ xem trước liên kết. |

</div>

## Ví dụ phản hồi

<ApiExampleSection :api='JSON.parse("\"/api/twitter/get-post-detail/v1\"")' />

