Twitter / X
Query public users, posts, communities and trends.
Lấy ngữ cảnh chuỗi tweet
Dựng lại cuộc hội thoại xung quanh một tweet. Chấp nhận phản hồi hoặc tweet gốc và trả về chuỗi tweet xung quanh, phân trang bằng cursor. Dùng khi một tweet thiếu ngữ cảnh và bạn cần chuỗi tweet cha để diễn giải chính xác. Trả về tweet trong tweets cùng has_next_page và next_cursor. Nếu chỉ cần các phản hồi bên dưới một bài đăng, dùng get_twitter_tweet_replies_v2.
Tham chiếu giá
- Đo lường: Số lượng kết quả được đo lường.
- Ước tính tham chiếu cho mỗi yêu cầu: USD 0.00555.
- Cơ sở chi phí tối thiểu: USD 0.00015.
- Hệ số khách hàng tham chiếu: 1.0. Không áp dụng lại cho số tiền khách hàng đã quyết toán.
- Cơ sở chi phí không xác lập giá cuối cùng cho khách hàng, kể cả khi bằng 0.
Chỉ là siêu dữ liệu tham chiếu, không phải báo giá cho tài khoản, mức giá được bảo đảm hay hạn mức chi tiêu. Tín dụng tài nguyên không phải tín dụng Felo. Khoản phí cuối cùng tuân theo bản ghi thanh toán của Felo.
- Kiểu: stringcursor
- Kiểu: stringtweet
Id
- Kiểu: object · ResponseCbc4F8806E32_TweetThreadContextResponse200
Phản hồi thành công
- Kiểu: booleanhas
_next _page - Kiểu: stringmsg
- Kiểu: stringnext
_cursor - Kiểu: string enumstatusgiá trị
- success
- error
- Kiểu: array object[] · ResponseCbc4F8806E32_Tweet[]tweets
- authorKiểu: object · ResponseCbc4F8806E32_User
- automatedKiểu: string
By - canKiểu: boolean
Dm - coverKiểu: string
Picture - createdKiểu: string
At - descriptionKiểu: string
- favouritesKiểu: integer
Count Integer numbers.
- followersKiểu: integer
Integer numbers.
- followingKiểu: integer
Integer numbers.
- hasKiểu: boolean
Custom Timelines - idKiểu: string
- isKiểu: boolean
Automated - isKiểu: boolean
Blue Verified - isKiểu: boolean
Translator - locationKiểu: string
- mediaKiểu: integer
Count Integer numbers.
- messageKiểu: string
- nameKiểu: string
- pinnedKiểu: array string[]
Tweet Ids - possiblyKiểu: boolean
Sensitive - profileKiểu: string
Picture - statusesKiểu: integer
Count Integer numbers.
- typeKiểu: string
- unavailableKiểu: boolean
- unavailableKiểu: string
Reason - urlKiểu: string
- userKiểu: string
Name - verifiedKiểu: string
Type - withheldKiểu: array string[]
In Countries
- bookmarkKiểu: integer
Count Integer numbers.
- conversationKiểu: string
Id - createdKiểu: string
At - displayKiểu: array integer[]
Text Range - entitiesKiểu: object · ResponseCbc4F8806E32_Entities
- hashtagsKiểu: array object[]
- indicesKiểu: array integer[]
- textKiểu: string
- urlsKiểu: array object[]
- displayKiểu: string
_url - expandedKiểu: string
_url - indicesKiểu: array integer[]
- urlKiểu: string
- userKiểu: array object[]
_mentions - idKiểu: string
_str - nameKiểu: string
- screenKiểu: string
_name
- idKiểu: string
- inKiểu: string
Reply To Id - inKiểu: string
Reply To User Id - inKiểu: string
Reply To Username - isKiểu: boolean
Limited Reply - isKiểu: boolean
Reply - langKiểu: string
- likeKiểu: integer
Count Integer numbers.
- quoteKiểu: integer
Count Integer numbers.
- quotedKiểu: string
_tweet - replyKiểu: integer
Count Integer numbers.
- retweetKiểu: integer
Count Integer numbers.
- retweetedKiểu: string
_tweet - sourceKiểu: string
- textKiểu: string
- typeKiểu: string
- urlKiểu: string
- viewKiểu: integer
Count Integer numbers.
application/json - 400
Không thể xử lý yêu cầu. Hãy kiểm tra các tham số yêu cầu.
- 401
Cần có khóa API Felo hợp lệ.
- 402
Không thể tiếp tục yêu cầu vì chưa đáp ứng yêu cầu thanh toán.
- 403
Tài khoản không được phép thực hiện thao tác này.
- 429
Đã đạt giới hạn yêu cầu hoặc giới hạn chi tiêu.
- 502
Dịch vụ không thể hoàn tất yêu cầu.
- 503
API hoặc dịch vụ thanh toán tạm thời không khả dụng.
- 504
Dịch vụ đã hết thời gian chờ khi xử lý yêu cầu.
- default
Phản hồi lỗi; phản hồi chuyển tiếp từ thượng nguồn có thể dùng định dạng của nhà cung cấp
application/json
curl https://openapi.felo.ai/v1/beta/twitter/tweet/thread_context \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"has_next_page": true,
"next_cursor": "string",
"status": "success",
"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
}
],
"msg": "string"
}