X Search Timeline

2.07 credits/call
ae_x_search_timeline

Search X (Twitter) by keyword. Inputs: - keyword (required string): The keyword to search for. - search_type (optional string): Search category. Defaults to Top; documented options are Top, Latest, Media, People, and Lists. - cursor (optional string): Omit for the first page. For a subsequent page, use the cursor returned by the previous response. Returns: Search results directly in the response data. The detailed result structure is not specified; use pagination information when it is provided. Search matches are not limited to post text: they may involve quoted posts, linked article metadata, media, and account signals. A result can therefore be relevant even when its text does not contain the keyword. Filtering solely for a literal text match may remove valid results.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
cursorstringNo游标/Cursor—
keywordstringYes搜索关键字/Search Keyword—
search_typestringNo搜索类型/Search TypeTop

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_search_timeline' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "keyword": "OIIAOIIA spinning cat",
    "search_type": "TOP"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "status": "ok",
    "timeline": [
      {
        "bookmarks": 73,
        "created_at": "Wed Sep 30 09:45:00 +0000 2026",
        "display_text_range": [
          0
        ],
        "favorites": 335,
        "lang": "en",
        "type": "tweet"
      }
    ]
  },
  "docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_search_timeline_api_v1_twitter_web_fetch_search_timeline_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "request_id": "29478001-1c45-4760-9889-bfde52d27269"
}

This example shows part of the response. Copied content is valid JSON.