fetcher-sh Twitter / X API

Search tweets, resolve profiles by handle or ID, and pull timelines, replies, followers, lists, and trends.

Operations 15

GET /api/twitter/handle/{handle} Twitter / X — Handle #
GET /api/twitter/handle/{handle}/about Twitter / X — Handle about #
GET /api/twitter/list/{id}/members Twitter / X — List members #
GET /api/twitter/list/{id}/tweets Twitter / X — List tweets #
GET /api/twitter/search Twitter / X — Search #
GET /api/twitter/search/users Twitter / X — Search users #
GET /api/twitter/trends Twitter / X — Trends #
GET /api/twitter/tweet/{id} Twitter / X — Tweet #
GET /api/twitter/tweet/{id}/replies Twitter / X — Tweet replies #
GET /api/twitter/tweet/{id}/retweeters Twitter / X — Tweet retweeters #
GET /api/twitter/user/{id} Twitter / X — User #
GET /api/twitter/user/{id}/followers Twitter / X — User followers #
GET /api/twitter/user/{id}/followings Twitter / X — User followings #
GET /api/twitter/user/{id}/replies Twitter / X — User replies #
GET /api/twitter/user/{id}/tweets Twitter / X — User tweets #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fetcher-sh:fetcher-sh-twitter-x-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fetcher-sh-twitter-x-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: fetcher.sh — web data API for agents Twitter / X API
  version: 1.0.0
  summary: 111 pay-per-call web-data endpoints across 11 services.
  description: 'Web data for agents and code: **111 endpoints across 11 services**, priced **$0.002 – $0.005 per call** in USDC on Base, Monad or Solana. No accounts, no OAuth, no subscriptions — you only pay for calls you make.


    Every endpoint is a `GET` returning the same envelope, where the HTTP status mirrors `status`:


    ```json

    { "status": 200, "message": "ok", "data": { } }

    ```


    ## Two ways to pay


    **1. Prepaid credits (simplest for code).** Top up once at https://fetcher.sh/topup, then send your key on every request:


    ```bash

    curl -H "Authorization: Bearer bby_live_..." "https://fetcher.sh/api/twitter/search?query=x402"

    ```


    **2. x402 per call (for autonomous agents).** Call without payment and you get `402` with machine-readable requirements in the `payment-required` header — one entry per supported network, so pay from whichever of Base, Monad or Solana you hold USDC on. Sign the authorization, retry with it, and the data comes back. Gas is sponsored, so the wallet needs no native token — libraries like `@x402/fetch` do the whole loop for you.


    ## Errors


    `400` invalid or missing parameter (the message names it) · `401` unknown or revoked key · `402` payment required, or `topup_required` when a balance is exhausted · `404` not a priced endpoint · `502` upstream failure. There are no rate limits; your balance is the only limit. Settlement happens before delivery, so failed upstream calls are not refunded.


    ## Also available


    MCP server for Claude, Cursor and other MCP clients · /skill.md agent setup instructions · /llms.txt condensed catalog · /topup create or recharge a key.'
  x-guidance: 'fetcher.sh is a web-data gateway: 111 read-only endpoints (Twitter / X, YouTube, TikTok, Instagram, Reddit, Google Search, Google Maps, Google News, Google Play, App Store, Yelp). Every endpoint is a GET request that returns the same JSON envelope: { status, message, data }, where the HTTP status mirrors the status field. Pricing is per call, $0.002 – $0.005 in USDC. There are no plans, subscriptions, or rate limits — your balance is the only limit. Payable on Base, Monad or Solana: every 402 lists one accepts entry per network (eip155:8453, eip155:143, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), each with its own USDC asset and payTo address, so pick the one matching a chain you hold USDC on. Base (eip155:8453) is always first. Two ways to pay. (1) x402 per call: request the endpoint, receive a 402 with machine-readable payment requirements, sign the USDC transfer authorization for your chosen network, and retry with the signed payload. Gas is sponsored by the facilitator, so the wallet needs no native token. (2) Prepaid credits: POST /api/credits/topup?amount=<usd> once (minimum $1, itself x402-paid) to receive a bby_live_ API key, then send it as `Authorization: Bearer <key>` on any endpoint — no signing and no chain round trip per call, which is much faster for high request volumes. GET /api/credits/balance returns the remaining balance for a key. Substitute path parameters marked {param}. Missing or invalid parameters return a descriptive 400. Settlement happens before delivery, so failed upstream calls are not refunded. Full agent setup instructions: /skill.md. Condensed catalog for LLMs: /llms.txt.'
  contact:
    email: info@fetcher.sh
servers:
- url: https://fetcher.sh
  description: Production
tags:
- name: Twitter / X
  description: Search tweets, resolve profiles by handle or ID, and pull timelines, replies, followers, lists, and trends.
paths:
  /api/twitter/handle/{handle}:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterHandleByHandle
      summary: Twitter / X — Handle
      description: Handle from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: handle
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/handle/{handle}/about:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterHandleByHandleAbout
      summary: Twitter / X — Handle about
      description: Handle about from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: handle
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/list/{id}/members:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterListByIdMembers
      summary: Twitter / X — List members
      description: List members from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/list/{id}/tweets:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterListByIdTweets
      summary: Twitter / X — List tweets
      description: List tweets from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/search:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterSearch
      summary: Twitter / X — Search
      description: Search from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
      - name: sort
        in: query
        required: false
        schema:
          type: string
          enum:
          - Latest
          - Top
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/search/users:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterSearchUsers
      summary: Twitter / X — Search users
      description: Search users from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/trends:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterTrends
      summary: Twitter / X — Trends
      description: Trends from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: country
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/tweet/{id}:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterTweetById
      summary: Twitter / X — Tweet
      description: Tweet from Twitter / X. Returns the standard { status, message, data } envelope. $0.002 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/tweet/{id}/replies:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterTweetByIdReplies
      summary: Twitter / X — Tweet replies
      description: Tweet replies from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/tweet/{id}/retweeters:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterTweetByIdRetweeters
      summary: Twitter / X — Tweet retweeters
      description: Tweet retweeters from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/user/{id}:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterUserById
      summary: Twitter / X — User
      description: User from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/user/{id}/followers:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterUserByIdFollowers
      summary: Twitter / X — User followers
      description: User followers from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/user/{id}/followings:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterUserByIdFollowings
      summary: Twitter / X — User followings
      description: User followings from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/user/{id}/replies:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterUserByIdReplies
      summary: Twitter / X — User replies
      description: User replies from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
  /api/twitter/user/{id}/tweets:
    servers:
    - url: https://twitter.fetcher.sh
    get:
      operationId: twitterUserByIdTweets
      summary: Twitter / X — User tweets
      description: User tweets from Twitter / X. Returns the standard { status, message, data } envelope. $0.005 per call, payable with x402 (USDC on Base, Monad or Solana) or a prepaid credits API key.
      tags:
      - Twitter / X
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005000'
        protocols:
        - x402: {}
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success — upstream payload in `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '400':
          description: Missing or invalid parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '402':
          description: Payment Required
        '502':
          description: Upstream error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
components:
  schemas:
    Envelope:
      type: object
      description: Every response uses this envelope; the HTTP status mirrors `status`.
      properties:
        status:
          type: integer
          description: HTTP status code, mirrored in the body.
        message:
          type: string
          description: '"ok" on success, otherwise the error reason.'
        data:
          type:
          - object
          - array
          - 'null'
          description: Upstream payload; null on errors.
      required:
      - status
      - message
      - data