# Twitter — Search Posts

Get X Posts data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as query, and retrieve structured data including pagination cursor, returned credits charged field, returned credits remaining field, returned legacy field, and returned rest id field for content research and account lookup, and integration reference.

Documentation: https://openany.si/x/x-scrapecreators-posts/46f652f9-1515-45be-bbc9-7a5d6ebb3c9d/
API ID: 46f652f9-1515-45be-bbc9-7a5d6ebb3c9d
Provider: scrapecreators
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/search/posts
Page update time: 2026-12-03T02:53:42.069Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:41.533Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## X Twitter — Search Posts API

Find public X/Twitter post URLs through Google Search, then returns their details using the same public post scraper as /v1/twitter/tweet. Provide query in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `cursor` | Pagination cursor |
| `credits_charged` | Returned credits charged field |
| `credits_remaining` | Returned credits remaining field |
| `posts[].legacy` | Returned legacy field |
| `posts[].rest_id` | Returned rest id field |
| `posts[].url` | Returned URL |
| `posts[].views` | Returned views field |
| `query` | Search query |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Twitter — Search Posts request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Keyword or phrase to search for in Google-indexed public X/Twitter posts"
        },
        "cursor": {
          "type": "string",
          "description": "Pass the cursor returned by the previous response. Supported page cursors are 1 through 11. A null response cursor means there are no more pages."
        }
      },
      "required": [
        "query"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "cursor": {
      "type": "string"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "legacy": {
            "type": "object",
            "properties": {
              "bookmark_count": {
                "type": "integer"
              },
              "created_at": {
                "type": "string"
              },
              "favorite_count": {
                "type": "integer"
              },
              "full_text": {
                "type": "string"
              },
              "quote_count": {
                "type": "integer"
              },
              "reply_count": {
                "type": "integer"
              },
              "retweet_count": {
                "type": "integer"
              }
            }
          },
          "rest_id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "views": {
            "type": "object",
            "properties": {
              "count": {
                "type": "string"
              },
              "state": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "query": {
      "type": "string"
    },
    "success": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/search/posts?query=ai+agents' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "credits_charged": 1,
  "credits_remaining": 100,
  "cursor": "2",
  "posts": [
    {
      "legacy": {
        "bookmark_count": 7,
        "created_at": "Thu Oct 01 18:50:27 +0000 2026",
        "favorite_count": 11,
        "full_text": "AI agents are checking your pricing page before your buyers do. Your analytics never shows it.\n\nHere's how to catch them and fix it:\n\n(Analysed and learned from my products)\n\n1. open your analytics or server logs and pull the last 30 days\n\n2. filter by user agent: GPTBot, https://t.co/HO75r0e5Am",
        "quote_count": 0,
        "reply_count": 4,
        "retweet_count": 0
      },
      "rest_id": "2105732089685348719",
      "url": "https://x.com/code_rams/status/2105732089685348719",
      "views": {
        "count": "780",
        "state": "EnabledWithCount"
      }
    }
  ],
  "query": "ai agents",
  "success": true
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide query in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
cursor is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- justoneapi: https://openany.si/x/x-scrapecreators-posts/e6845524-bdd2-446a-88be-f2f5b5933da9/
- scrapecreators: https://openany.si/x/x-scrapecreators-posts/46f652f9-1515-45be-bbc9-7a5d6ebb3c9d/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
