social/x

Search public posts on X (Twitter) by keyword. Returns a normalized Post page.

Keyword search over public posts on X (Twitter). Results are normalized to the Post object; page with next_cursor. The server picks the provider and fails over; the response names the provider that served it.

Fixed price: 1 credits per successful call, whichever provider serves it.

post/v2/ops/social.x.post.search

Request

  • Base URL
    https://api.agentkey.app
  • URL
    https://api.agentkey.app/v2/ops/social.x.post.search
  • Auth
    HTTP bearer

Request body

cursorstring

Opaque pagination cursor from the previous response's next_cursor. Send the same query parameters with it.

fieldsstring[]

Projection: keep only these dotted paths of data, e.g. ["items.id", "items.text"].

include_rawboolean

Attach the raw upstream payload as raw (not a stable contract; truncated above 256 KB).

limitinteger

Maximum number of posts to return.

providerstring

Shorthand for routing.only = [provider].

querystring required

Search query. X advanced operators work: from:user, to:user, since:YYYY-MM-DD, until:YYYY-MM-DD, "exact phrase", #hashtag, filter:images.

sort'latest' | 'top'

latest = most recent first; top = most engaged first.

Response

Success envelope

credits_chargednumber required

Credits charged for this call (the method's fixed price).

opstring required

Method name.

op_versioninteger required

Method version that served the call.

providerstring required

Provider that actually served the call.

rawunknown
raw_truncatedboolean
request_idstring required

Correlation id; quote it in support requests.

took_msinteger required
unsupported_fieldsstring[] required

Output paths this provider structurally does not supply; such fields are null for a different reason than 'missing on this record'.

Changes

No recorded changes to this operation across all 1 revision of this API.