---
title: "Search X posts"
method: GET
path: "/socials/twitter/search"
tags: ["Socials"]
---

# Search X posts

`GET /socials/twitter/search`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/socials/twitter/search`
- Auth: API key in header `Authorization`

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.

## Query parameters

- `query` string, required
- `account_id` string
- `limit` integer
- `since_id` string
- `until_id` string
- `start_time` string
- `end_time` string
- `cursor` string
- `sort_order` 'recency' | 'relevancy'

## Response `200`

Matching X posts

- object
  - `object` 'list', required
  - `data` object[], required
    - `id` string: X post id.
    - `text` string
    - `created` string: Publication time (ISO 8601).
    - `conversation_id` string: Root post of the thread this belongs to.
    - `in_reply_to_tweet_id` string, nullable: The post this replies to, if any.
    - `lang` string
    - `author` object
    - `like_count` integer
    - `reply_count` integer
    - `retweet_count` integer
    - `quote_count` integer
    - `platform` string
  - `has_more` boolean, required
  - `next_cursor` string
  - `url` string

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `409`: Conflict
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
