The API reference moved here from eksis.io/developers.
Channels

Search posts on X

GET
/v1/channels/{channelId}/x/search

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.

Authorization

headerAuthorizationBearer <token>

Send your key as Authorization: Bearer eksis_sk_....

Path Parameters

channelId*string

Query Parameters

q*string

X search syntax, e.g. rust build cache lang:id -is:retweet.

Length1 <= length <= 512
limit?integer
Range10 <= value <= 30
Default10

Response Body

The matching posts.

application/json
  1. 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  }}