Twitter / X
Query public users, posts, communities and trends.
Twitter / X 操作
按 ID 获取推文
在已知推文的数字 ID 时获取特定推文的完整内容(一次调用可接受多个 ID)。用它把搜索、时间线或回复中出现的 ID 扩展为完整对象。返回文本、作者、来源客户端、语言、创建时间以及互动数据(点赞、转发、回复、引用、书签、浏览)。如果还没有 ID,请从 get_twitter_tweet_advanced_search 开始。
计费参考
- 计量方式:按结果数量计量。
- 参考请求估算:0.0075 美元。
- 最低成本基准:0.00015 美元。
- 参考客户倍率:1.0。不得对已结算的客户金额再次应用。
- 成本基准不构成最终客户价格,即使为零也不例外。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
查询参数
- 类型: stringtweet
_ids
响应
- 类型: object200
成功响应
- 类型: integercode
Integer numbers.
- 类型: stringmsg
- 类型: stringstatus
- 类型: array object[] · ResponseD824635D04Cf_Tweet[]tweets
- author类型: object · ResponseD824635D04Cf_User
- automated类型: string
By - can类型: boolean
Dm - cover类型: string
Picture - created类型: string
At - description类型: string
- favourites类型: integer
Count Integer numbers.
- followers类型: integer
Integer numbers.
- following类型: integer
Integer numbers.
- has类型: boolean
Custom Timelines - id类型: string
- is类型: boolean
Automated - is类型: boolean
Blue Verified - is类型: boolean
Translator - location类型: string
- media类型: integer
Count Integer numbers.
- message类型: string
- name类型: string
- pinned类型: array string[]
Tweet Ids - possibly类型: boolean
Sensitive - profile类型: string
Picture - statuses类型: integer
Count Integer numbers.
- type类型: string
- unavailable类型: boolean
- unavailable类型: string
Reason - url类型: string
- user类型: string
Name - verified类型: string
Type - withheld类型: array string[]
In Countries
- bookmark类型: integer
Count Integer numbers.
- conversation类型: string
Id - created类型: string
At - display类型: array integer[]
Text Range - entities类型: object
- hashtags类型: array object[]
- indices类型: array integer[]
- text类型: string
- urls类型: array object[]
- display类型: string
_url - expanded类型: string
_url - indices类型: array integer[]
- url类型: string
- user类型: array object[]
_mentions - id类型: string
_str - name类型: string
- screen类型: string
_name
- id类型: string
- in类型: string
Reply To Id - in类型: string
Reply To User Id - in类型: string
Reply To Username - is类型: boolean
Limited Reply - is类型: boolean
Reply - lang类型: string
- like类型: integer
Count Integer numbers.
- quote类型: integer
Count Integer numbers.
- quoted类型: string
_tweet - reply类型: integer
Count Integer numbers.
- retweet类型: integer
Count Integer numbers.
- retweeted类型: string
_tweet - source类型: string
- text类型: string
- type类型: string
- url类型: string
- view类型: integer
Count Integer numbers.
application/json - 400
无法处理该请求。请检查请求参数。
- 401
需要有效的 Felo API 密钥。
- 402
由于未满足计费要求,请求无法继续。
- 403
该账户无权执行此操作。
- 429
已达到请求或支出限额。
- 502
服务无法完成该请求。
- 503
API 或计费服务暂时不可用。
- 504
服务在处理请求时超时。
- default
错误响应;上游透传响应可能采用提供方格式
application/json
Request Example for get/v1/beta/twitter/tweets
curl https://openapi.felo.ai/v1/beta/twitter/tweets \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"tweets": [
{
"type": "string",
"id": "string",
"url": "string",
"text": "string",
"source": "string",
"retweetCount": 1,
"replyCount": 1,
"likeCount": 1,
"quoteCount": 1,
"viewCount": 1,
"createdAt": "string",
"lang": "string",
"bookmarkCount": 1,
"isReply": true,
"inReplyToId": "string",
"conversationId": "string",
"displayTextRange": [
1
],
"inReplyToUserId": "string",
"inReplyToUsername": "string",
"author": {
"type": "string",
"userName": "string",
"url": "string",
"id": "string",
"name": "string",
"isBlueVerified": true,
"verifiedType": "string",
"profilePicture": "string",
"coverPicture": "string",
"description": "string",
"location": "string",
"followers": 1,
"following": 1,
"canDm": true,
"createdAt": "string",
"favouritesCount": 1,
"hasCustomTimelines": true,
"isTranslator": true,
"mediaCount": 1,
"statusesCount": 1,
"withheldInCountries": [
"string"
],
"possiblySensitive": true,
"pinnedTweetIds": [
"string"
],
"isAutomated": true,
"automatedBy": "string",
"unavailable": true,
"message": "string",
"unavailableReason": "string"
},
"entities": {
"hashtags": [
{
"indices": [
1
],
"text": "string"
}
],
"urls": [
{
"display_url": "string",
"expanded_url": "string",
"indices": [
1
],
"url": "string"
}
],
"user_mentions": [
{
"id_str": "string",
"name": "string",
"screen_name": "string"
}
]
},
"quoted_tweet": "string",
"retweeted_tweet": "string",
"isLimitedReply": true
}
],
"status": "string",
"msg": "string",
"code": 1
}