Channels
Search posts on X
GET
Public posts from the last seven days that match an X search query, read through this X channel. Each post carries replyIntentUrl, a link that opens X with a reply ready for the person to send, and replyViaApi, true only when the post mentions this account: X lets apps reply only to those. Costs 1 X credit per 3 posts returned; the same query within 15 minutes is answered from a cache for free.
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
channelId*stringq*stringX search syntax, e.g. rust build cache lang:id -is:retweet.
Length
1 <= length <= 512limit?integerRange
10 <= value <= 30Default
10The matching posts.
application/json- response
data?curl -X GET 'https://api.eksis.io/v1/channels/string/x/search?q=string' \ -H 'Authorization: Bearer eksis_sk_...'{ "data": { "posts": [ { "id": "string", "text": "string", "createdAt": "2019-08-24T14:15:22Z", "lang": "string", "authorId": "string", "metrics": { "likes": 0, "replies": 0, "reposts": 0, "quotes": 0, "views": 0 }, "isReply": true, "permalink": "string", "replyIntentUrl": "string", "replyViaApi": true } ], "searchedAt": "2019-08-24T14:15:22Z", "creditsCharged": 0 }}