Obtenir tweets et réponses paginés
Obtenir tweets et réponses paginés.
Retour à la référence API
/All Tweets Replies Endpoints
POST
/twitter/tweets-replies/pageAutorisation API
AuthorizationBearer token · headerrequisJeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Corps de la requête
requisapplication/jsonnext_cursorstring | anyCurseur pour récupérer la page suivante
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyscreen_namestringrequisNom d'utilisateur Twitter (sans @)
Réponses
200Current page data (up to 20 items) and pagination metadata (has_next_page, next_cursor).
codeintegerCode d'état HTTP (200 indique le succès)
default: 200
msgstringMessage de réponse (ex. 'success')
default: "success"
dataTweetModel | any[]requisDonnées principales renvoyées par l'API
Afficher les propriétésMasquer les propriétés
Array of
TweetModel | anyAny of:
TweetModel
tweet_idstringrequisID unique du tweet
is_paid_promotionboolean | anyIndicates whether the content or user is associated with a paid promotion
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anytextstringrequisTexte du message
created_atstring | anyDate et heure de création (UTC)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycreated_at_datetimestring | anyThe ISO 8601 format of the creation date
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anybookmark_countinteger | anyNombre de signets
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anybookmarkedboolean | anyIndicates if the authenticating user has bookmarked this Tweet
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anycommunity_notestring | anyCommunity note associated with the Tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyedit_tweet_idsstring[]A list of Tweet IDs for each edit of the Tweet
default: []
editable_until_msecsstring | anyTimestamp for when the Tweet is no longer editable
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyedits_remainingstring | anyNumber of edits remaining for the Tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyfavorite_countinteger | anyNombre de likes
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfavoritedboolean | anyIndicates if the authenticating user has liked this Tweet
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyfull_textstring | anyTexte intégral du tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyhas_cardboolean | anyIndicates if the Tweet has a card attached
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyhas_community_notesboolean | anyIndicates if the Tweet has community notes
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyhashtagsstring[]A list of hashtags mentioned in the Tweet
default: []
cashtagsstring[]A list of cashtags (stock symbols) mentioned in the Tweet
default: []
idstring | anyThe unique identifier for the Tweet (same as tweet_id)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyin_reply_tostring | anyID of the Tweet this is a reply to
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyin_reply_to_user_idstring | anyID of the user this is a reply to
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyin_reply_to_screen_namestring | anyScreen name of the user this is a reply to
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_edit_eligibleboolean | anyIndicates if the Tweet is eligible for editing
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyis_quote_statusboolean | anyIndicates if this Tweet is a quote of another Tweet
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyquoted_status_id_strstring | anyThe unique identifier for the Tweet that this is a quote of
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_translatableboolean | anyIndicates if the Tweet is translatable
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anylangstring | anyThe BCP 47 language identifier for the Tweet's content
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anymediaMediaModel[]A list of media objects (photos, videos) attached to the Tweet
default: []
Afficher les propriétésMasquer les propriétés
Array of
MediaModelidstringrequisMedia ID
typestringrequisType of media (e.g., photo, video)
display_urlstring | anyURL of the media to display
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyexpanded_urlstring | anyExpanded URL for the media
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anymedia_urlstring | anyDirect URL to the media file
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyurlstring | anyt.co URL for the media
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyheightinteger | anyHeight of the media in pixels
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anywidthinteger | anyWidth of the media in pixels
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfeaturesobject | anyFeatures of the media
Afficher les propriétésMasquer les propriétés
Any of:
object
objectany
anyoriginal_infoobject | anyOriginal information about the media
Afficher les propriétésMasquer les propriétés
Any of:
object
objectany
anysizesobject | anyAvailable sizes of the media
Afficher les propriétésMasquer les propriétés
Any of:
object
objectany
anysource_status_idstring | anySource tweet ID if the media is a retweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anysource_user_idstring | anySource user ID if the media is a retweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyduration_millisinteger | anyDuration of the video in milliseconds
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyaspect_ratiointeger[] | anyAspect ratio of the video
Afficher les propriétésMasquer les propriétés
Any of:
integer[]
Array of
integerintegerany
anyvideo_infoobject | anyDetailed video information
Afficher les propriétésMasquer les propriétés
Any of:
object
objectany
anystreamsStreamModel[]List of available video streams
default: []
Afficher les propriétésMasquer les propriétés
Array of
StreamModelurlstring | anyURL of the video stream
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anybitrateinteger | anyBitrate of the video stream in bps
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anycontent_typestring | anyContent type of the stream
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyplacestring | anyThe location associated with the Tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anypollstring | anyA poll attached to the Tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anypossibly_sensitiveboolean | anyIndicates if the Tweet may contain sensitive content
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anypossibly_sensitive_editableboolean | anyIndicates if the sensitive content flag is editable
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyquoteTweetModel | anyThe Tweet object being quoted
Afficher les propriétésMasquer les propriétés
Any of:
TweetModel
Circular reference to
TweetModel.any
anyquote_countinteger | anyNumber of times this Tweet has been quoted
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyrelated_tweetsTweetModel[]A list of related Tweets
default: []
Afficher les propriétésMasquer les propriétés
Array of
TweetModelCircular reference to
TweetModel.repliesTweetModel[]A list of replies to this Tweet
default: []
Afficher les propriétésMasquer les propriétés
Array of
TweetModelCircular reference to
TweetModel.reply_countinteger | anyNombre de réponses
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyreply_toTweetModel | anyThe Tweet object this is a reply to
Afficher les propriétésMasquer les propriétés
Any of:
TweetModel
Circular reference to
TweetModel.any
anyretweet_countinteger | anyNombre de retweets
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyretweeted_tweetTweetModel | anyThe original Tweet object if this is a retweet
Afficher les propriétésMasquer les propriétés
Any of:
TweetModel
Circular reference to
TweetModel.any
anythreadTweetModel[] | anyThe conversation thread ID
Afficher les propriétésMasquer les propriétés
Any of:
TweetModel[]
Array of
TweetModelCircular reference to
TweetModel.any
anythumbnail_titlestring | anyTitle for the thumbnail in a card
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anythumbnail_urlstring | anyURL for the thumbnail in a card
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyurlsstring[]A list of URLs included in the Tweet
default: []
userUserModel | anyThe user who posted the Tweet
Afficher les propriétésMasquer les propriétés
Any of:
UserModel
idstringrequisUser ID
namestringrequisNom de l'utilisateur
screen_namestringrequisNom d'utilisateur Twitter (sans @)
created_atstring | anyDate et heure de création (UTC)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycreated_at_datetimestring | anyAccount creation datetime in ISO format
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycan_dmboolean | anyWhether the user can be direct messaged
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anycan_media_tagboolean | anyWhether the user can be tagged in media
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anydefault_profileboolean | anyWhether the user has a default profile
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anydefault_profile_imageboolean | anyWhether the user has a default profile image
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anydescriptionstring | anyBiographie du profil
default: ""
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anydescription_urlsstring[]List of URLs found in the user's description
default: []
urlsurlModel[] | anyList of URLs found in the user's profile
Afficher les propriétésMasquer les propriétés
Any of:
urlModel[]
Array of
urlModelurlstringrequisURL
expanded_urlstring | anyExpanded URL
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anydisplay_urlstring | anyDisplay URL
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyany
anyfast_followers_countinteger | anyCount of fast followers
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfavourites_countinteger | anyNumber of tweets the user has liked
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfollowers_countinteger | anyNombre total d'abonnés
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfollowing_countinteger | anyNombre total d'abonnements
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyhas_custom_timelinesboolean | anyWhether the user has custom timelines
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyis_blue_verifiedboolean | anyBlue verification status
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyverified_typestring | anyVerification badge type when not blue-only: blue, business, government, etc.
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_verifiedboolean | anyTrue if the account has any verification badge (blue, business, government, or legacy verified)
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyprofile_image_shapestring | anyProfile image shape (Circle or Square; Square often indicates business/government)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyis_translatorboolean | anyWhether the user is a translator
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anylisted_countinteger | anyNumber of public lists the user is a member of
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anylocationstring | anyUser's location
default: ""
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anymedia_countinteger | anyNumber of media tweets posted by the user
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anynormal_followers_countinteger | anyCount of normal followers
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anypinned_tweet_idsstring[]List of pinned tweet IDs
default: []
possibly_sensitiveboolean | anyWhether the user's profile may contain sensitive content
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyprofile_banner_urlstring | anyURL of the user's profile banner
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyprofile_image_urlstring | anyURL of the user's profile image
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyprotectedboolean | anyWhether the user's tweets are protected
default: false
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anystatuses_countinteger | anyNumber of tweets posted by the user
default: 0
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyany
anyview_countstring | anyNombre de vues
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyview_count_statestring | anyState of the view count
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anystatusobject | anyRaw status dictionary
Afficher les propriétésMasquer les propriétés
Any of:
object
objectany
anytarget_countinteger | anyThe target count of items requested, for context
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyany
anyhas_next_pagebooleanrequisIndique si une page suivante est disponible
next_cursorstring | anyCurseur pour récupérer la page suivante
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
any422Erreur de validation des paramètres
detailValidationError[]Afficher les propriétésMasquer les propriétés
Array of
ValidationErrorlocstring | integer[]requisAfficher les propriétésMasquer les propriétés
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequisMessage de réponse (ex. 'success')
typestringrequisinputanyctxobject⚡Console interactivePOST
⚡Console interactive / Tester l'APIPOSTLive Console
🌐Serveur cible :
https://api.twexapi.io● Prêt pour la production
🔍
Lecture de données publiques (Clé TwexAPI uniquement, aucun Cookie Twitter)
Ce point d'accès consulte des données publiques — aucun compte ni Cookie Twitter requis ! Entrez simplement votre clé TwexAPI (Bearer Token) ci-dessous pour tester.
🔑Autorisation API
📝Corps de la requêteapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
Requête
curl -X POST "https://api.twexapi.io/twitter/tweets-replies/page" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"next_cursor": "",
"screen_name": "elonmusk"
}'const response = await fetch("https://api.twexapi.io/twitter/tweets-replies/page", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"next_cursor": "",
"screen_name": "elonmusk"
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/tweets-replies/page",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"next_cursor": "",
"screen_name": "elonmusk"
},
)Réponse
{
"code": 200,
"msg": "success",
"data": [
{
"tweet_id": "1803006263529541838",
"is_paid_promotion": true,
"text": "string",
"created_at": "Mon Jun 17 03:51:48 +0000 2024",
"created_at_datetime": "2024-06-17T03:51:48.000Z",
"bookmark_count": 0,
"bookmarked": false,
"community_note": "string",
"edit_tweet_ids": [],
"editable_until_msecs": "string",
"edits_remaining": "string",
"favorite_count": 0,
"favorited": false,
"full_text": "string",
"has_card": false,
"has_community_notes": false,
"hashtags": [
"AI",
"Python"
],
"cashtags": [
"$TSLA"
],
"id": "string",
"in_reply_to": "string",
"in_reply_to_user_id": "string",
"in_reply_to_screen_name": "string",
"is_edit_eligible": false,
"is_quote_status": false,
"quoted_status_id_str": "string",
"is_translatable": false,
"lang": "en",
"media": [],
"place": "string",
"poll": "string",
"possibly_sensitive": true,
"possibly_sensitive_editable": true,
"quote": {},
"quote_count": 0,
"related_tweets": [],
"replies": [],
"reply_count": 0,
"reply_to": {},
"retweet_count": 0,
"retweeted_tweet": {},
"thread": [
{}
],
"thumbnail_title": "string",
"thumbnail_url": "string",
"urls": [],
"user": {
"id": "1717001045992251392",
"name": "Cryptoklepto",
"screen_name": "CK_Cryptoklepto",
"created_at": "Mon Oct 28 02:32:47 +0000 2024",
"created_at_datetime": "2024-10-28T02:32:47.000Z",
"can_dm": false,
"can_media_tag": false,
"default_profile": false,
"default_profile_image": false,
"description": "",
"description_urls": [],
"urls": [
{
"url": "https://www.google.com",
"expanded_url": "https://www.google.com",
"display_url": "www.google.com"
}
],
"fast_followers_count": 0,
"favourites_count": 0,
"followers_count": 0,
"following_count": 0,
"has_custom_timelines": false,
"is_blue_verified": false,
"verified_type": "government",
"is_verified": false,
"profile_image_shape": "Circle",
"is_translator": false,
"listed_count": 0,
"location": "New York, USA",
"media_count": 0,
"normal_followers_count": 0,
"pinned_tweet_ids": [],
"possibly_sensitive": false,
"profile_banner_url": "string",
"profile_image_url": "string",
"protected": false,
"statuses_count": 0
},
"view_count": "string",
"view_count_state": "string",
"status": {},
"target_count": 0
}
],
"has_next_page": true,
"next_cursor": "1234567890"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}