跳到文档正文
浏览和搜索
本页内容

回放已存储的事件

按从新到旧返回已存储的事件。可以重复 handle 参数,或使用逗号分隔的值。

GET/api/history

授权

  • Authorizationstringheader必填使用 TweetStream API 密钥进行 Bearer 认证:Bearer <key>。

查询参数

  • handlestring可选监控的 handle。可重复传入,或使用逗号分隔的列表。
  • handlesstring可选handle 的别名。可重复传入,或使用逗号分隔的列表。
  • handle[]string[]可选handle 的数组形式别名。
  • handles[]string[]可选handles 的数组形式别名。
  • cursorstring可选上一页 History 返回的稳定 cursor。
  • startDatestring可选
  • endDatestring可选
  • limitinteger可选
  • typeenum<string>可选

响应字段

  • dataobject[]必填
    • bodystring必填
    • contentobject必填
    • messageTypeenum<string>必填
    • metaobject可选
    • receivedTimestring必填
    • timestring必填
    • tweetIdstring必填
    • twitterHandlestring | null必填
    • twitterIdstring必填
  • metadataobject必填
    • countinteger必填
    • endDatestring可选
    • handlestring可选
    • handlesstring[]可选
    • nextCursorstring | null必填
    • startDatestring可选
    • typeenum<string>可选

响应

  • 200成功
  • 400请求无效
  • 401API key 缺失或无效
  • 403已认证的账号无法使用此功能
  • 429已达到速率限制
  • 500请求未能完成