Récupération groupée d'articles X
Récupération groupée d’articles X.
Retour à la référence API
/Article Endpoints
POST
/x/articleAutorisation API
AuthorizationBearer token · headerrequisJeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Corps de la requête
requisapplication/jsonArray of
stringstringRéponses
200A list of objects containing detailed article data for each valid ID provided.
codeintegerrequisCode d'état HTTP (200 indique le succès)
msgstringrequisMessage de réponse (ex. 'success')
dataXArticleModel[]requisDonnées principales renvoyées par l'API
Afficher 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
422Erreur 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/x/article" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '[
"1803006263529541838",
"1803006263529541839"
]'const response = await fetch("https://api.twexapi.io/x/article", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify([
"1803006263529541838",
"1803006263529541839"
])
});import requests
response = requests.post(
"https://api.twexapi.io/x/article",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json=[
"1803006263529541838",
"1803006263529541839"
],
)Réponse
{
"code": 0,
"msg": "string",
"data": [
{
"tweet_id": "string",
"full_text": "string",
"created_at": "string",
"lang": "string",
"bookmark_count": 0,
"favorite_count": 0,
"reply_count": 0,
"retweet_count": 0,
"quote_count": 0,
"view_count": "string",
"view_count_state": "string",
"conversation_id": "string",
"author_user_id": "string",
"author_screen_name": "string",
"author_name": "string",
"author_is_blue_verified": true,
"author_verified": true,
"author_is_verified_organization_affiliate": true,
"article_id": "string",
"article_title": "string",
"article_preview_text": "string",
"article_summary_text": "string",
"article_cover_image_url": "string",
"article_blocks": [
{
"type": "string",
"text": "string",
"entityRanges": [
{
"key": 0,
"length": 0,
"offset": 0
}
]
}
],
"article_plain_text": "string",
"article_markdown": "string",
"article_media_image_urls": [
"string"
]
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}