twtapi-com Twitter API

The Twitter API from twtapi-com — 1 operation(s) for twitter.

Operations 5

GET /api/v1/twitter/{path} Proxy #
POST /api/v1/twitter/{path} Proxy #
PUT /api/v1/twitter/{path} Proxy #
DELETE /api/v1/twitter/{path} Proxy #
PATCH /api/v1/twitter/{path} Proxy #

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/twtapi-com:twtapi-com-twitter-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

twtapi-com-twitter-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TwtAPI Backend Twitter API
  description: API proxy & billing platform for Twitter/RapidAPI
  version: 0.1.0
tags:
- name: Twitter
paths:
  /api/v1/twitter/{path}:
    get:
      summary: Proxy
      description: '网关主入口(步骤 2~7 都在这里),把请求转发到上游并把结果回给用户。


        参数 path:被通配符捕获的端点路径,如 "UserTweets" 或 "UserTweets/xxx"。

        参数 user:由 get_api_key_user 完成鉴权(未带/无效 key 时它已抛 401)。


        返回:成功时是上游原始 body + 若干 X-TwtAPI-* 元信息头;

        上游 4xx/5xx 被改写成 502(业务码在 body 里);上游超时/不可达返回 200 + 20401。

        副作用:写 Redis(限流、信用点、缓存、配额快照)、写库(风控事件;调用日志走后台任务)、

        发起上游 HTTP 请求。


        计费语义:进入这里的请求在预检阶段就已经扣过费,所以每个失败出口都必须退款。

        先扣后转的代价是失败路径要显式补偿,好处是并发下不会出现「先转发后扣费、

        余额不足时白送一次上游调用」的超发。'
      operationId: proxy_api_v1_twitter__path__get
      parameters:
      - name: path
        in: path
        required: true
        schema:
          type: string
          title: Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Twitter
    post:
      summary: Proxy
      description: '网关主入口(步骤 2~7 都在这里),把请求转发到上游并把结果回给用户。


        参数 path:被通配符捕获的端点路径,如 "UserTweets" 或 "UserTweets/xxx"。

        参数 user:由 get_api_key_user 完成鉴权(未带/无效 key 时它已抛 401)。


        返回:成功时是上游原始 body + 若干 X-TwtAPI-* 元信息头;

        上游 4xx/5xx 被改写成 502(业务码在 body 里);上游超时/不可达返回 200 + 20401。

        副作用:写 Redis(限流、信用点、缓存、配额快照)、写库(风控事件;调用日志走后台任务)、

        发起上游 HTTP 请求。


        计费语义:进入这里的请求在预检阶段就已经扣过费,所以每个失败出口都必须退款。

        先扣后转的代价是失败路径要显式补偿,好处是并发下不会出现「先转发后扣费、

        余额不足时白送一次上游调用」的超发。'
      operationId: postApiV1TwitterByPath
      parameters:
      - name: path
        in: path
        required: true
        schema:
          type: string
          title: Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Twitter
      x-operation-id-source: normalized
      x-operation-id-original: proxy_api_v1_twitter__path__get
    put:
      summary: Proxy
      description: '网关主入口(步骤 2~7 都在这里),把请求转发到上游并把结果回给用户。


        参数 path:被通配符捕获的端点路径,如 "UserTweets" 或 "UserTweets/xxx"。

        参数 user:由 get_api_key_user 完成鉴权(未带/无效 key 时它已抛 401)。


        返回:成功时是上游原始 body + 若干 X-TwtAPI-* 元信息头;

        上游 4xx/5xx 被改写成 502(业务码在 body 里);上游超时/不可达返回 200 + 20401。

        副作用:写 Redis(限流、信用点、缓存、配额快照)、写库(风控事件;调用日志走后台任务)、

        发起上游 HTTP 请求。


        计费语义:进入这里的请求在预检阶段就已经扣过费,所以每个失败出口都必须退款。

        先扣后转的代价是失败路径要显式补偿,好处是并发下不会出现「先转发后扣费、

        余额不足时白送一次上游调用」的超发。'
      operationId: putApiV1TwitterByPath
      parameters:
      - name: path
        in: path
        required: true
        schema:
          type: string
          title: Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Twitter
      x-operation-id-source: normalized
      x-operation-id-original: proxy_api_v1_twitter__path__get
    delete:
      summary: Proxy
      description: '网关主入口(步骤 2~7 都在这里),把请求转发到上游并把结果回给用户。


        参数 path:被通配符捕获的端点路径,如 "UserTweets" 或 "UserTweets/xxx"。

        参数 user:由 get_api_key_user 完成鉴权(未带/无效 key 时它已抛 401)。


        返回:成功时是上游原始 body + 若干 X-TwtAPI-* 元信息头;

        上游 4xx/5xx 被改写成 502(业务码在 body 里);上游超时/不可达返回 200 + 20401。

        副作用:写 Redis(限流、信用点、缓存、配额快照)、写库(风控事件;调用日志走后台任务)、

        发起上游 HTTP 请求。


        计费语义:进入这里的请求在预检阶段就已经扣过费,所以每个失败出口都必须退款。

        先扣后转的代价是失败路径要显式补偿,好处是并发下不会出现「先转发后扣费、

        余额不足时白送一次上游调用」的超发。'
      operationId: deleteApiV1TwitterByPath
      parameters:
      - name: path
        in: path
        required: true
        schema:
          type: string
          title: Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Twitter
      x-operation-id-source: normalized
      x-operation-id-original: proxy_api_v1_twitter__path__get
    patch:
      summary: Proxy
      description: '网关主入口(步骤 2~7 都在这里),把请求转发到上游并把结果回给用户。


        参数 path:被通配符捕获的端点路径,如 "UserTweets" 或 "UserTweets/xxx"。

        参数 user:由 get_api_key_user 完成鉴权(未带/无效 key 时它已抛 401)。


        返回:成功时是上游原始 body + 若干 X-TwtAPI-* 元信息头;

        上游 4xx/5xx 被改写成 502(业务码在 body 里);上游超时/不可达返回 200 + 20401。

        副作用:写 Redis(限流、信用点、缓存、配额快照)、写库(风控事件;调用日志走后台任务)、

        发起上游 HTTP 请求。


        计费语义:进入这里的请求在预检阶段就已经扣过费,所以每个失败出口都必须退款。

        先扣后转的代价是失败路径要显式补偿,好处是并发下不会出现「先转发后扣费、

        余额不足时白送一次上游调用」的超发。'
      operationId: patchApiV1TwitterByPath
      parameters:
      - name: path
        in: path
        required: true
        schema:
          type: string
          title: Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Twitter
      x-operation-id-source: normalized
      x-operation-id-original: proxy_api_v1_twitter__path__get
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError