# SocialFetch X Post Search

> SocialFetch X Post Search is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.028/call, status unknown (last checked 2026-09-14, last successful call 2026-08-04).

Search public X (Twitter) posts by keyword with optional filters for date range, language, section, and engagement metrics.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/twitter/search
- Price: $0.028/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-08-04
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 5
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-x-post-search-05a32922
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bTXX1MVKJ3G1w49Bi5c5j

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability socialfetch-x-post-search-05a32922
```

Example prompt: Search X for the latest posts about 'AI regulation' from the past week, show me up to 20 results in English with at least 50 likes, sorted by most recent.

## When to prefer this

Use this endpoint when you need to search public X posts by keyword, phrase, or hashtag, especially when filtering by date range, language, engagement thresholds, or content section (top, latest, people, photos, videos). Prefer this over profile-based endpoints when the goal is topic or keyword discovery rather than a specific account's content.

## Known failure modes

- Empty results if no posts match the query or filters
- Rate limiting or quota exceeded errors if too many calls are made
- Invalid date format returns a validation error
- Cursor expiration causes pagination to fail
- Language or section enum mismatch returns a 400 error
- Query too long (over 512 chars) returns a validation error

## How this service works

Search X posts or people by query.

## Output

A paginated list of public X posts matching the search query, including post content, author info, engagement counts (likes, retweets, replies), and an opaque cursor for fetching the next page of results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 20,
       "minimum": 1,
       "description": "Optional page size (1–20). Best-effort; the actual page size may differ."
      },
      "query": {
       "type": "string",
       "maxLength": 512,
       "minLength": 1,
       "description": "Search query for public posts on X."
      },
      "cursor": {
       "type": "string",
       "minLength": 1,
       "description": "Opaque pagination cursor returned by a previous response."
      },
      "endDate": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Optional end date filter in YYYY-MM-DD format."
      },
      "section": {
       "enum": [
        "top",
        "latest",
        "people",
        "photos",
        "videos"
       ],
       "type": "string",
       "default": "top",
       "description": "Search section: `top` (default), `latest`, `people`, `photos`, or `videos`."
      },
      "language": {
       "enum": [
        "en",
        "es",
        "fr",
        "de",
        "it",
        "pt",
        "ru",
        "zh",
        "ja",
        "ko",
        "ar",
        "bg",
        "hr",
        "cs",
        "da",
        "nl",
        "et",
        "fi",
        "el",
        "hu",
        "id",
        "ga",
        "lv",
        "lt",
        "no",
        "pl",
        "ro",
        "sk",
        "sl",
        "sv",
        "tr",
        "uk",
        "vi",
        "cy",
        "zu"
       ],
       "type": "string",
       "description": "Optional language filter."
      },
      "minLikes": {
       "type": "integer",
       "maximum": 9007199254740991,
       "minimum": 0,
       "description": "Optional minimum like count filter."
      },
      "startDate": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Optional start date filter in YYYY-MM-DD format."
      },
      "minReplies": {
       "type": "integer",
       "maximum": 9007199254740991,
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/socialfetch-x-post-search-05a32922/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
