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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/twittrapi-com:twittrapi-com-misc-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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
openapi: 3.2.0
info:
title: TwittrAPI Misc API
version: 1.0.0
summary: Public Twitter/X data over REST, priced per API call.
description: 'TwittrAPI is a REST API for public Twitter/X data: users, tweets, search, followers, lists, communities, jobs and trends. Pay per call from a prepaid balance; no X developer account needed.
Authentication: send your key in the X-API-KEY header. Get a key at https://www.twittrapi.com/start (a human signs up; the key can then be given to an agent).
Responses: X''s raw JSON by default (passthrough), or add format=simple for compact, flat JSON with a fixed schema (same price).
Account actions (tag "Account actions", /client/* and /premium/*): POST endpoints that act on your own X account with its session cookie and your proxy in the JSON body (https://www.twittrapi.com/docs/x-session). Same price per call as reads; trial keys cannot call them.
Pricing (machine-readable): https://www.twittrapi.com/pricing.json. All docs in one file: https://www.twittrapi.com/llms-full.txt.
RapidAPI: the same paths on https://twitter-aio.p.rapidapi.com with the x-rapidapi-key and x-rapidapi-host headers.
Not affiliated with X Corp. Twitter and X are trademarks of X Corp. Only publicly available data is accessible.'
contact:
name: TwittrAPI support
email: support@twittrapi.com
url: https://www.twittrapi.com/docs
termsOfService: https://www.twittrapi.com/terms
license:
name: 'Proprietary: use under the terms of service'
url: https://www.twittrapi.com/terms
servers:
- url: https://api.twittrapi.com
description: Direct API
- url: https://twitter-aio.p.rapidapi.com
description: RapidAPI (x-rapidapi-key and x-rapidapi-host headers instead of X-API-KEY)
security:
- ApiKeyAuth: []
tags:
- name: Misc
description: Misc endpoints (read-only GET).
paths:
/misc/emojis:
get:
operationId: miscEmojis
summary: Hashflags
description: 'X''s hashflags: hashtags that show a custom emoji, with image URLs and active dates.
Reference: https://www.twittrapi.com/docs/reference/misc-emojis'
tags:
- Misc
externalDocs:
url: https://www.twittrapi.com/docs/reference/misc-emojis
parameters:
- name: format
in: query
required: false
description: 'raw (default): X''s JSON passed through. simple: flat camelCase JSON with a fixed schema and a {data, nextCursor, previousCursor, hasNextPage} envelope. Same price. The header X-Response-Format: simple does the same.'
schema:
type: string
enum:
- raw
- simple
default: raw
responses:
'200':
description: 'Raw JSON of X''s v1.1 hashflags.json.
With format=simple: Unchanged inside {data: ...}: X''s hashflag list is already small, so the simple format only adds the envelope.'
headers:
X-Price-Per-Call:
description: What this call cost, in USD
schema:
type: string
X-Remaining-Balance:
description: Balance after this call (and after a refund, if any)
schema:
type: string
X-Refunded:
description: true when the call was refunded
schema:
type: string
X-Retried:
description: true when the gateway needed more than one attempt
schema:
type: string
X-Response-Format:
description: simple when the simple format was returned
schema:
type: string
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/DataPassthrough'
- $ref: '#/components/schemas/RawPassthrough'
description: 'format=simple: the simple-format schema. Default (raw): X''s JSON, passthrough.'
'400':
description: Any upstream failure ("Error making emoji request."). Refunded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
/spaces/{spaceId}:
get:
operationId: spacesSpaceid
summary: Space details
description: 'One X Space by ID: title, state, host and participants, and whether a replay is available.
No simple format: with format=simple the response is the same as without it.
Reference: https://www.twittrapi.com/docs/reference/spaces-spaceid'
tags:
- Misc
externalDocs:
url: https://www.twittrapi.com/docs/reference/spaces-spaceid
x-draft: true
parameters:
- name: spaceId
in: path
required: true
description: Space ID, the letters and digits at the end of the Space URL (x.com/i/spaces/<spaceId>). Up to 32 characters.
schema:
type: string
responses:
'200':
description: Raw JSON of X's AudioSpaceById query.
headers:
X-Price-Per-Call:
description: What this call cost, in USD
schema:
type: string
X-Remaining-Balance:
description: Balance after this call (and after a refund, if any)
schema:
type: string
X-Refunded:
description: true when the call was refunded
schema:
type: string
X-Retried:
description: true when the gateway needed more than one attempt
schema:
type: string
X-Response-Format:
description: simple when the simple format was returned
schema:
type: string
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/RawPassthrough'
description: 'format=simple: the simple-format schema. Default (raw): X''s JSON, passthrough.'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'422':
description: spaceId is not letters and digits, or longer than 32 characters.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
components:
responses:
PaymentRequired:
description: No balance left, or the trial expired. Not charged. Top up in the dashboard.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or unknown API key. Not charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: 'Rate limit for your key exceeded. Not charged. No Retry-After header: back off exponentially.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: Key deactivated, or the endpoint is not in your plan (trial keys and account actions). Not charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
ServerError:
description: Something failed on our side or between us and X. Refunded (400, 407, 408, 409 or a 5xx error are refunded). Retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
DataPassthrough:
type: object
properties:
data:
type:
- object
- array
description: The usual response, unchanged
required:
- data
description: 'Simple format: the usual (already small) response inside {data: ...}'
RawPassthrough:
type: object
additionalProperties: true
description: X's own JSON (raw format, the default), passed through unchanged. The shape is X's and can change; see https://www.twittrapi.com/docs/response-format.
Error:
type: object
properties:
error:
type: string
description: Message. Do not parse it; use the status code.
errorInfo:
description: X's raw reply, on some endpoints
attempts:
type: integer
description: Search retries
errorCode:
type: string
required:
- error
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-KEY
description: API key from the dashboard (https://app.twittrapi.com/register).
externalDocs:
description: Documentation
url: https://www.twittrapi.com/docs