Aller au contenu
Twexapi
Français
Esc
naviguerouvrir⌘Japerçu

Récupération groupée d'articles X

Récupération groupée d’articles X.

POST/x/article
Autorisation API
AuthorizationBearer token · headerrequis
Jeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Corps de la requête
requisapplication/json
Array of string
string
Réponses
200A list of objects containing detailed article data for each valid ID provided.
codeintegerrequis
Code d'état HTTP (200 indique le succès)
msgstringrequis
Message de réponse (ex. 'success')
dataXArticleModel[]requis
Données principales renvoyées par l'API
Afficher les propriétés
Array of XArticleModel
tweet_idstring | any
ID unique du tweet
Afficher les propriétés
Any of:
string
string
any
any
full_textstring | any
Texte intégral du tweet
Afficher les propriétés
Any of:
string
string
any
any
created_atstring | any
Date et heure de création (UTC)
Afficher les propriétés
Any of:
string
string
any
any
langstring | any
The language
Afficher les propriétés
Any of:
string
string
any
any
bookmark_countinteger | any
Nombre de signets
Afficher les propriétés
Any of:
integer
integer
any
any
favorite_countinteger | any
Nombre de likes
Afficher les propriétés
Any of:
integer
integer
any
any
reply_countinteger | any
Nombre de réponses
Afficher les propriétés
Any of:
integer
integer
any
any
retweet_countinteger | any
Nombre de retweets
Afficher les propriétés
Any of:
integer
integer
any
any
quote_countinteger | any
Quote count
Afficher les propriétés
Any of:
integer
integer
any
any
view_countstring | any
Nombre de vues
Afficher les propriétés
Any of:
string
string
any
any
view_count_statestring | any
View count state
Afficher les propriétés
Any of:
string
string
any
any
conversation_idstring | any
Conversation ID
Afficher les propriétés
Any of:
string
string
any
any
author_user_idstring | any
Author user ID
Afficher les propriétés
Any of:
string
string
any
any
author_screen_namestring | any
Nom d'utilisateur de l'auteur (sans @)
Afficher les propriétés
Any of:
string
string
any
any
author_namestring | any
Nom affiché de l'auteur
Afficher les propriétés
Any of:
string
string
any
any
author_is_blue_verifiedboolean | any
Whether author is blue verified
Afficher les propriétés
Any of:
boolean
boolean
any
any
author_verifiedboolean | any
Whether author is verified
Afficher les propriétés
Any of:
boolean
boolean
any
any
author_is_verified_organization_affiliateboolean | any
Whether author is verified organization
Afficher les propriétés
Any of:
boolean
boolean
any
any
article_idstring | any
Article ID
Afficher les propriétés
Any of:
string
string
any
any
article_titlestring | any
Article title
Afficher les propriétés
Any of:
string
string
any
any
article_preview_textstring | any
Article preview text
Afficher les propriétés
Any of:
string
string
any
any
article_summary_textstring | any
Article summary text
Afficher les propriétés
Any of:
string
string
any
any
article_cover_image_urlstring | any
Article cover image URL
Afficher les propriétés
Any of:
string
string
any
any
article_blocksArticleBlock[]
Article formatting blocks
Afficher les propriétés
Array of ArticleBlock
typestringrequis
The type of the article block.
textstringrequis
Texte du message
entityRangesArticleBlockRange[]
The entity ranges of the article block.
Afficher les propriétés
Array of ArticleBlockRange
keyintegerrequis
The key of the entity range.
lengthintegerrequis
The length of the entity range.
offsetintegerrequis
The offset of the entity range.
article_plain_textstring | any
Article plain text
Afficher les propriétés
Any of:
string
string
any
any
article_markdownstring | any
Article markdown
Afficher les propriétés
Any of:
string
string
any
any
article_media_image_urlsstring[]
Article media image URLs
422Erreur de validation des paramètres
detailValidationError[]
Afficher les propriétés
Array of ValidationError
locstring | integer[]requis
Afficher les propriétés
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequis
Message de réponse (ex. 'success')
typestringrequis
inputany
ctxobject
Console interactivePOST
Console interactive / Tester l'APIPOST
Live 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"
]'
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"
      ]
    }
  ]
}