twexapi-io Cookie Endpoints API
The Cookie Endpoints API from twexapi-io — 2 operation(s) for cookie endpoints.
The Cookie Endpoints API from twexapi-io — 2 operation(s) for cookie endpoints.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/twexapi-io:twexapi-io-cookie-endpoints-api"
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.
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: 3.2.0
info:
title: TwexAPI REST Cookie Endpoints API
description: 'TwexAPI exposes a REST API at `https://api.twexapi.io` for X/Twitter search, profiles, followers, posting, DMs, and agent integrations.
**Capabilities include:**
* **Search** — Advanced search, hashtags, cashtags
* **Tweets** — Post, like, retweet, quote, bookmark, delete
* **Users** — Batch user information retrieval
* **Influencers** — Get tweets from top influencers
All endpoints return a consistent envelope with `code`, `msg`, and `data` fields. See Error Handling for status codes and recovery.
## Authentication
Send your API key on every request:
```txt
Authorization: Bearer YOUR_API_KEY
```
Write actions also require a Twitter cookie or `auth_token`. See Authentication for setup examples.'
contact:
name: TwexAPI Support
email: support@twexapi.io
license:
name: MIT
version: 1.0.0
servers:
- url: https://api.twexapi.io
description: Development server
tags:
- name: Cookie Endpoints
paths:
/twitter/{auth_token}/cookie:
get:
tags:
- Cookie Endpoints
summary: Get cookie by auth token
description: Retrieve Twitter authentication cookie using the provided auth token. This endpoint converts an auth token into a usable cookie for Twitter API requests.
operationId: get_cookie_by_auth_token_endpoint_twitter__auth_token__cookie_get
security:
- HTTPBearer: []
parameters:
- name: auth_token
in: path
required: true
schema:
type: string
title: Auth Token
responses:
'200':
description: Twitter authentication cookie
content:
application/json:
schema:
$ref: '#/components/schemas/StandardResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/twitter/{auth_token}/user_info:
get:
tags:
- Cookie Endpoints
summary: Get user info by auth token
description: Retrieve Twitter user info using the provided auth token.
operationId: get_user_info_by_auth_token_endpoint_twitter__auth_token__user_info_get
security:
- HTTPBearer: []
parameters:
- name: auth_token
in: path
required: true
schema:
type: string
title: Auth Token
responses:
'200':
description: Twitter user info
content:
application/json:
schema:
$ref: '#/components/schemas/UserInfoResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
UserInfo:
properties:
userId:
type: string
title: Userid
description: User ID
isBlueVerified:
type: boolean
title: Isblueverified
description: Blue verification status
createdAt:
type: string
title: Createdat
description: Account creation date
createdAtDatetime:
anyOf:
- type: string
- type: 'null'
title: Createdatdatetime
description: Account creation datetime in ISO format
defaultProfile:
type: boolean
title: Defaultprofile
description: Default profile flag
defaultProfileImage:
type: boolean
title: Defaultprofileimage
description: Default profile image flag
description:
type: string
title: Description
description: Bio description
location:
type: string
title: Location
description: Location
fastFollowersCount:
type: integer
title: Fastfollowerscount
description: Fast followers count
favouritesCount:
type: integer
title: Favouritescount
description: Likes count
followersCount:
type: integer
title: Followerscount
description: Followers count
followingCount:
type: integer
title: Followingcount
description: Following count
hasCustomTimelines:
type: boolean
title: Hascustomtimelines
description: Has custom timelines flag
isTranslator:
type: boolean
title: Istranslator
description: Is translator flag
listedCount:
type: integer
title: Listedcount
description: Listed count
mediaCount:
type: integer
title: Mediacount
description: Media count
name:
type: string
title: Name
description: Display name
normalFollowersCount:
type: integer
title: Normalfollowerscount
description: Normal followers count
pinnedTweetIdsStr:
anyOf:
- items: {}
type: array
- type: 'null'
title: Pinnedtweetidsstr
description: Pinned tweet IDs
possiblySensitive:
type: boolean
title: Possiblysensitive
description: Possibly sensitive flag
profileImageUrlHttps:
type: string
title: Profileimageurlhttps
description: Profile image URL
username:
type: string
title: Username
description: Username
statusesCount:
type: integer
title: Statusescount
description: Tweets count
translatorType:
anyOf:
- type: string
- type: 'null'
title: Translatortype
description: Translator type
verified:
type: boolean
title: Verified
description: Legacy verification status
verified_type:
anyOf:
- type: string
- type: 'null'
title: Verified Type
description: 'Verification badge type: blue, business, government, etc.'
examples:
- blue
- business
- government
withheldInCountries:
anyOf:
- items: {}
type: array
- type: 'null'
title: Withheldincountries
description: Withheld in countries
protected:
type: boolean
title: Protected
description: Protected account flag
url:
anyOf:
- type: string
- type: 'null'
title: Url
description: User profile URL
descriptionUrls:
anyOf:
- items: {}
type: array
- type: 'null'
title: Descriptionurls
description: Description URLs
urls:
anyOf:
- items: {}
type: array
- type: 'null'
title: Urls
description: User URLs
pinnedTweetIds:
anyOf:
- items: {}
type: array
- type: 'null'
title: Pinnedtweetids
description: Pinned tweet IDs
type: object
required:
- userId
- isBlueVerified
- createdAt
- defaultProfile
- defaultProfileImage
- description
- location
- fastFollowersCount
- favouritesCount
- followersCount
- followingCount
- hasCustomTimelines
- isTranslator
- listedCount
- mediaCount
- name
- normalFollowersCount
- possiblySensitive
- profileImageUrlHttps
- username
- statusesCount
- verified
- protected
title: UserInfo
description: User information structure
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
StandardResponse:
properties:
code:
type: integer
title: Code
description: HTTP status code
example: 200
msg:
type: string
title: Msg
description: Response message
example: success
data:
anyOf:
- {}
- type: 'null'
title: Data
description: Response data
type: object
required:
- code
- msg
title: StandardResponse
description: Standard API response format
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
UserInfoResponse:
properties:
code:
type: integer
title: Code
msg:
type: string
title: Msg
data:
anyOf:
- $ref: '#/components/schemas/UserInfo'
- type: 'null'
type: object
required:
- code
- msg
- data
title: UserInfoResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer