Socials

Search public X posts from the last 7 days. The query is passed to X unchanged, so its operators work (from:user, to:user, -is:retweet, conversation_id:123, "exact phrase", boolean OR). Standalone operators like is:/has:/lang: must be combined with a keyword or from: clause. Use this to find mentions to answer; reply by creating a post with platform_data.twitter.replyToTweetId set to the id you found. Rate limit: 300 requests per 15-minute window per connected account.

get/socials/twitter/search

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Query parameters

query, string required

X search query, max 512 characters.

account_id, string

Connected X account to act as (sacct_ prefix id). Optional when one X account is connected; required when there are several, and a call without it answers 422 with code account_id_required, listing each account's id.

limit, integer

Results per page, 10-100. X rejects anything below 10.

since_id, string

Only posts newer than this numeric post id — the cursor for a polling loop.

until_id, string

Only posts older than this numeric post id.

start_time, string

Oldest UTC timestamp, inclusive (ISO 8601). Within the last 7 days.

end_time, string

Newest UTC timestamp, exclusive (ISO 8601). Within the last 7 days.

cursor, string

Opaque pagination cursor from a previous response's next_cursor.

sort_order, 'recency' | 'relevancy'

recency (default) or relevancy.

Response

Matching X posts

object required
object, 'list' required
data, object[] required
has_more, boolean required
next_cursor, string
url, string

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision