---
title: "Twitter User Published Posts API (V1)"
description: "Retrieves posts published by an X (Twitter) user identified by Rest ID, with cursor pagination. Use it to browse a known account's timeline or continue through its public post history."
aiUsagePrompt: true
---

# Twitter User Published Posts API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/twitter/get-user-posts/v1\"")'
  :summary='JSON.parse("\"User Published Posts (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/twitter/user-published-posts-v1-en.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Authentication token required for API access.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"restId\",\"in\":\"query\",\"description\":\"The unique numeric identifier (Rest ID) for the X user.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"cursor\",\"in\":\"query\",\"description\":\"Pagination cursor for navigating through long timelines.\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}}]")'
  :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\":{\"status\":{\"type\":\"string\",\"description\":\"Status label returned in the response data.\"},\"next_cursor\":{\"type\":\"string\",\"description\":\"Pass this value as the cursor for the next page when it is non-empty.\"},\"prev_cursor\":{\"type\":\"string\",\"description\":\"Cursor returned for backward pagination.\"},\"user\":{\"type\":\"object\",\"description\":\"Public information for the requested account.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"profile\":{\"type\":[\"string\",\"null\"],\"description\":\"Account username without the @ prefix.\"},\"name\":{\"type\":[\"string\",\"null\"],\"description\":\"Account display name.\"},\"avatar\":{\"type\":[\"string\",\"null\"],\"description\":\"Profile avatar URL.\"},\"created_at\":{\"type\":[\"string\",\"null\"],\"description\":\"Time when the X account was created.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"},\"protected\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether this account is marked as protected on X.\"},\"location\":{\"type\":\"string\",\"description\":\"Location text supplied by the author in their profile. It can be empty.\"},\"affiliates\":{\"type\":[\"object\",\"array\"],\"description\":\"Account affiliation information. A response can use an empty array when no affiliation is present.\",\"properties\":{\"label\":{\"type\":\"object\",\"description\":\"Affiliation label displayed with the profile.\",\"properties\":{\"description\":{\"type\":\"string\",\"description\":\"Text label for the affiliation.\"},\"badge\":{\"type\":\"object\",\"description\":\"Badge artwork for the affiliation.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL for the affiliation badge image.\"}}},\"url\":{\"type\":\"object\",\"description\":\"Link associated with the displayed affiliation label.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Destination URL for the affiliation link.\"}}}}}}}}},\"pinned\":{\"type\":\"object\",\"description\":\"Pinned post for the account when returned, separate from the timeline array.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"X post ID, returned as a string.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Time when the post was published.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the post.\"},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the post.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID of the root post in the conversation, returned as a string.\"},\"sensitive\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the post is marked as potentially sensitive when a value is available.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Reported bookmark count.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Reported like count.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Reported quote count.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Reported reply count.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Reported repost count.\"},\"views\":{\"type\":\"string\",\"description\":\"Reported view count as a numeric string. It can be null for some embedded posts.\"},\"author\":{\"type\":\"object\",\"description\":\"Public profile information for the author of this post.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Profile avatar URL.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Reported number of accounts following the author.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"}}},\"media\":{\"type\":[\"object\",\"array\"],\"description\":\"Media attachments. Responses can use an empty array when no attachment is present.\",\"properties\":{\"video\":{\"type\":\"array\",\"description\":\"Attached videos.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Video attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the video preview image.\"},\"variants\":{\"type\":\"array\",\"description\":\"Available video playback variants.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Playback URL for this video variant.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Media type for this video variant.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Bitrate reported for this video variant.\"}}}}}}}}},\"quoted\":{\"type\":\"object\",\"description\":\"Post quoted by this entry, when available.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"X post ID, returned as a string.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Time when the post was published.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the post.\"},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the post.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID of the root post in the conversation, returned as a string.\"},\"sensitive\":{\"type\":\"boolean\",\"description\":\"Whether the post is marked as potentially sensitive when a value is available.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Reported bookmark count.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Reported like count.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Reported quote count.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Reported reply count.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Reported repost count.\"},\"views\":{\"type\":\"string\",\"description\":\"Reported view count as a numeric string. It can be null for some embedded posts.\"},\"author\":{\"type\":\"object\",\"description\":\"Public profile information for the author of this post.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Profile avatar URL.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Reported number of accounts following the author.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"}}},\"media\":{\"type\":\"object\",\"description\":\"Media attachments. Responses can use an empty array when no attachment is present.\",\"properties\":{\"video\":{\"type\":\"array\",\"description\":\"Attached videos.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Video attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the video preview image.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Video duration in milliseconds.\"},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Video aspect ratio as an array of two integers.\",\"items\":{\"type\":\"integer\"}},\"original_info\":{\"type\":\"object\",\"description\":\"Dimensions and crop information for the original video.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Original video height in pixels.\"},\"width\":{\"type\":\"integer\",\"description\":\"Original video width in pixels.\"}}},\"variants\":{\"type\":\"array\",\"description\":\"Available video playback variants.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Playback URL for this video variant.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Media type for this video variant.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Bitrate reported for this video variant.\"}}}}}}}}}}}}},\"timeline\":{\"type\":\"array\",\"description\":\"Timeline entries returned for the requested account and page.\",\"items\":{\"type\":\"object\",\"description\":\"One timeline entry, which can contain an original, reply, quote, or repost.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"X post ID, returned as a string.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Time when the post was published.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the post.\"},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the post.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID of the root post in the conversation, returned as a string.\"},\"reply_to\":{\"type\":\"string\",\"description\":\"ID of the post directly replied to, returned as a string when available.\"},\"sensitive\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the post is marked as potentially sensitive when a value is available.\"},\"source\":{\"type\":[\"string\",\"null\"],\"description\":\"Posting client label, which can be an HTML link or null.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Reported bookmark count.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Reported like count.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Reported quote count.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Reported reply count.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Reported repost count.\"},\"views\":{\"type\":\"string\",\"description\":\"Reported view count as a numeric string. It can be null for some embedded posts.\"},\"author\":{\"type\":\"object\",\"description\":\"Public profile information for the author of this post.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Profile avatar URL.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Reported number of accounts following the author.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"}}},\"entities\":{\"type\":[\"object\",\"array\"],\"description\":\"Entities found in the post text, such as links and mentions. An empty array can represent no entities.\",\"properties\":{\"urls\":{\"type\":\"array\",\"description\":\"Links found in the post text.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Short link appearing in the post text.\"},\"expanded_url\":{\"type\":\"string\",\"description\":\"Expanded destination URL for the link.\"},\"display_url\":{\"type\":\"string\",\"description\":\"Readable link label shown with the post.\"}}}},\"user_mentions\":{\"type\":\"array\",\"description\":\"Accounts mentioned in the post.\",\"items\":{\"type\":\"object\",\"properties\":{\"id_str\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"}}}},\"symbols\":{\"type\":\"array\",\"description\":\"Financial symbol entities returned for the post.\",\"items\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Text of the symbol label.\"}}}}}},\"media\":{\"type\":[\"object\",\"array\"],\"description\":\"Media attachments. Responses can use an empty array when no attachment is present.\",\"properties\":{\"photo\":{\"type\":\"array\",\"description\":\"Attached images.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Image attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the image.\"},\"sizes\":{\"type\":\"object\",\"description\":\"Image dimensions in pixels.\",\"properties\":{\"h\":{\"type\":\"integer\",\"description\":\"Image height in pixels.\"},\"w\":{\"type\":\"integer\",\"description\":\"Image width in pixels.\"}}}}}},\"video\":{\"type\":\"array\",\"description\":\"Attached videos.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Video attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the video preview image.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Video duration in milliseconds.\"},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Video aspect ratio as an array of two integers.\",\"items\":{\"type\":\"integer\"}},\"original_info\":{\"type\":\"object\",\"description\":\"Dimensions and crop information for the original video.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Original video height in pixels.\"},\"width\":{\"type\":\"integer\",\"description\":\"Original video width in pixels.\"}}},\"variants\":{\"type\":\"array\",\"description\":\"Available video playback variants.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Playback URL for this video variant.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Media type for this video variant.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Bitrate reported for this video variant.\"}}}}}}}}},\"retweeted\":{\"type\":\"object\",\"description\":\"Reference to the original post for a repost.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID of the original post for this repost. It matches retweeted_tweet.tweet_id when both are returned.\"}}},\"retweeted_tweet\":{\"type\":\"object\",\"description\":\"Original post embedded in a repost entry.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"X post ID, returned as a string.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Time when the post was published.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the post.\"},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the post.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID of the root post in the conversation, returned as a string.\"},\"sensitive\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the post is marked as potentially sensitive when a value is available.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Reported bookmark count.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Reported like count.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Reported quote count.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Reported reply count.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Reported repost count.\"},\"views\":{\"type\":\"string\",\"description\":\"Reported view count as a numeric string. It can be null for some embedded posts.\"},\"author\":{\"type\":\"object\",\"description\":\"Public profile information for the author of this post.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Profile avatar URL.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"}}},\"entities\":{\"type\":[\"object\",\"array\"],\"description\":\"Entities found in the post text, such as links and mentions. An empty array can represent no entities.\",\"properties\":{\"urls\":{\"type\":\"array\",\"description\":\"Links found in the post text.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Short link appearing in the post text.\"},\"expanded_url\":{\"type\":\"string\",\"description\":\"Expanded destination URL for the link.\"},\"display_url\":{\"type\":\"string\",\"description\":\"Readable link label shown with the post.\"}}}},\"user_mentions\":{\"type\":\"array\",\"description\":\"Accounts mentioned in the post.\",\"items\":{\"type\":\"object\",\"properties\":{\"id_str\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"}}}},\"media\":{\"type\":\"array\",\"description\":\"Media link entities returned for the post.\",\"items\":{\"type\":\"object\",\"properties\":{\"id_str\":{\"type\":\"string\",\"description\":\"Media entity ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL associated with the media entity.\"},\"type\":{\"type\":\"string\",\"description\":\"Media entity type returned for this attachment.\"},\"video_info\":{\"type\":\"object\",\"description\":\"Playback metadata provided with the video entity.\",\"properties\":{\"duration_millis\":{\"type\":\"integer\",\"description\":\"Video duration in milliseconds.\"}}}}}},\"symbols\":{\"type\":\"array\",\"description\":\"Financial symbol entities returned for the post.\",\"items\":{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Text of the symbol label.\"}}}}}},\"media\":{\"type\":[\"object\",\"array\"],\"description\":\"Media attachments. Responses can use an empty array when no attachment is present.\",\"properties\":{\"photo\":{\"type\":\"array\",\"description\":\"Attached images.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Image attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the image.\"},\"sizes\":{\"type\":\"object\",\"description\":\"Image dimensions in pixels.\",\"properties\":{\"h\":{\"type\":\"integer\",\"description\":\"Image height in pixels.\"},\"w\":{\"type\":\"integer\",\"description\":\"Image width in pixels.\"}}}}}},\"video\":{\"type\":\"array\",\"description\":\"Attached videos.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Video attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the video preview image.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Video duration in milliseconds.\"},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Video aspect ratio as an array of two integers.\",\"items\":{\"type\":\"integer\"}},\"original_info\":{\"type\":\"object\",\"description\":\"Dimensions and crop information for the original video.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Original video height in pixels.\"},\"width\":{\"type\":\"integer\",\"description\":\"Original video width in pixels.\"}}},\"variants\":{\"type\":\"array\",\"description\":\"Available video playback variants.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Playback URL for this video variant.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Media type for this video variant.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Bitrate reported for this video variant.\"}}}}}}}}},\"quoted\":{\"type\":\"object\",\"description\":\"Post quoted by this entry, when available.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"X post ID, returned as a string.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Time when the post was published.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the post.\"},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the post.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID of the root post in the conversation, returned as a string.\"},\"sensitive\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the post is marked as potentially sensitive when a value is available.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Reported bookmark count.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Reported like count.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Reported quote count.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Reported reply count.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Reported repost count.\"},\"views\":{\"type\":\"string\",\"description\":\"Reported view count as a numeric string. It can be null for some embedded posts.\"},\"author\":{\"type\":\"object\",\"description\":\"Public profile information for the author of this post.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"},\"avatar\":{\"type\":\"string\",\"description\":\"Profile avatar URL.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Reported number of accounts following the author.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"}}},\"media\":{\"type\":[\"object\",\"array\"],\"description\":\"Media attachments. Responses can use an empty array when no attachment is present.\",\"properties\":{\"photo\":{\"type\":\"array\",\"description\":\"Attached images.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Image attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the image.\"},\"sizes\":{\"type\":\"object\",\"description\":\"Image dimensions in pixels.\",\"properties\":{\"h\":{\"type\":\"integer\",\"description\":\"Image height in pixels.\"},\"w\":{\"type\":\"integer\",\"description\":\"Image width in pixels.\"}}}}}},\"video\":{\"type\":\"array\",\"description\":\"Attached videos.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Video attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the video preview image.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Video duration in milliseconds.\"},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Video aspect ratio as an array of two integers.\",\"items\":{\"type\":\"integer\"}},\"original_info\":{\"type\":\"object\",\"description\":\"Dimensions and crop information for the original video.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Original video height in pixels.\"},\"width\":{\"type\":\"integer\",\"description\":\"Original video width in pixels.\"}}},\"variants\":{\"type\":\"array\",\"description\":\"Available video playback variants.\",\"items\":{\"type\":\"object\"}}}}}}}}}}},\"quoted\":{\"type\":\"object\",\"description\":\"Post quoted by this entry, when available.\",\"properties\":{\"tweet_id\":{\"type\":\"string\",\"description\":\"X post ID, returned as a string.\"},\"created_at\":{\"type\":\"string\",\"description\":\"Time when the post was published.\"},\"text\":{\"type\":\"string\",\"description\":\"Text of the post.\"},\"lang\":{\"type\":\"string\",\"description\":\"Language code reported for the post.\"},\"conversation_id\":{\"type\":\"string\",\"description\":\"ID of the root post in the conversation, returned as a string.\"},\"sensitive\":{\"type\":[\"boolean\",\"null\"],\"description\":\"Whether the post is marked as potentially sensitive when a value is available.\"},\"bookmarks\":{\"type\":\"integer\",\"description\":\"Reported bookmark count.\"},\"favorites\":{\"type\":\"integer\",\"description\":\"Reported like count.\"},\"quotes\":{\"type\":\"integer\",\"description\":\"Reported quote count.\"},\"replies\":{\"type\":\"integer\",\"description\":\"Reported reply count.\"},\"retweets\":{\"type\":\"integer\",\"description\":\"Reported repost count.\"},\"views\":{\"type\":[\"string\",\"null\"],\"description\":\"Reported view count as a numeric string. It can be null for some embedded posts.\"},\"author\":{\"type\":\"object\",\"description\":\"Public profile information for the author of this post.\",\"properties\":{\"rest_id\":{\"type\":\"string\",\"description\":\"X account ID, returned as a string.\"},\"name\":{\"type\":\"string\",\"description\":\"Account display name.\"},\"screen_name\":{\"type\":\"string\",\"description\":\"Account username without the @ prefix.\"},\"avatar\":{\"type\":[\"string\",\"null\"],\"description\":\"Profile avatar URL.\"},\"followers_count\":{\"type\":\"integer\",\"description\":\"Reported number of accounts following the author.\"},\"blue_verified\":{\"type\":\"boolean\",\"description\":\"Blue check status reported for this account.\"}}},\"media\":{\"type\":[\"object\",\"array\"],\"description\":\"Media attachments. Responses can use an empty array when no attachment is present.\",\"properties\":{\"photo\":{\"type\":\"array\",\"description\":\"Attached images.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Image attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the image.\"},\"sizes\":{\"type\":\"object\",\"description\":\"Image dimensions in pixels.\",\"properties\":{\"h\":{\"type\":\"integer\",\"description\":\"Image height in pixels.\"},\"w\":{\"type\":\"integer\",\"description\":\"Image width in pixels.\"}}}}}},\"video\":{\"type\":\"array\",\"description\":\"Attached videos.\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Video attachment ID, returned as a string.\"},\"media_url_https\":{\"type\":\"string\",\"description\":\"HTTPS URL for the video preview image.\"},\"duration\":{\"type\":\"integer\",\"description\":\"Video duration in milliseconds.\"},\"aspect_ratio\":{\"type\":\"array\",\"description\":\"Video aspect ratio as an array of two integers.\",\"items\":{\"type\":\"integer\"}},\"original_info\":{\"type\":\"object\",\"description\":\"Dimensions and crop information for the original video.\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"Original video height in pixels.\"},\"width\":{\"type\":\"integer\",\"description\":\"Original video width in pixels.\"}}},\"variants\":{\"type\":\"array\",\"description\":\"Available video playback variants.\",\"items\":{\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Playback URL for this video variant.\"},\"content_type\":{\"type\":\"string\",\"description\":\"Media type for this video variant.\"},\"bitrate\":{\"type\":\"integer\",\"description\":\"Bitrate reported for this video variant.\"}}}}}}}}}}}}}}}}}},\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Invalid request parameters or body\",\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Invalid or inactive access token\",\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Permission denied\",\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Request rate or daily quota limit exceeded\",\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Internal server error\",\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Service temporarily unavailable\",\"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\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\":\"Global production API (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

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

<p>Retrieves posts published by an X (Twitter) user identified by Rest ID, with cursor pagination. Use it to browse a known account's timeline or continue through its public post history.</p>

## Parameters

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

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Yes | - | Authentication token required for API access. |
| <code>restId</code> | query | <code>string</code> | Yes | - | The unique numeric identifier (Rest ID) for the X user. |
| <code>cursor</code> | query | <code>string</code> | No | <code></code> | Pagination cursor for navigating through long timelines. |

</div>

## Code Samples

::: code-group

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

```text [🤖 AI Prompt]
I want to use the "User Published Posts (V1)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=VALUE
API Endpoint: BASE_URL + /api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/twitter/user-published-posts-v1-en.json

Parameters:
- token (query): Authentication token required for API access. (Required)
- restId (query): The unique numeric identifier (Rest ID) for the X user. (Required)
- cursor (query): Pagination cursor for navigating through long timelines.

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/twitter/get-user-posts/v1?token=YOUR_API_KEY&restId=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/user-published-posts-v1-en.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI Definition (JSON)]</a>
</div>

## Response Fields

Key fields in a successful response (`code = 0`).

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

| Field path | Type | Description |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | - |
| <code>data.status</code> | <code>string</code> | Status label returned in the response data. |
| <code>data.next_cursor</code> | <code>string</code> | Pass this value as the cursor for the next page when it is non-empty. |
| <code>data.prev_cursor</code> | <code>string</code> | Cursor returned for backward pagination. |
| <code>data.user</code> | <code>object</code> | Public information for the requested account. |
| <code>data.user.id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.user.profile</code> | <code>string &#124; null</code> | Account username without the @ prefix. |
| <code>data.user.name</code> | <code>string &#124; null</code> | Account display name. |
| <code>data.user.avatar</code> | <code>string &#124; null</code> | Profile avatar URL. |
| <code>data.user.created_at</code> | <code>string &#124; null</code> | Time when the X account was created. |
| <code>data.user.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.user.protected</code> | <code>boolean &#124; null</code> | Whether this account is marked as protected on X. |
| <code>data.user.location</code> | <code>string</code> | Location text supplied by the author in their profile. It can be empty. |
| <code>data.user.affiliates</code> | <code>object &#124; array</code> | Account affiliation information. A response can use an empty array when no affiliation is present. |
| <code>data.user.affiliates.label</code> | <code>object</code> | Affiliation label displayed with the profile. |
| <code>data.user.affiliates.label.description</code> | <code>string</code> | Text label for the affiliation. |
| <code>data.user.affiliates.label.badge</code> | <code>object</code> | Badge artwork for the affiliation. |
| <code>data.user.affiliates.label.badge.url</code> | <code>string</code> | URL for the affiliation badge image. |
| <code>data.user.affiliates.label.url</code> | <code>object</code> | Link associated with the displayed affiliation label. |
| <code>data.user.affiliates.label.url.url</code> | <code>string</code> | Destination URL for the affiliation link. |
| <code>data.pinned</code> | <code>object</code> | Pinned post for the account when returned, separate from the timeline array. |
| <code>data.pinned.tweet_id</code> | <code>string</code> | X post ID, returned as a string. |
| <code>data.pinned.created_at</code> | <code>string</code> | Time when the post was published. |
| <code>data.pinned.text</code> | <code>string</code> | Text of the post. |
| <code>data.pinned.lang</code> | <code>string</code> | Language code reported for the post. |
| <code>data.pinned.conversation_id</code> | <code>string</code> | ID of the root post in the conversation, returned as a string. |
| <code>data.pinned.sensitive</code> | <code>boolean &#124; null</code> | Whether the post is marked as potentially sensitive when a value is available. |
| <code>data.pinned.bookmarks</code> | <code>integer</code> | Reported bookmark count. |
| <code>data.pinned.favorites</code> | <code>integer</code> | Reported like count. |
| <code>data.pinned.quotes</code> | <code>integer</code> | Reported quote count. |
| <code>data.pinned.replies</code> | <code>integer</code> | Reported reply count. |
| <code>data.pinned.retweets</code> | <code>integer</code> | Reported repost count. |
| <code>data.pinned.views</code> | <code>string</code> | Reported view count as a numeric string. It can be null for some embedded posts. |
| <code>data.pinned.author</code> | <code>object</code> | Public profile information for the author of this post. |
| <code>data.pinned.author.rest_id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.pinned.author.name</code> | <code>string</code> | Account display name. |
| <code>data.pinned.author.screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.pinned.author.avatar</code> | <code>string</code> | Profile avatar URL. |
| <code>data.pinned.author.followers_count</code> | <code>integer</code> | Reported number of accounts following the author. |
| <code>data.pinned.author.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.pinned.media</code> | <code>object &#124; array</code> | Media attachments. Responses can use an empty array when no attachment is present. |
| <code>data.pinned.media.video</code> | <code>array</code> | Attached videos. |
| <code>data.pinned.media.video[]</code> | <code>object</code> | - |
| <code>data.pinned.media.video[].id</code> | <code>string</code> | Video attachment ID, returned as a string. |
| <code>data.pinned.media.video[].media_url_https</code> | <code>string</code> | HTTPS URL for the video preview image. |
| <code>data.pinned.media.video[].variants</code> | <code>array</code> | Available video playback variants. |
| <code>data.pinned.media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.pinned.media.video[].variants[].url</code> | <code>string</code> | Playback URL for this video variant. |
| <code>data.pinned.media.video[].variants[].content_type</code> | <code>string</code> | Media type for this video variant. |
| <code>data.pinned.media.video[].variants[].bitrate</code> | <code>integer</code> | Bitrate reported for this video variant. |
| <code>data.pinned.quoted</code> | <code>object</code> | Post quoted by this entry, when available. |
| <code>data.pinned.quoted.tweet_id</code> | <code>string</code> | X post ID, returned as a string. |
| <code>data.pinned.quoted.created_at</code> | <code>string</code> | Time when the post was published. |
| <code>data.pinned.quoted.text</code> | <code>string</code> | Text of the post. |
| <code>data.pinned.quoted.lang</code> | <code>string</code> | Language code reported for the post. |
| <code>data.pinned.quoted.conversation_id</code> | <code>string</code> | ID of the root post in the conversation, returned as a string. |
| <code>data.pinned.quoted.sensitive</code> | <code>boolean</code> | Whether the post is marked as potentially sensitive when a value is available. |
| <code>data.pinned.quoted.bookmarks</code> | <code>integer</code> | Reported bookmark count. |
| <code>data.pinned.quoted.favorites</code> | <code>integer</code> | Reported like count. |
| <code>data.pinned.quoted.quotes</code> | <code>integer</code> | Reported quote count. |
| <code>data.pinned.quoted.replies</code> | <code>integer</code> | Reported reply count. |
| <code>data.pinned.quoted.retweets</code> | <code>integer</code> | Reported repost count. |
| <code>data.pinned.quoted.views</code> | <code>string</code> | Reported view count as a numeric string. It can be null for some embedded posts. |
| <code>data.pinned.quoted.author</code> | <code>object</code> | Public profile information for the author of this post. |
| <code>data.pinned.quoted.author.rest_id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.pinned.quoted.author.name</code> | <code>string</code> | Account display name. |
| <code>data.pinned.quoted.author.screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.pinned.quoted.author.avatar</code> | <code>string</code> | Profile avatar URL. |
| <code>data.pinned.quoted.author.followers_count</code> | <code>integer</code> | Reported number of accounts following the author. |
| <code>data.pinned.quoted.author.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.pinned.quoted.media</code> | <code>object</code> | Media attachments. Responses can use an empty array when no attachment is present. |
| <code>data.pinned.quoted.media.video</code> | <code>array</code> | Attached videos. |
| <code>data.pinned.quoted.media.video[]</code> | <code>object</code> | - |
| <code>data.pinned.quoted.media.video[].id</code> | <code>string</code> | Video attachment ID, returned as a string. |
| <code>data.pinned.quoted.media.video[].media_url_https</code> | <code>string</code> | HTTPS URL for the video preview image. |
| <code>data.pinned.quoted.media.video[].duration</code> | <code>integer</code> | Video duration in milliseconds. |
| <code>data.pinned.quoted.media.video[].aspect_ratio</code> | <code>array</code> | Video aspect ratio as an array of two integers. |
| <code>data.pinned.quoted.media.video[].aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.pinned.quoted.media.video[].original_info</code> | <code>object</code> | Dimensions and crop information for the original video. |
| <code>data.pinned.quoted.media.video[].original_info.height</code> | <code>integer</code> | Original video height in pixels. |
| <code>data.pinned.quoted.media.video[].original_info.width</code> | <code>integer</code> | Original video width in pixels. |
| <code>data.pinned.quoted.media.video[].variants</code> | <code>array</code> | Available video playback variants. |
| <code>data.pinned.quoted.media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.pinned.quoted.media.video[].variants[].url</code> | <code>string</code> | Playback URL for this video variant. |
| <code>data.pinned.quoted.media.video[].variants[].content_type</code> | <code>string</code> | Media type for this video variant. |
| <code>data.pinned.quoted.media.video[].variants[].bitrate</code> | <code>integer</code> | Bitrate reported for this video variant. |
| <code>data.timeline</code> | <code>array</code> | Timeline entries returned for the requested account and page. |
| <code>data.timeline[]</code> | <code>object</code> | One timeline entry, which can contain an original, reply, quote, or repost. |
| <code>data.timeline[].tweet_id</code> | <code>string</code> | X post ID, returned as a string. |
| <code>data.timeline[].created_at</code> | <code>string</code> | Time when the post was published. |
| <code>data.timeline[].text</code> | <code>string</code> | Text of the post. |
| <code>data.timeline[].lang</code> | <code>string</code> | Language code reported for the post. |
| <code>data.timeline[].conversation_id</code> | <code>string</code> | ID of the root post in the conversation, returned as a string. |
| <code>data.timeline[].reply_to</code> | <code>string</code> | ID of the post directly replied to, returned as a string when available. |
| <code>data.timeline[].sensitive</code> | <code>boolean &#124; null</code> | Whether the post is marked as potentially sensitive when a value is available. |
| <code>data.timeline[].source</code> | <code>string &#124; null</code> | Posting client label, which can be an HTML link or null. |
| <code>data.timeline[].bookmarks</code> | <code>integer</code> | Reported bookmark count. |
| <code>data.timeline[].favorites</code> | <code>integer</code> | Reported like count. |
| <code>data.timeline[].quotes</code> | <code>integer</code> | Reported quote count. |
| <code>data.timeline[].replies</code> | <code>integer</code> | Reported reply count. |
| <code>data.timeline[].retweets</code> | <code>integer</code> | Reported repost count. |
| <code>data.timeline[].views</code> | <code>string</code> | Reported view count as a numeric string. It can be null for some embedded posts. |
| <code>data.timeline[].author</code> | <code>object</code> | Public profile information for the author of this post. |
| <code>data.timeline[].author.rest_id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.timeline[].author.name</code> | <code>string</code> | Account display name. |
| <code>data.timeline[].author.screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.timeline[].author.avatar</code> | <code>string</code> | Profile avatar URL. |
| <code>data.timeline[].author.followers_count</code> | <code>integer</code> | Reported number of accounts following the author. |
| <code>data.timeline[].author.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.timeline[].entities</code> | <code>object &#124; array</code> | Entities found in the post text, such as links and mentions. An empty array can represent no entities. |
| <code>data.timeline[].entities.urls</code> | <code>array</code> | Links found in the post text. |
| <code>data.timeline[].entities.urls[]</code> | <code>object</code> | - |
| <code>data.timeline[].entities.urls[].url</code> | <code>string</code> | Short link appearing in the post text. |
| <code>data.timeline[].entities.urls[].expanded_url</code> | <code>string</code> | Expanded destination URL for the link. |
| <code>data.timeline[].entities.urls[].display_url</code> | <code>string</code> | Readable link label shown with the post. |
| <code>data.timeline[].entities.user_mentions</code> | <code>array</code> | Accounts mentioned in the post. |
| <code>data.timeline[].entities.user_mentions[]</code> | <code>object</code> | - |
| <code>data.timeline[].entities.user_mentions[].id_str</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.timeline[].entities.user_mentions[].name</code> | <code>string</code> | Account display name. |
| <code>data.timeline[].entities.user_mentions[].screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.timeline[].entities.symbols</code> | <code>array</code> | Financial symbol entities returned for the post. |
| <code>data.timeline[].entities.symbols[]</code> | <code>object</code> | - |
| <code>data.timeline[].entities.symbols[].text</code> | <code>string</code> | Text of the symbol label. |
| <code>data.timeline[].media</code> | <code>object &#124; array</code> | Media attachments. Responses can use an empty array when no attachment is present. |
| <code>data.timeline[].media.photo</code> | <code>array</code> | Attached images. |
| <code>data.timeline[].media.photo[]</code> | <code>object</code> | - |
| <code>data.timeline[].media.photo[].id</code> | <code>string</code> | Image attachment ID, returned as a string. |
| <code>data.timeline[].media.photo[].media_url_https</code> | <code>string</code> | HTTPS URL for the image. |
| <code>data.timeline[].media.photo[].sizes</code> | <code>object</code> | Image dimensions in pixels. |
| <code>data.timeline[].media.photo[].sizes.h</code> | <code>integer</code> | Image height in pixels. |
| <code>data.timeline[].media.photo[].sizes.w</code> | <code>integer</code> | Image width in pixels. |
| <code>data.timeline[].media.video</code> | <code>array</code> | Attached videos. |
| <code>data.timeline[].media.video[]</code> | <code>object</code> | - |
| <code>data.timeline[].media.video[].id</code> | <code>string</code> | Video attachment ID, returned as a string. |
| <code>data.timeline[].media.video[].media_url_https</code> | <code>string</code> | HTTPS URL for the video preview image. |
| <code>data.timeline[].media.video[].duration</code> | <code>integer</code> | Video duration in milliseconds. |
| <code>data.timeline[].media.video[].aspect_ratio</code> | <code>array</code> | Video aspect ratio as an array of two integers. |
| <code>data.timeline[].media.video[].aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.timeline[].media.video[].original_info</code> | <code>object</code> | Dimensions and crop information for the original video. |
| <code>data.timeline[].media.video[].original_info.height</code> | <code>integer</code> | Original video height in pixels. |
| <code>data.timeline[].media.video[].original_info.width</code> | <code>integer</code> | Original video width in pixels. |
| <code>data.timeline[].media.video[].variants</code> | <code>array</code> | Available video playback variants. |
| <code>data.timeline[].media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.timeline[].media.video[].variants[].url</code> | <code>string</code> | Playback URL for this video variant. |
| <code>data.timeline[].media.video[].variants[].content_type</code> | <code>string</code> | Media type for this video variant. |
| <code>data.timeline[].media.video[].variants[].bitrate</code> | <code>integer</code> | Bitrate reported for this video variant. |
| <code>data.timeline[].retweeted</code> | <code>object</code> | Reference to the original post for a repost. |
| <code>data.timeline[].retweeted.id</code> | <code>string</code> | ID of the original post for this repost. It matches retweeted_tweet.tweet_id when both are returned. |
| <code>data.timeline[].retweeted_tweet</code> | <code>object</code> | Original post embedded in a repost entry. |
| <code>data.timeline[].retweeted_tweet.tweet_id</code> | <code>string</code> | X post ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.created_at</code> | <code>string</code> | Time when the post was published. |
| <code>data.timeline[].retweeted_tweet.text</code> | <code>string</code> | Text of the post. |
| <code>data.timeline[].retweeted_tweet.lang</code> | <code>string</code> | Language code reported for the post. |
| <code>data.timeline[].retweeted_tweet.conversation_id</code> | <code>string</code> | ID of the root post in the conversation, returned as a string. |
| <code>data.timeline[].retweeted_tweet.sensitive</code> | <code>boolean &#124; null</code> | Whether the post is marked as potentially sensitive when a value is available. |
| <code>data.timeline[].retweeted_tweet.bookmarks</code> | <code>integer</code> | Reported bookmark count. |
| <code>data.timeline[].retweeted_tweet.favorites</code> | <code>integer</code> | Reported like count. |
| <code>data.timeline[].retweeted_tweet.quotes</code> | <code>integer</code> | Reported quote count. |
| <code>data.timeline[].retweeted_tweet.replies</code> | <code>integer</code> | Reported reply count. |
| <code>data.timeline[].retweeted_tweet.retweets</code> | <code>integer</code> | Reported repost count. |
| <code>data.timeline[].retweeted_tweet.views</code> | <code>string</code> | Reported view count as a numeric string. It can be null for some embedded posts. |
| <code>data.timeline[].retweeted_tweet.author</code> | <code>object</code> | Public profile information for the author of this post. |
| <code>data.timeline[].retweeted_tweet.author.rest_id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.author.name</code> | <code>string</code> | Account display name. |
| <code>data.timeline[].retweeted_tweet.author.screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.timeline[].retweeted_tweet.author.avatar</code> | <code>string</code> | Profile avatar URL. |
| <code>data.timeline[].retweeted_tweet.author.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.timeline[].retweeted_tweet.entities</code> | <code>object &#124; array</code> | Entities found in the post text, such as links and mentions. An empty array can represent no entities. |
| <code>data.timeline[].retweeted_tweet.entities.urls</code> | <code>array</code> | Links found in the post text. |
| <code>data.timeline[].retweeted_tweet.entities.urls[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.entities.urls[].url</code> | <code>string</code> | Short link appearing in the post text. |
| <code>data.timeline[].retweeted_tweet.entities.urls[].expanded_url</code> | <code>string</code> | Expanded destination URL for the link. |
| <code>data.timeline[].retweeted_tweet.entities.urls[].display_url</code> | <code>string</code> | Readable link label shown with the post. |
| <code>data.timeline[].retweeted_tweet.entities.user_mentions</code> | <code>array</code> | Accounts mentioned in the post. |
| <code>data.timeline[].retweeted_tweet.entities.user_mentions[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.entities.user_mentions[].id_str</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.entities.user_mentions[].name</code> | <code>string</code> | Account display name. |
| <code>data.timeline[].retweeted_tweet.entities.user_mentions[].screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.timeline[].retweeted_tweet.entities.media</code> | <code>array</code> | Media link entities returned for the post. |
| <code>data.timeline[].retweeted_tweet.entities.media[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.entities.media[].id_str</code> | <code>string</code> | Media entity ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.entities.media[].media_url_https</code> | <code>string</code> | HTTPS URL associated with the media entity. |
| <code>data.timeline[].retweeted_tweet.entities.media[].type</code> | <code>string</code> | Media entity type returned for this attachment. |
| <code>data.timeline[].retweeted_tweet.entities.media[].video_info</code> | <code>object</code> | Playback metadata provided with the video entity. |
| <code>data.timeline[].retweeted_tweet.entities.media[].video_info.duration_millis</code> | <code>integer</code> | Video duration in milliseconds. |
| <code>data.timeline[].retweeted_tweet.entities.symbols</code> | <code>array</code> | Financial symbol entities returned for the post. |
| <code>data.timeline[].retweeted_tweet.entities.symbols[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.entities.symbols[].text</code> | <code>string</code> | Text of the symbol label. |
| <code>data.timeline[].retweeted_tweet.media</code> | <code>object &#124; array</code> | Media attachments. Responses can use an empty array when no attachment is present. |
| <code>data.timeline[].retweeted_tweet.media.photo</code> | <code>array</code> | Attached images. |
| <code>data.timeline[].retweeted_tweet.media.photo[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.media.photo[].id</code> | <code>string</code> | Image attachment ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.media.photo[].media_url_https</code> | <code>string</code> | HTTPS URL for the image. |
| <code>data.timeline[].retweeted_tweet.media.photo[].sizes</code> | <code>object</code> | Image dimensions in pixels. |
| <code>data.timeline[].retweeted_tweet.media.photo[].sizes.h</code> | <code>integer</code> | Image height in pixels. |
| <code>data.timeline[].retweeted_tweet.media.photo[].sizes.w</code> | <code>integer</code> | Image width in pixels. |
| <code>data.timeline[].retweeted_tweet.media.video</code> | <code>array</code> | Attached videos. |
| <code>data.timeline[].retweeted_tweet.media.video[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.media.video[].id</code> | <code>string</code> | Video attachment ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.media.video[].media_url_https</code> | <code>string</code> | HTTPS URL for the video preview image. |
| <code>data.timeline[].retweeted_tweet.media.video[].duration</code> | <code>integer</code> | Video duration in milliseconds. |
| <code>data.timeline[].retweeted_tweet.media.video[].aspect_ratio</code> | <code>array</code> | Video aspect ratio as an array of two integers. |
| <code>data.timeline[].retweeted_tweet.media.video[].aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.timeline[].retweeted_tweet.media.video[].original_info</code> | <code>object</code> | Dimensions and crop information for the original video. |
| <code>data.timeline[].retweeted_tweet.media.video[].original_info.height</code> | <code>integer</code> | Original video height in pixels. |
| <code>data.timeline[].retweeted_tweet.media.video[].original_info.width</code> | <code>integer</code> | Original video width in pixels. |
| <code>data.timeline[].retweeted_tweet.media.video[].variants</code> | <code>array</code> | Available video playback variants. |
| <code>data.timeline[].retweeted_tweet.media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.media.video[].variants[].url</code> | <code>string</code> | Playback URL for this video variant. |
| <code>data.timeline[].retweeted_tweet.media.video[].variants[].content_type</code> | <code>string</code> | Media type for this video variant. |
| <code>data.timeline[].retweeted_tweet.media.video[].variants[].bitrate</code> | <code>integer</code> | Bitrate reported for this video variant. |
| <code>data.timeline[].retweeted_tweet.quoted</code> | <code>object</code> | Post quoted by this entry, when available. |
| <code>data.timeline[].retweeted_tweet.quoted.tweet_id</code> | <code>string</code> | X post ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.quoted.created_at</code> | <code>string</code> | Time when the post was published. |
| <code>data.timeline[].retweeted_tweet.quoted.text</code> | <code>string</code> | Text of the post. |
| <code>data.timeline[].retweeted_tweet.quoted.lang</code> | <code>string</code> | Language code reported for the post. |
| <code>data.timeline[].retweeted_tweet.quoted.conversation_id</code> | <code>string</code> | ID of the root post in the conversation, returned as a string. |
| <code>data.timeline[].retweeted_tweet.quoted.sensitive</code> | <code>boolean &#124; null</code> | Whether the post is marked as potentially sensitive when a value is available. |
| <code>data.timeline[].retweeted_tweet.quoted.bookmarks</code> | <code>integer</code> | Reported bookmark count. |
| <code>data.timeline[].retweeted_tweet.quoted.favorites</code> | <code>integer</code> | Reported like count. |
| <code>data.timeline[].retweeted_tweet.quoted.quotes</code> | <code>integer</code> | Reported quote count. |
| <code>data.timeline[].retweeted_tweet.quoted.replies</code> | <code>integer</code> | Reported reply count. |
| <code>data.timeline[].retweeted_tweet.quoted.retweets</code> | <code>integer</code> | Reported repost count. |
| <code>data.timeline[].retweeted_tweet.quoted.views</code> | <code>string</code> | Reported view count as a numeric string. It can be null for some embedded posts. |
| <code>data.timeline[].retweeted_tweet.quoted.author</code> | <code>object</code> | Public profile information for the author of this post. |
| <code>data.timeline[].retweeted_tweet.quoted.author.rest_id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.quoted.author.name</code> | <code>string</code> | Account display name. |
| <code>data.timeline[].retweeted_tweet.quoted.author.screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.timeline[].retweeted_tweet.quoted.author.avatar</code> | <code>string</code> | Profile avatar URL. |
| <code>data.timeline[].retweeted_tweet.quoted.author.followers_count</code> | <code>integer</code> | Reported number of accounts following the author. |
| <code>data.timeline[].retweeted_tweet.quoted.author.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.timeline[].retweeted_tweet.quoted.media</code> | <code>object &#124; array</code> | Media attachments. Responses can use an empty array when no attachment is present. |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo</code> | <code>array</code> | Attached images. |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo[].id</code> | <code>string</code> | Image attachment ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo[].media_url_https</code> | <code>string</code> | HTTPS URL for the image. |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo[].sizes</code> | <code>object</code> | Image dimensions in pixels. |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo[].sizes.h</code> | <code>integer</code> | Image height in pixels. |
| <code>data.timeline[].retweeted_tweet.quoted.media.photo[].sizes.w</code> | <code>integer</code> | Image width in pixels. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video</code> | <code>array</code> | Attached videos. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[]</code> | <code>object</code> | - |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].id</code> | <code>string</code> | Video attachment ID, returned as a string. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].media_url_https</code> | <code>string</code> | HTTPS URL for the video preview image. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].duration</code> | <code>integer</code> | Video duration in milliseconds. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].aspect_ratio</code> | <code>array</code> | Video aspect ratio as an array of two integers. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].original_info</code> | <code>object</code> | Dimensions and crop information for the original video. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].original_info.height</code> | <code>integer</code> | Original video height in pixels. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].original_info.width</code> | <code>integer</code> | Original video width in pixels. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].variants</code> | <code>array</code> | Available video playback variants. |
| <code>data.timeline[].retweeted_tweet.quoted.media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.timeline[].quoted</code> | <code>object</code> | Post quoted by this entry, when available. |
| <code>data.timeline[].quoted.tweet_id</code> | <code>string</code> | X post ID, returned as a string. |
| <code>data.timeline[].quoted.created_at</code> | <code>string</code> | Time when the post was published. |
| <code>data.timeline[].quoted.text</code> | <code>string</code> | Text of the post. |
| <code>data.timeline[].quoted.lang</code> | <code>string</code> | Language code reported for the post. |
| <code>data.timeline[].quoted.conversation_id</code> | <code>string</code> | ID of the root post in the conversation, returned as a string. |
| <code>data.timeline[].quoted.sensitive</code> | <code>boolean &#124; null</code> | Whether the post is marked as potentially sensitive when a value is available. |
| <code>data.timeline[].quoted.bookmarks</code> | <code>integer</code> | Reported bookmark count. |
| <code>data.timeline[].quoted.favorites</code> | <code>integer</code> | Reported like count. |
| <code>data.timeline[].quoted.quotes</code> | <code>integer</code> | Reported quote count. |
| <code>data.timeline[].quoted.replies</code> | <code>integer</code> | Reported reply count. |
| <code>data.timeline[].quoted.retweets</code> | <code>integer</code> | Reported repost count. |
| <code>data.timeline[].quoted.views</code> | <code>string &#124; null</code> | Reported view count as a numeric string. It can be null for some embedded posts. |
| <code>data.timeline[].quoted.author</code> | <code>object</code> | Public profile information for the author of this post. |
| <code>data.timeline[].quoted.author.rest_id</code> | <code>string</code> | X account ID, returned as a string. |
| <code>data.timeline[].quoted.author.name</code> | <code>string</code> | Account display name. |
| <code>data.timeline[].quoted.author.screen_name</code> | <code>string</code> | Account username without the @ prefix. |
| <code>data.timeline[].quoted.author.avatar</code> | <code>string &#124; null</code> | Profile avatar URL. |
| <code>data.timeline[].quoted.author.followers_count</code> | <code>integer</code> | Reported number of accounts following the author. |
| <code>data.timeline[].quoted.author.blue_verified</code> | <code>boolean</code> | Blue check status reported for this account. |
| <code>data.timeline[].quoted.media</code> | <code>object &#124; array</code> | Media attachments. Responses can use an empty array when no attachment is present. |
| <code>data.timeline[].quoted.media.photo</code> | <code>array</code> | Attached images. |
| <code>data.timeline[].quoted.media.photo[]</code> | <code>object</code> | - |
| <code>data.timeline[].quoted.media.photo[].id</code> | <code>string</code> | Image attachment ID, returned as a string. |
| <code>data.timeline[].quoted.media.photo[].media_url_https</code> | <code>string</code> | HTTPS URL for the image. |
| <code>data.timeline[].quoted.media.photo[].sizes</code> | <code>object</code> | Image dimensions in pixels. |
| <code>data.timeline[].quoted.media.photo[].sizes.h</code> | <code>integer</code> | Image height in pixels. |
| <code>data.timeline[].quoted.media.photo[].sizes.w</code> | <code>integer</code> | Image width in pixels. |
| <code>data.timeline[].quoted.media.video</code> | <code>array</code> | Attached videos. |
| <code>data.timeline[].quoted.media.video[]</code> | <code>object</code> | - |
| <code>data.timeline[].quoted.media.video[].id</code> | <code>string</code> | Video attachment ID, returned as a string. |
| <code>data.timeline[].quoted.media.video[].media_url_https</code> | <code>string</code> | HTTPS URL for the video preview image. |
| <code>data.timeline[].quoted.media.video[].duration</code> | <code>integer</code> | Video duration in milliseconds. |
| <code>data.timeline[].quoted.media.video[].aspect_ratio</code> | <code>array</code> | Video aspect ratio as an array of two integers. |
| <code>data.timeline[].quoted.media.video[].aspect_ratio[]</code> | <code>integer</code> | - |
| <code>data.timeline[].quoted.media.video[].original_info</code> | <code>object</code> | Dimensions and crop information for the original video. |
| <code>data.timeline[].quoted.media.video[].original_info.height</code> | <code>integer</code> | Original video height in pixels. |
| <code>data.timeline[].quoted.media.video[].original_info.width</code> | <code>integer</code> | Original video width in pixels. |
| <code>data.timeline[].quoted.media.video[].variants</code> | <code>array</code> | Available video playback variants. |
| <code>data.timeline[].quoted.media.video[].variants[]</code> | <code>object</code> | - |
| <code>data.timeline[].quoted.media.video[].variants[].url</code> | <code>string</code> | Playback URL for this video variant. |
| <code>data.timeline[].quoted.media.video[].variants[].content_type</code> | <code>string</code> | Media type for this video variant. |
| <code>data.timeline[].quoted.media.video[].variants[].bitrate</code> | <code>integer</code> | Bitrate reported for this video variant. |

</div>

## Response Example

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

