Obtenir les articles d’un utilisateur par page
Fetch one page of X Articles by screen_name. Requires only a TwexAPI Bearer key. The request body is optional; omitted or null count defaults to 20, and integer values are clamped to 1–20. Pass next_cursor from the previous response to continue. The current implementation returns a continuation cursor only when at least count articles were parsed and the upstream supplied a cursor; a short or empty page therefore ends pagination. A missing user or exhausted result quota returns an empty page.
Retour à la référence API
/Article Endpoints
POST
/twitter/{screen_name}/articles/pageAutorisation API
AuthorizationBearer token · headerrequisJeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Paramètres de chemin
screen_namestringrequisX username with or without @.
matches \S
Corps de la requête
application/jsonAny of:
object
countinteger | anyOmitted or null uses 20. Values below 1 are clamped to 1 and values above 20 to 20.
default: 20
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anynext_cursorstring | anyAfficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyany
anyRéponses
200Success
codeintegerrequismsgstringrequisdataXArticleModel[]requisAfficher les propriétésMasquer les propriétés
Array of
XArticleModeltweet_idstring | anyID unique du tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyfull_textstring | anyTexte intégral du tweet
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anycreated_atstring | anyDate et heure de création (UTC)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anylangstring | anyThe language
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anybookmark_countinteger | anyNombre de signets
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyfavorite_countinteger | anyNombre de likes
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyreply_countinteger | anyNombre de réponses
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyretweet_countinteger | anyNombre de retweets
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyquote_countinteger | anyQuote count
Afficher les propriétésMasquer les propriétés
Any of:
integer
integerany
anyview_countstring | anyNombre de vues
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyview_count_statestring | anyView count state
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyconversation_idstring | anyConversation ID
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyauthor_user_idstring | anyAuthor user ID
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyauthor_screen_namestring | anyNom d'utilisateur de l'auteur (sans @)
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyauthor_namestring | anyNom affiché de l'auteur
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyauthor_is_blue_verifiedboolean | anyWhether author is blue verified
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyauthor_verifiedboolean | anyWhether author is verified
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyauthor_is_verified_organization_affiliateboolean | anyWhether author is verified organization
Afficher les propriétésMasquer les propriétés
Any of:
boolean
booleanany
anyarticle_idstring | anyArticle ID
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_titlestring | anyArticle title
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_preview_textstring | anyArticle preview text
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_summary_textstring | anyArticle summary text
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_cover_image_urlstring | anyArticle cover image URL
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_blocksArticleBlock[]Article formatting blocks
Afficher les propriétésMasquer les propriétés
Array of
ArticleBlocktypestringrequisThe type of the article block.
textstringrequisTexte du message
entityRangesArticleBlockRange[]The entity ranges of the article block.
Afficher les propriétésMasquer les propriétés
Array of
ArticleBlockRangekeyintegerrequisThe key of the entity range.
lengthintegerrequisThe length of the entity range.
offsetintegerrequisThe offset of the entity range.
article_plain_textstring | anyArticle plain text
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_markdownstring | anyArticle markdown
Afficher les propriétésMasquer les propriétés
Any of:
string
stringany
anyarticle_media_image_urlsstring[]Article media image URLs
has_next_pagebooleanrequisnext_cursorstring | anyrequisAfficher les propriétésMasquer les propriétés
Any of:
string
stringany
any403Authentication or credit access denied
codeintegerrequismsgstringrequisdataany[] | anyrequisAfficher les propriétésMasquer les propriétés
Any of:
any[]
Array of
anyanyany
any422Invalid request
codeintegerrequismsgstringrequisdataany[] | anyrequisAfficher les propriétésMasquer les propriétés
Any of:
any[]
Array of
anyanyany
any500Upstream or server error
codeintegerrequismsgstringrequisdataany[] | anyrequisAfficher les propriétésMasquer les propriétés
Any of:
any[]
Array of
anyanyany
any⚡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
⚙️Paramètres (1)
📝Corps de la requêteapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
Requête
curl -X POST "https://api.twexapi.io/twitter/example_user/articles/page" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"count": 20,
"next_cursor": null
}'const response = await fetch("https://api.twexapi.io/twitter/example_user/articles/page", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"count": 20,
"next_cursor": null
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/example_user/articles/page",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"count": 20,
"next_cursor": None
},
)Réponse
{
"code": 200,
"msg": "success",
"data": [],
"has_next_page": false,
"next_cursor": null
}{
"code": 403,
"msg": "Authentication or credit access denied",
"data": []
}{
"code": 422,
"msg": "Invalid request",
"data": []
}{
"code": 500,
"msg": "Upstream or server error",
"data": []
}