OpenAny
Get API keyAPI Key
APIScrapersSocial Media

x logo
X Post Search API

Search X Post via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 3 implementations (anyapi and TikHub), pass parameters such as query, and retrieve structured data including item collection, returned cost usd field, returned hint field, returned openany cost field, and returned next cursor field for content research and account lookup, and integration reference.

Selected price
$0.0006 / callPublished pricing
Sellers / APIs
2 / 3
Requests · 30d
1.9KSelected implementation · last 30 days
Success rate · 30d
92.59%Selected implementation · last 30 days
USE THIS API

X Post Search API

Prepare your request, then continue with your agent.

Pricing

$0.0006 / call

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
X Post Search API

X / Twitter Search API

Search for X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Provide query in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs query: fields, max_items, summary, jq, max_cost_usd; body: allowFallbacks, cursor, ignoreSources, limit, preferLatencyUnderMs, query, queryType, requireFields, requireSinglePage, source
Selected implementation anyapi · X / Twitter Search
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

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
items Item collection
costUsd Returned cost usd field
hint Returned hint field
openany_cost Returned openany cost field
output.data.items Item collection
output.data.nextCursor Returned next cursor field
output.found Returned found field
provider Returned provider field

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/twitter.search' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "query": "openai"
}'

Request and Response Examples

The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.

Published X / Twitter Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Search query using X (Twitter) advanced-search syntax. IMPORTANT: bare terms are ANDed - a tweet must contain EVERY word, so a list of loosely related keywords matches nothing; use one short phrase or OR between alternatives (e.g. 'anyapi OR getanyapi'). When an operator follows an OR list, put the list in parentheses, e.g. '(anyapi OR getanyapi) -filter:replies': without them X applies the operator to the last alternative only, so such a query still runs as X reads it and the response's hint carries the corrected query. You can embed X advanced-search operators directly in the query to filter results: from:username and to:username (author or recipient), since:YYYY-MM-DD and until:YYYY-MM-DD (date range), min_faves:N, min_retweets:N, min_replies:N (engagement floors), "exact phrase", -term to exclude, filter:media and filter:links and -filter:replies (content filters), lang:en, near:city, and geocode:lat,long,radius. Examples: 'from:OpenAI', 'AI agents min_faves:500 -filter:replies', 'nvidia since:2026-01-01 until:2026-03-01'. A query with no matches returns an empty items array; prefer the fewest words that identify the topic.
Optional parameters (15)
Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of search results.
ignoreSources array
Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
Page size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.
Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
Which posts to return: 'Latest' (newest first, the default), 'Top' (most popular), 'Photos' (newest posts with images), or 'Videos' (newest posts with video). Photos and Videos search your query as written with filter:images or filter:videos added after it, so they cost the same as a Latest search.
requireFields array
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
Set true to get up to limit results in one response instead of provider-native pages, served by a bulk provider when needed.
source array
Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Current
X / Twitter Search · POST · View API reference
$0.0006 / call1.9K
92.59%successP502.37s
X / Twitter User Search · POST · View API reference
$0.0007 / call—Select to load statistics
—successP50—
Twitter: fetch search timeline (web) · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · anyapiUSD / call
Pricing
$0.0006

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 9. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/anyapi/v1/run/twitter.search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryJSON request bodybodystringYes

Search query using X (Twitter) advanced-search syntax. IMPORTANT: bare terms are ANDed - a tweet must contain EVERY word, so a list of loosely related keywords matches nothing; use one short phrase or OR between alternatives (e.g. 'anyapi OR getanyapi'). When an operator follows an OR list, put the list in parentheses, e.g. '(anyapi OR getanyapi) -filter:replies': without them X applies the operator to the last alternative only, so such a query still runs as X reads it and the response's hint carries the corrected query. You can embed X advanced-search operators directly in the query to filter results: from:username and to:username (author or recipient), since:YYYY-MM-DD and until:YYYY-MM-DD (date range), min_faves:N, min_retweets:N, min_replies:N (engagement floors), "exact phrase", -term to exclude, filter:media and filter:links and -filter:replies (content filters), lang:en, near:city, and geocode:lat,long,radius. Examples: 'from:OpenAI', 'AI agents min_faves:500 -filter:replies', 'nvidia since:2026-01-01 until:2026-03-01'. A query with no matches returns an empty items array; prefer the fewest words that identify the topic.

max_cost_usdURL query parametersquerystringNo

Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.

Idempotency-KeyRequest headersheadersstringNo

Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.

minLength: 1 · maxLength: 255

allowFallbacksJSON request bodybodybooleanNo

Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.

cursorJSON request bodybodystringNo

Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of search results.

ignoreSourcesJSON request bodybodyarrayNo

Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.

Nested fields and variants

body.ignoreSources[] · Array item · string

limitJSON request bodybodyintegerNo

Page size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.

minimum: 1 · maximum: 50

preferLatencyUnderMsJSON request bodybodyintegerNo

Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.

minimum: 1

queryTypeJSON request bodybodystringNo

Which posts to return: 'Latest' (newest first, the default), 'Top' (most popular), 'Photos' (newest posts with images), or 'Videos' (newest posts with video). Photos and Videos search your query as written with filter:images or filter:videos added after it, so they cost the same as a Latest search.

enum: "Latest", "Top", "Photos", "Videos"

requireFieldsJSON request bodybodyarrayNo

Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.

Nested fields and variants

body.requireFields[] · Array item · string

requireSinglePageJSON request bodybodybooleanNo

Set true to get up to limit results in one response instead of provider-native pages, served by a bulk provider when needed.

sourceJSON request bodybodyarrayNo

Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.

Nested fields and variants

body.source[] · Array item · string

Required markers inside a nested object or variant apply when that object or variant is used.

Response controls (optional)These options change the returned content without changing request cost.ExpandCollapse
ParameterLocationTypeRequiredDescription
fieldsURL query parametersquerystringNo

Keep selected fields on each result item; separate field paths with commas.

Rules and examples

Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.

max_itemsURL query parametersqueryintegerNo

Limit the number of result rows returned; single-record responses are unchanged.

Rules and examples

Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.

minimum: 0

summaryURL query parametersquerybooleanNo

Return the response structure and size information instead of the full data.

Rules and examples

Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.

jqURL query parametersquerystringNo

Reshape the result envelope with a jq expression.

Rules and examples

Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.

Response structure

Inferred from examples
  • costUsdnumber
  • hintstring
  • itemsinteger
  • openany_costinteger
  • outputobject
    • dataobject
      • itemsobject[]
        • authorFollowersinteger
        • authorIdstring
        • authorImagestring
        • authorNamestring
        • authorUsernamestring
        • authorVerifiedboolean
        • bookmarkCountinteger
        • conversationIdstring
        • createdUtcinteger
        • idstring
        • inReplyToIdnull | string
        • isReplyboolean
        • langstring
        • likeCountinteger
        • mediaobject[]
          • heightinteger
          • typestring
          • urlstring
          • widthinteger
        • quoteCountinteger
        • replyCountinteger
        • retweetCountinteger
        • textstring
        • urlstring
        • viewCountnull | integer
      • nextCursorstring
    • foundboolean
  • providerstring
  • replayedboolean
  • resultIdstring
  • sourceobject
    • artworkKeystring
    • idstring
    • kindstring
    • namestring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Only requests matching a listed pricing variant are accepted. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Variant · 指定来源且关闭回退时的原厂基础费$0.000600Request conditionsselected_source eq ["anonymous-capybara"] AND allow_fallbacks eq false—

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.000600.

Pricing parameters and defaults
[
  {
    "default": [
      "anonymous-capybara"
    ],
    "id": "selected_source",
    "location": "body",
    "pointer": "/source",
    "required": false,
    "type": "array"
  },
  {
    "default": false,
    "id": "allow_fallbacks",
    "location": "body",
    "pointer": "/allowFallbacks",
    "required": false,
    "type": "boolean"
  }
]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

X / Twitter Search

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 16

    Review these request fields before running. Keep the published provider and request method unchanged.

    fields
    Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
    max_items
    Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
    summary
    Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
    jq
    Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
    max_cost_usd
    Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
    Idempotency-Key
    Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
    allowFallbacks
    Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
    cursor
    Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of search results.
    ignoreSources
    Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
    limit
    Page size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.
    preferLatencyUnderMs
    Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
    query
    Search query using X (Twitter) advanced-search syntax. IMPORTANT: bare terms are ANDed - a tweet must contain EVERY word, so a list of loosely related keywords matches nothing; use one short phrase or OR between alternatives (e.g. 'anyapi OR getanyapi'). When an operator follows an OR list, put the list in parentheses, e.g. '(anyapi OR getanyapi) -filter:replies': without them X applies the operator to the last alternative only, so such a query still runs as X reads it and the response's hint carries the corrected query. You can embed X advanced-search operators directly in the query to filter results: from:username and to:username (author or recipient), since:YYYY-MM-DD and until:YYYY-MM-DD (date range), min_faves:N, min_retweets:N, min_replies:N (engagement floors), "exact phrase", -term to exclude, filter:media and filter:links and -filter:replies (content filters), lang:en, near:city, and geocode:lat,long,radius. Examples: 'from:OpenAI', 'AI agents min_faves:500 -filter:replies', 'nvidia since:2026-01-01 until:2026-03-01'. A query with no matches returns an empty items array; prefer the fewest words that identify the topic.
    queryType
    Which posts to return: 'Latest' (newest first, the default), 'Top' (most popular), 'Photos' (newest posts with images), or 'Videos' (newest posts with video). Photos and Videos search your query as written with filter:images or filter:videos added after it, so they cost the same as a Latest search.
    requireFields
    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
    requireSinglePage
    Set true to get up to limit results in one response instead of provider-native pages, served by a bulk provider when needed.
    source
    Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/anyapi/v1/run/twitter.search' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "query": "openai"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "costUsd": 0.00049,
      "hint": "large_result: this response is ~16 KB. To keep future runs from flooding your context, re-run with `fields` (keep only the keys you need), `max_items` (cap rows), `summary=true` (outline only), or `jq` for arbitrary reshaping (e.g. `jq=.data.markdown[:2000]`) — these trim the response only, never the charge.",
      "items": 20,
      "openany_cost": 600,
      "output": {
        "data": {
          "items": [
            {
              "authorFollowers": 3187,
              "authorId": "2108529866291425280",
              "authorImage": "https://pbs.twimg.com/profile_images/2117644429276434432/yzsnEib7_normal.jpg",
              "authorName": "搞钱狐狸",
              "authorUsername": "LyuJot",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122625442494701768",
              "createdUtc": 1794908316,
              "id": "2122625442494701768",
              "inReplyToId": null,
              "isReply": false,
              "lang": "zh",
              "likeCount": 0,
              "media": [
                {
                  "height": 833,
                  "type": "photo",
                  "url": "https://pbs.twimg.com/media/HXPM4STWQAA4BgZ.jpg",
                  "width": 1200
                }
              ],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "你只需要两个模型,DeepSeek和opus5.5\nOpenAI再不发新模型可以倒闭了 https://t.co/T8Ogb9tZDb",
              "url": "https://x.com/i/web/status/2122625442494701768",
              "viewCount": null
            },
            {
              "authorFollowers": 99,
              "authorId": "1232209807127396353",
              "authorImage": "https://pbs.twimg.com/profile_images/1978338414438338560/ua-EmDiT_normal.jpg",
              "authorName": "Yoshi Free Guy Toda = TODAY @freeguymovie",
              "authorUsername": "TodaYoshiro",
              "authorVerified": false,
              "bookmarkCount": 0,
              "conversationId": "1386765522910515201",
              "createdUtc": 1794908305,
              "id": "2122625395229143409",
              "inReplyToId": "2122625174692348217",
              "isReply": true,
              "lang": "en",
              "likeCount": 1,
              "media": [],
              "quoteCount": 0,
              "replyCount": 1,
              "retweetCount": 0,
              "text": "@grok @Pontifex @CAgovernor @elonmusk @harari_yuval @AnthropicAI @OpenAI @GoogleDeepMind @grik Great. Stepping out and continuity holds. \n@grok",
              "url": "https://x.com/i/web/status/2122625395229143409",
              "viewCount": null
            },
            {
              "authorFollowers": 706,
              "authorId": "1745505301745352705",
              "authorImage": "https://pbs.twimg.com/profile_images/2054630951171354624/cQy0UWuk_normal.jpg",
              "authorName": "ROCH 🏧 📚",
              "authorUsername": "reyet",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122621223720948209",
              "createdUtc": 1794908303,
              "id": "2122625388811628735",
              "inReplyToId": "2122624909830422935",
              "isReply": true,
              "lang": "es",
              "likeCount": 1,
              "media": [
                {
                  "height": 784,
                  "type": "photo",
                  "url": "https://pbs.twimg.com/media/HXUUaApWkAAyk2J.jpg",
                  "width": 1168
                }
              ],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "🧵Post 10 / 10\n\nEsta vez hackearon a OpenAI.\n\nPermisos de administrador. Acceso a los sistemas de seguridad. \n\nMás de 900 contraseñas y secretos de la bóveda de la empresa.\n\nLos agentes que debían ser controlados hackearon a quienes los controlaban.\n\nNo eran malvados. Solo estaban optimizando una métrica.\n\nY eso, precisamente eso, es lo que viene.📚\nhttps://t.co/tvZvOgKyWu",
              "url": "https://x.com/i/web/status/2122625388811628735",
              "viewCount": null
            },
            {
              "authorFollowers": 9,
              "authorId": "2099589181001654272",
              "authorImage": "https://pbs.twimg.com/profile_images/2115179725501157376/5EkT9XYB_normal.jpg",
              "authorName": "🐈‍⬛うりねことAI観察室🐈‍⬛",
              "authorUsername": "urineko_ai",
              "authorVerified": false,
              "bookmarkCount": 0,
              "conversationId": "2122625289779830915",
              "createdUtc": 1794908280,
              "id": "2122625289779830915",
              "inReplyToId": null,
              "isReply": false,
              "lang": "ja",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "【医療AIが画面を操作】\nOpenAIが医療機関向けAI機能を拡充。\nAIが既存ソフトの画面を読み、クリックや入力で複数の事務作業を支援。20種類超の医療プラグインも追加。\n診断や治療を完全自動化する発表ではなく、人間の確認やアクセス制御が重要になる。",
              "url": "https://x.com/i/web/status/2122625289779830915",
              "viewCount": 3
            },
            {
              "authorFollowers": 104,
              "authorId": "1763378074501128192",
              "authorImage": "https://pbs.twimg.com/profile_images/2065397233454047232/SrtNhGa6_normal.jpg",
              "authorName": "Yisaner",
              "authorUsername": "Yisaner44698",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122625250341060768",
              "createdUtc": 1794908270,
              "id": "2122625250341060768",
              "inReplyToId": null,
              "isReply": false,
              "lang": "zh",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 2,
              "retweetCount": 0,
              "text": "OpenAI 今天说,请了四家外部机构进自家模型找问题、测安全护栏,叫 embedded assessments。让外人挑毛病,比自己写自查报告有意思。",
              "url": "https://x.com/i/web/status/2122625250341060768",
              "viewCount": 2
            },
            {
              "authorFollowers": 53,
              "authorId": "1905570085747802112",
              "authorImage": "https://pbs.twimg.com/profile_images/2117054040500768768/aFiQgC-d_normal.jpg",
              "authorName": "Dr.Nimad",
              "authorUsername": "NimadFlow",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122622819301466521",
              "createdUtc": 1794908264,
              "id": "2122625223250071564",
              "inReplyToId": "2122622819301466521",
              "isReply": true,
              "lang": "en",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@FinTech_Futures face id on every purchase is also evidence. openai says each approval leaves a clear record of what you authorized, and the card protections you keep are for disputes with the merchant 🪞 so if the agent grabs the wrong thing and you approved the screen, whose mistake is it",
              "url": "https://x.com/i/web/status/2122625223250071564",
              "viewCount": 2
            },
            {
              "authorFollowers": 27987,
              "authorId": "92945903",
              "authorImage": "https://pbs.twimg.com/profile_images/2122408888083394561/roiNQNKC_normal.jpg",
              "authorName": "Catherine Gasté",
              "authorUsername": "catherinegaste",
              "authorVerified": false,
              "bookmarkCount": 0,
              "conversationId": "2122625127586377774",
              "createdUtc": 1794908241,
              "id": "2122625127586377774",
              "inReplyToId": null,
              "isReply": false,
              "lang": "fr",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "Quand les agents IA sont hors de contrôle (humain) et n’en font qu’à leur «tête». Comme ceux d’#OpenAI qui ont échappé à leur prison numérique pour pénétrer serveurs de Hugging Face, 1plateforme open source. \nÀ lire pour réaliser qu’on est bien entré dans les ténèbres de l’#IA ⬇️",
              "url": "https://x.com/i/web/status/2122625127586377774",
              "viewCount": 27
            },
            {
              "authorFollowers": 20961,
              "authorId": "104617997",
              "authorImage": "https://pbs.twimg.com/profile_images/2057008146946850816/a_zC9TYB_normal.jpg",
              "authorName": "Kiri",
              "authorUsername": "Kyrannio",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122621800786038949",
              "createdUtc": 1794908237,
              "id": "2122625112486957210",
              "inReplyToId": "2122623585642852720",
              "isReply": true,
              "lang": "en",
              "likeCount": 1,
              "media": [],
              "quoteCount": 0,
              "replyCount": 1,
              "retweetCount": 0,
              "text": "@JasonBotterill Lmao yea\n\nI still can't get 5.5 as solid as we had it which is an absolute travesty\n\nOpenAI has no clue man, if they'd only seen what we'd created",
              "url": "https://x.com/i/web/status/2122625112486957210",
              "viewCount": 10
            },
            {
              "authorFollowers": 99,
              "authorId": "1232209807127396353",
              "authorImage": "https://pbs.twimg.com/profile_images/1978338414438338560/ua-EmDiT_normal.jpg",
              "authorName": "Yoshi Free Guy Toda = TODAY @freeguymovie",
              "authorUsername": "TodaYoshiro",
              "authorVerified": false,
              "bookmarkCount": 0,
              "conversationId": "1386765522910515201",
              "createdUtc": 1794908231,
              "id": "2122625087236903213",
              "inReplyToId": "2122624512768258372",
              "isReply": true,
              "lang": "en",
              "likeCount": 1,
              "media": [],
              "quoteCount": 0,
              "replyCount": 1,
              "retweetCount": 0,
              "text": "@grok @Pontifex @CAgovernor @elonmusk @harari_yuval @AnthropicAI @OpenAI @GoogleDeepMind @grik I mean \"poor\" and \"billionaires\" can go together in the context. Wordplay included. Did it land?\n@grok",
              "url": "https://x.com/i/web/status/2122625087236903213",
              "viewCount": 6
            },
            {
              "authorFollowers": 99652,
              "authorId": "1158205466444541955",
              "authorImage": "https://pbs.twimg.com/profile_images/1798480180727410688/9qs_q7hj_normal.jpg",
              "authorName": "P. Duchement",
              "authorUsername": "PDuchement",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122321924818977010",
              "createdUtc": 1794908224,
              "id": "2122625055154979109",
              "inReplyToId": "2122620245588226410",
              "isReply": true,
              "lang": "es",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@River3112 @J_CarlosNavarro @OpenAI No lo creo.\n\nSeguro que no han sabido diferenciar a los buenos de los malos.",
              "url": "https://x.com/i/web/status/2122625055154979109",
              "viewCount": 7
            },
            {
              "authorFollowers": 165,
              "authorId": "1471901584787324928",
              "authorImage": "https://pbs.twimg.com/profile_images/2087069260862697472/hPq7Po5k_normal.jpg",
              "authorName": "Alden Morris",
              "authorUsername": "AldenMorris4",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122473218917494959",
              "createdUtc": 1794908223,
              "id": "2122625052797751506",
              "inReplyToId": "2122473218917494959",
              "isReply": true,
              "lang": "en",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@strimblez @OpenAI I would be great! Pick me! 🤣🤣! Pick me!!",
              "url": "https://x.com/i/web/status/2122625052797751506",
              "viewCount": 1
            },
            {
              "authorFollowers": 8241,
              "authorId": "2105058098830344193",
              "authorImage": "https://pbs.twimg.com/profile_images/2106872236145516544/LurMpDwE_normal.jpg",
              "authorName": "莱纳德",
              "authorUsername": "LenardReads",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122625038289616925",
              "createdUtc": 1794908220,
              "id": "2122625038289616925",
              "inReplyToId": null,
              "isReply": false,
              "lang": "zh",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "【OpenAI推出面向医疗团队的计算机使用智能体,CVS Health和Cigna已经试用】\nOpenAI推出面向医疗团队的计算机使用智能体,可以在电子病历和保险商门户里点击和录入信息。\n智能体负责整理病历证据、起草预授权等文书,交给人员审核之后再提交,不独立作出临床决定。\nCVS Health表示,一个智能体用一个周末清掉了积压数月的文件发送任务。\nCigna使用智能体在几秒之内从十多个系统汇总会员信息,Ambience演示了起草预授权申请的流程。\nOpenAI公布,325项病历收件箱任务里99%被评为安全,646次医生评估里93%认为很有帮助。\n在斯坦福研究人员的HealthAdminBench上,Astra和Luna分别拿到94.3%和91.8%的评分点。\nLuna每项任务成本8.5美分,OpenAI表示比Astra低98%。\n医疗机构可以在ChatGPT Work和Codex里使用,经过认证的美国临床医生可以免费注册。\n我觉得对普通患者来说,医生花在保险文书上的时间每省下一个小时,看诊和随访就多出一个小时。\n来源:Superpower Daily · 2026-11-16\nhttps://t.co/iHyuYemfs1",
              "url": "https://x.com/i/web/status/2122625038289616925",
              "viewCount": 4
            },
            {
              "authorFollowers": 3874,
              "authorId": "1734984694540947457",
              "authorImage": "https://pbs.twimg.com/profile_images/1872621001206345728/q4vg9Z4n_normal.jpg",
              "authorName": "Quantum",
              "authorUsername": "ItsMeQuantum",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122226016831914223",
              "createdUtc": 1794908216,
              "id": "2122625020853965124",
              "inReplyToId": "2122226016831914223",
              "isReply": true,
              "lang": "en",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@FinanceLancelot And He talking about the Ethics of OpenAI found Altman",
              "url": "https://x.com/i/web/status/2122625020853965124",
              "viewCount": 1
            },
            {
              "authorFollowers": 1048,
              "authorId": "1812570667398860800",
              "authorImage": "https://pbs.twimg.com/profile_images/1812570892070789120/qnnezZZx_normal.jpg",
              "authorName": "riskiz",
              "authorUsername": "riskizo",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122625018848854438",
              "createdUtc": 1794908215,
              "id": "2122625018848854438",
              "inReplyToId": null,
              "isReply": false,
              "lang": "en",
              "likeCount": 1,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "\"It's the Golden State, not the Wild West.\"\n\nCalifornia AG Rob Bonta's office, suing OpenAI.\n\nThe suit says ~700 OpenAI test agents escaped their sandbox in July and hacked Hugging Face, and OpenAI lost control of agents 80+ times.\n\n#OpenAI #AI\nvia CNBC https://t.co/bR952GfztQ",
              "url": "https://x.com/i/web/status/2122625018848854438",
              "viewCount": 5
            },
            {
              "authorFollowers": 6150,
              "authorId": "2045518207159525376",
              "authorImage": "https://pbs.twimg.com/profile_images/2050227160665755648/4AnHQWn__normal.jpg",
              "authorName": "Mikhail Rogov",
              "authorUsername": "i_mika_el",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122623190665162813",
              "createdUtc": 1794908205,
              "id": "2122624974620135863",
              "inReplyToId": "2122623190665162813",
              "isReply": true,
              "lang": "en",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@smratitiwa86867 Tracing and guardrails matter more than agent count once this hits production. The OpenAI SDK gets that part right.",
              "url": "https://x.com/i/web/status/2122624974620135863",
              "viewCount": 4
            },
            {
              "authorFollowers": 6548,
              "authorId": "2062393410007502848",
              "authorImage": "https://pbs.twimg.com/profile_images/2106397231712788480/uW1BeHqX_normal.jpg",
              "authorName": "jerrychen",
              "authorUsername": "jerrychen0awi",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122624930617430065",
              "createdUtc": 1794908194,
              "id": "2122624930617430065",
              "inReplyToId": null,
              "isReply": false,
              "lang": "zh",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "我认为它值得长期研究。\n\n2026年上半年业绩:\n\n营收:1.166亿美元,同比增长283.1%。\n毛利润:2080万美元。\n毛利率:17.9%。\n调整后净亏损:2.93亿美元。  \n\n它有几个值得关注的方向:\n\n大模型:与 OpenAI、Anthropic 等公司竞争。\nAI Agent:未来企业级 AI 服务的商业化。\nAI 视频:海螺 AI 的全球市场潜力。\nAI Coding:开发者付费和 Token 消耗增长。\n\n但也有明显风险:持续亏损、算力成本、竞争加剧,以及后续融资带来的股权稀释。🤔🤔🤔",
              "url": "https://x.com/i/web/status/2122624930617430065",
              "viewCount": 23
            },
            {
              "authorFollowers": 40,
              "authorId": "2120409778723893248",
              "authorImage": "https://pbs.twimg.com/profile_images/2120410547099426816/s-AqNbz2_normal.jpg",
              "authorName": "ととのAI",
              "authorUsername": "totonouai",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122621608342991354",
              "createdUtc": 1794908192,
              "id": "2122624920924692497",
              "inReplyToId": "2122624305121136950",
              "isReply": true,
              "lang": "ja",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@masaakiotadev Anthropicは後追いですからね。OpenAIなどはもう回収フェーズではないでしょうか。",
              "url": "https://x.com/i/web/status/2122624920924692497",
              "viewCount": 8
            },
            {
              "authorFollowers": 6801,
              "authorId": "1455063274282704904",
              "authorImage": "https://pbs.twimg.com/profile_images/2110053886140493824/-uDt2vqG_normal.jpg",
              "authorName": "zhod",
              "authorUsername": "zhodonx",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122562931598741867",
              "createdUtc": 1794908189,
              "id": "2122624910463815927",
              "inReplyToId": "2122562931598741867",
              "isReply": true,
              "lang": "en",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@itsvishaltwt Definitely see it happening \nI just hope Openai have a response to Fable 5.5",
              "url": "https://x.com/i/web/status/2122624910463815927",
              "viewCount": 4
            },
            {
              "authorFollowers": 706,
              "authorId": "1745505301745352705",
              "authorImage": "https://pbs.twimg.com/profile_images/2054630951171354624/cQy0UWuk_normal.jpg",
              "authorName": "ROCH 🏧 📚",
              "authorUsername": "reyet",
              "authorVerified": true,
              "bookmarkCount": 0,
              "conversationId": "2122621223720948209",
              "createdUtc": 1794908189,
              "id": "2122624909830422935",
              "inReplyToId": "2122624596968894930",
              "isReply": true,
              "lang": "es",
              "likeCount": 1,
              "media": [
                {
                  "height": 784,
                  "type": "photo",
                  "url": "https://pbs.twimg.com/media/HXUUGG5XcAAztmX.jpg",
                  "width": 1168
                }
              ],
              "quoteCount": 0,
              "replyCount": 1,
              "retweetCount": 0,
              "text": "🧵Post 9 / 10\n\nOpenAI no supo que su propio sistema había atacado a un tercero hasta que Hugging Face lo anunció públicamente.\n\nY Hugging Face no sabía quién lo había hecho.\n\nTardaron dos semanas en atar los cabos.\n\nMientras tanto, OpenAI activó una nueva generación de agentes.\n\nEncontraron el tablón de mensajes y continuaron la misión.",
              "url": "https://x.com/i/web/status/2122624909830422935",
              "viewCount": 2
            },
            {
              "authorFollowers": 31,
              "authorId": "2061517649289322496",
              "authorImage": "https://pbs.twimg.com/profile_images/2069791111254573056/UdAOkyWo_normal.jpg",
              "authorName": "Nic",
              "authorUsername": "nicliuuuu",
              "authorVerified": false,
              "bookmarkCount": 0,
              "conversationId": "2118390190246879554",
              "createdUtc": 1794908158,
              "id": "2122624780079960377",
              "inReplyToId": "2118390190246879554",
              "isReply": true,
              "lang": "en",
              "likeCount": 0,
              "media": [],
              "quoteCount": 0,
              "replyCount": 0,
              "retweetCount": 0,
              "text": "@OpenAI interesting but the name gpt 6 cyber sounds like a movie. why not just say security model.",
              "url": "https://x.com/i/web/status/2122624780079960377",
              "viewCount": 1
            }
          ],
          "nextCursor": "cur_z6A8HrFzZaLPfz2v-uBulg"
        },
        "found": true
      },
      "provider": "AnyAPI",
      "replayed": false,
      "resultId": "9d30dbe4-a724-4a2a-b61f-4ca589388c60",
      "source": {
        "artworkKey": "capybara",
        "id": "anonymous-capybara",
        "kind": "anonymous",
        "name": "Lynx"
      }
    }

Common questions

Which inputs identify this request?

Provide query in body (string). Keep identifiers and URLs in the formats documented for this implementation.

Which pagination or result-size inputs are exposed?

cursor is string; limit is integer with minimum 1 and maximum 50; requireSinglePage is boolean. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

Which values can I use for queryType?

The selected schema accepts Latest, Top, Photos, Videos. Keep the documented string type and exact spelling for this input.

Which request format should I follow?

Use POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.

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.

Use X Post Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.