Home
Providers
X (Twitter)
X (Twitter)
X (formerly Twitter) is a social media platform providing APIs for accessing and integrating with posts, users, spaces, direct messages, lists, media, trends, and real-time streaming data. The X API enables developers to build applications that read and write X data, manage advertising campaigns, and subscribe to real-time activity events. Available through pay-per-use credit-based pricing with enterprise options for high-volume access.
X (Twitter) publishes 22 APIs on the APIs.io network, including X Ads API, Account Activity API, Activity API, and 19 more. Tagged areas include Social Media, Microblogging, Real-Time Data, Streaming, and Advertising.
The X (Twitter) catalog on APIs.io includes 1 JSON-LD context and 2 Spectral governance rulesets.
X (Twitter)’s developer surface includes authentication, developer portal, getting-started guide, developer console, signup flow, CLI, pricing, and 45 more developer resources.
23 APIs
12 Features
8 Use Cases
Social Media Microblogging Real-Time Data Streaming Advertising Content
On this page
Kin Score
APIs 23
Postman 1
Open Collections 1
Arazzo 19
GraphQL 1
Pricing Plans 1
Rate Limits 1
FinOps 1
Features 12
Vocabularies 1
Spectral Rules 2
JSON Schema 25
JSON Structure 25
Examples 23
Security Posture 1
Scopes 1
Agentic Access 1
Use Cases 8
Integrations 3
Solutions 3
Resources 52
apis.yml
68 Operational Transparency
Composite quality — 63.9/100 · strong
Contract Quality
16.3 / 25
Developer Ergonomics
12.2 / 20
Commercial Clarity
12.1 / 20
Operational Transparency
8.9 / 13
Agent readiness — 37/100 · agent ready
Machine-Readable Contract
18 / 18
Agentic Access Contract
10 / 10
MCP Server
0 / 12
Machine-Readable Auth
10 / 10
Idempotency
0 / 9
Stable Error Semantics
0 / 8
Request/Response Examples
7 / 7
Rate-Limit Signaling
7 / 7
Typed Event Surface
0 / 6
Agent Skills
0 / 5
Well-Known Catalog
0 / 4
Consent & Bot Identity
0 / 3
A2A Agent Card
0 / 8
Dry-Run / Simulate Mode
0 / 4
Individual APIs this provider publishes, each with its own machine-readable definition.
Scroll for all 23
Ready-to-run Postman collections for exercising this provider's APIs.
Open, tool-agnostic API collections (OpenAPI-derived and Bruno).
Multi-step API workflows described with the Arazzo specification.
Scroll for all 19
GraphQL schemas published by this provider.
Published pricing tiers and plan structures.
Documented rate limits and quota policies.
Cost, billing, and metering signals for API financial operations.
Notable capabilities this provider offers.
Scroll for all 12
JSON-LD contexts and semantic vocabularies used across these APIs.
Spectral governance rulesets for linting and validating these APIs.
Standalone JSON Schema definitions for this provider's data models.
Scroll for all 25
JSON Structure definitions describing this provider's data shapes.
Scroll for all 25
Example request and response payloads for these APIs.
Scroll for all 23
Authentication, domain security, vulnerability disclosure, and trust-center signals.
OAuth scopes governing access to this provider's APIs.
Recommended x-agentic-access execution contracts for AI agents.
What developers build with this provider.
Scroll for all 8
Pre-built integrations with other platforms and tools.
Packaged solutions this provider offers.
Get Started 5
Portal, sign-up, and the first successful call
Agent Surfaces 1
MCP servers, agent skills, and machine-readable catalogs
Design & Contract 19
Pagination, idempotency, versioning, errors, and events
Scroll for all 19
Build 15
SDKs, sample code, and the tooling you integrate with
Scroll for all 15
Access & Security 3
Authentication, authorization, and security posture
Operate 3
Status, limits, changes, and where to get help
Commercial 3
Pricing, plans, and the legal terms of use
Company 2
The organization behind the API
Other 1
Properties that don't map to a standard resource type
Source (apis.yml)
aid: twitter
name: X (Twitter)
description: X (formerly Twitter) is a social media platform providing APIs for accessing and integrating with posts, users,
spaces, direct messages, lists, media, trends, and real-time streaming data. The X API enables developers to build applications
that read and write X data, manage advertising campaigns, and subscribe to real-time activity events. Available through
pay-per-use credit-based pricing with enterprise options for high-volume access.
type: Index
accessModel:
pricing: paid
onboarding: self-serve
trial: false
try_now: false
public: false
label: Paid · Self-serve signup
confidence: high
source:
- plans
- authentication
generated: '2026-07-22'
method: derived
image: https://abs.twimg.com/favicons/twitter.ico
url: https://raw.githubusercontent.com/api-evangelist/twitter/refs/heads/main/apis.yml
created: '2025-07-29'
modified: '2026-05-19'
specificationVersion: '0.19'
tags:
- Social Media
- Microblogging
- Real-Time Data
- Streaming
- Advertising
- Content
apis:
- aid: twitter:x-ads-api
name: X Ads API
description: The X Ads API enables programmatic management of advertising campaigns on the X platform including campaign
creation and scheduling, custom audience building, creative management (draft posts, cards, media), and analytics retrieval
for campaign performance metrics. Supports both synchronous and asynchronous analytics endpoints for reporting.
image: https://abs.twimg.com/favicons/twitter.ico
humanURL: https://docs.x.com/x-ads-api
baseURL: https://ads-api.x.com
properties:
- type: Documentation
url: https://docs.x.com/x-ads-api
- type: GettingStarted
url: https://docs.x.com/x-ads-api/getting-started/create-a-campaign
- type: RateLimits
url: https://docs.x.com/x-ads-api/fundamentals/rate-limiting
- type: PostmanCollection
url: postman/x-ads-api-postman-collection.json
tags:
- Advertising
- Campaigns
- Analytics
- Audiences
- Creatives
- aid: twitter:x-activity-api
name: X Activity API
description: The X Activity API provides real-time activity event subscriptions with sub-second delivery via streaming or
webhooks. Subscribe to profile updates, follows, likes, reposts, and other user activity events. Recently exited beta
and is now generally available.
image: https://abs.twimg.com/favicons/twitter.ico
humanURL: https://docs.x.com/x-activity-api
baseURL: https://api.x.com
properties:
- type: Documentation
url: https://docs.x.com/x-activity-api
tags:
- Activity
- Events
- Real-Time
- Streaming
- Webhooks
- aid: twitter:twitter-account-activity-api
name: X (Twitter) Account Activity API
description: Endpoints relating to retrieving, managing AAA subscriptions
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Account Activity
properties:
- type: OpenAPI
url: openapi/twitter-account-activity-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-activity-api
name: X (Twitter) Activity API
description: The Activity API from X (Twitter) — 3 operation(s) for activity.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Activity
properties:
- type: OpenAPI
url: openapi/twitter-activity-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-bookmarks-api
name: X (Twitter) Bookmarks API
description: Endpoints related to retrieving, managing bookmarks of a user
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Bookmarks
properties:
- type: OpenAPI
url: openapi/twitter-bookmarks-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-chat-api
name: X (Twitter) Chat API
description: The Chat API from X (Twitter) — 15 operation(s) for chat.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Chat
properties:
- type: OpenAPI
url: openapi/twitter-chat-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-communities-api
name: X (Twitter) Communities API
description: The Communities API from X (Twitter) — 2 operation(s) for communities.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Communities
properties:
- type: OpenAPI
url: openapi/twitter-communities-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-community-notes-api
name: X (Twitter) Community Notes API
description: The Community Notes API from X (Twitter) — 5 operation(s) for community notes.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Community Notes
properties:
- type: OpenAPI
url: openapi/twitter-community-notes-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-compliance-api
name: X (Twitter) Compliance API
description: Endpoints related to keeping X data in your systems compliant
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Compliance
properties:
- type: OpenAPI
url: openapi/twitter-compliance-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-connections-api
name: X (Twitter) Connections API
description: Endpoints related to streaming connections
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Connections
properties:
- type: OpenAPI
url: openapi/twitter-connections-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-direct-messages-api
name: X (Twitter) Direct Messages API
description: Endpoints related to retrieving, managing Direct Messages
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Direct Messages
properties:
- type: OpenAPI
url: openapi/twitter-direct-messages-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-general-api
name: X (Twitter) General API
description: Miscellaneous endpoints for general API functionality
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- General
properties:
- type: OpenAPI
url: openapi/twitter-general-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-likes-api
name: X (Twitter) Likes API
description: The Likes API from X (Twitter) — 2 operation(s) for likes.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Likes
properties:
- type: OpenAPI
url: openapi/twitter-likes-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-lists-api
name: X (Twitter) Lists API
description: Endpoints related to retrieving, managing Lists
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Lists
properties:
- type: OpenAPI
url: openapi/twitter-lists-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-media-api
name: X (Twitter) Media API
description: Endpoints related to Media
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Media
properties:
- type: OpenAPI
url: openapi/twitter-media-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-news-api
name: X (Twitter) News API
description: Endpoint for retrieving news stories
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- News
properties:
- type: OpenAPI
url: openapi/twitter-news-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-spaces-api
name: X (Twitter) Spaces API
description: Endpoints related to retrieving, managing Spaces
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Spaces
properties:
- type: OpenAPI
url: openapi/twitter-spaces-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-stream-api
name: X (Twitter) Stream API
description: Endpoints related to streaming
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Stream
properties:
- type: OpenAPI
url: openapi/twitter-stream-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-trends-api
name: X (Twitter) Trends API
description: The Trends API from X (Twitter) — 2 operation(s) for trends.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Trends
properties:
- type: OpenAPI
url: openapi/twitter-trends-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-tweets-api
name: X (Twitter) Tweets API
description: Endpoints related to retrieving, searching, and modifying Tweets
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Tweets
properties:
- type: OpenAPI
url: openapi/twitter-tweets-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-usage-api
name: X (Twitter) Usage API
description: The Usage API from X (Twitter) — 1 operation(s) for usage.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Usage
properties:
- type: OpenAPI
url: openapi/twitter-usage-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-users-api
name: X (Twitter) Users API
description: Endpoints related to retrieving, managing relationships of Users
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Users
properties:
- type: OpenAPI
url: openapi/twitter-users-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
- aid: twitter:twitter-webhooks-api
name: X (Twitter) Webhooks API
description: The Webhooks API from X (Twitter) — 5 operation(s) for webhooks.
humanURL: https://docs.x.com/x-api
baseURL: https://api.x.com/2
tags:
- Webhooks
properties:
- type: OpenAPI
url: openapi/twitter-webhooks-api-openapi.yml
- type: Documentation
url: https://docs.x.com/x-api
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: APIReference
url: https://docs.x.com/x-api
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: RateLimits
url: https://docs.x.com/x-api/fundamentals/rate-limits
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
- type: GraphQL
url: graphql/twitter-graphql.md
common:
- type: AgenticAccess
url: agentic-access/twitter-agentic-access.yml
- type: Authentication
url: authentication/twitter-authentication.yml
- type: OAuthScopes
url: scopes/twitter-scopes.yml
- type: Arazzo
url: arazzo/twitter-bookmark-and-remove-workflow.yml
name: X Search, Bookmark a Post, Then Remove the Bookmark
- type: Arazzo
url: arazzo/twitter-create-list-add-member-workflow.yml
name: X Create a List and Add a Member by Username
- type: Arazzo
url: arazzo/twitter-follow-list-by-id-workflow.yml
name: X Confirm a List and Follow It
- type: Arazzo
url: arazzo/twitter-follow-user-by-username-workflow.yml
name: X Follow a User by Their Username
- type: Arazzo
url: arazzo/twitter-followers-of-handle-workflow.yml
name: X List the Followers of a Handle
- type: Arazzo
url: arazzo/twitter-liked-posts-of-handle-workflow.yml
name: X List the Posts a Handle Has Liked
- type: Arazzo
url: arazzo/twitter-list-detail-and-members-workflow.yml
name: X Fetch a List's Details and Its Members
- type: Arazzo
url: arazzo/twitter-mentions-of-handle-workflow.yml
name: X List the Posts Mentioning a Handle
- type: Arazzo
url: arazzo/twitter-mute-user-by-username-workflow.yml
name: X Mute a User by Their Username
- type: Arazzo
url: arazzo/twitter-pin-owned-list-workflow.yml
name: X Pin the Authenticated User's First Owned List
- type: Arazzo
url: arazzo/twitter-post-engagement-audit-workflow.yml
name: X Audit Engagement on a User's Latest Post
- type: Arazzo
url: arazzo/twitter-post-like-cleanup-workflow.yml
name: X Create a Post, Like It, Then Delete It
- type: Arazzo
url: arazzo/twitter-quote-post-from-search-workflow.yml
name: X Quote a Post Found by Search
- type: Arazzo
url: arazzo/twitter-reply-to-latest-post-workflow.yml
name: X Reply to a User's Latest Post
- type: Arazzo
url: arazzo/twitter-repost-then-undo-workflow.yml
name: X Find a Post, Repost It, Then Undo the Repost
- type: Arazzo
url: arazzo/twitter-reposters-of-latest-post-workflow.yml
name: X List Who Reposted a Handle's Latest Post
- type: Arazzo
url: arazzo/twitter-search-recent-get-details-workflow.yml
name: X Search Recent Posts and Hydrate the Top Match
- type: Arazzo
url: arazzo/twitter-unfollow-user-by-username-workflow.yml
name: X Unfollow a User by Their Username
- type: Arazzo
url: arazzo/twitter-user-lookup-recent-posts-workflow.yml
name: X Resolve User and List Their Recent Posts
- type: LinkedIn
url: https://www.linkedin.com/company/x-corp
- type: Portal
url: https://developer.x.com/en/portal/dashboard
- type: GettingStarted
url: https://docs.x.com/x-api/getting-started/make-your-first-request
- type: Console
url: https://developer.x.com/en/portal/dashboard
- type: Signup
url: https://developer.x.com/en/portal/petition/essential/basic-info
- type: Authentication
url: https://docs.x.com/resources/fundamentals/authentication
- type: SDKs
url: https://docs.x.com/sdks-and-tools/python-xdk
title: Python XDK
- type: SDKs
url: https://docs.x.com/sdks-and-tools/typescript-xdk
title: TypeScript XDK
- type: CLI
url: https://docs.x.com/sdks-and-tools/xurl
title: xurl
- type: Pricing
url: https://developer.x.com/en/portal/petition/essential/basic-info
- type: TermsOfService
url: https://developer.x.com/en/developer-terms/agreement-and-policy
- type: PrivacyPolicy
url: https://x.com/en/privacy
- type: StatusPage
url: https://api.twitterstat.us/
- type: Support
url: https://devcommunity.x.com/
- type: Blog
url: https://blog.x.com/developer
- type: ReleaseNotes
url: https://docs.x.com/changelog
- type: GitHubOrganization
url: https://github.com/xdevplatform
- type: GitHubRepository
url: https://github.com/xdevplatform/xdk-python
description: Auto-generated Python SDK for the X API.
- type: GitHubRepository
url: https://github.com/xdevplatform/xdk-typescript
description: Auto-generated TypeScript SDK for the X API.
- type: GitHubRepository
url: https://github.com/xdevplatform/xurl
description: Official CLI for the X API with built-in authentication.
- type: GitHubRepository
url: https://github.com/xdevplatform/xdk
description: SDK generator for the X APIs producing auto-generated client libraries.
- type: GitHubRepository
url: https://github.com/xdevplatform/twitter-api-java-sdk
description: Official Java SDK for the Twitter/X API.
- type: GitHubRepository
url: https://github.com/xdevplatform/twitter-ruby-ads-sdk
description: Official Ruby SDK for the Twitter/X Ads API.
- type: Tools
url: https://github.com/xdevplatform/xmcp
description: MCP server for the X API enabling AI agent integration.
- type: Sandbox
url: https://github.com/xdevplatform/playground
description: Standalone local HTTP server simulating the X API v2 for testing and development with interactive web UI.
- type: CodeExamples
url: https://github.com/xdevplatform/samples
description: Official sample code for X API v2 endpoints.
- type: CodeExamples
url: https://github.com/xdevplatform/xchat-bot-python
description: Example DM reply bot in Python for X encrypted chat system.
- type: PostmanWorkspace
url: https://docs.x.com/sdks-and-tools/postman
- type: PostmanCollection
url: postman/x-api-v2-postman-collection.json
- type: X
url: https://x.com/XDevelopers
- type: Features
data:
- name: Post Management
description: Create, delete, edit, repost, quote, like, and bookmark posts programmatically.
- name: Real-Time Streaming
description: Access filtered streams, sampled streams, firehose, and language-specific streams for real-time post data.
- name: Full-Archive Search
description: Search the complete archive of public posts with advanced query operators and date filtering.
- name: User Lookup and Management
description: Look up users by ID or username, manage follows, blocks, mutes, and retrieve user metrics.
- name: Spaces
description: Discover and look up live audio Spaces with host, speaker, and listener data.
- name: Direct Messages
description: Send and receive direct messages, create conversations, and manage participants.
- name: Lists
description: Create, manage, and query lists including membership, followers, and pinned lists.
- name: Trends
description: Access personalized and geographic trending topics.
- name: Media Upload
description: Upload images, videos, and large files using chunked upload with metadata and subtitle support.
- name: Compliance
description: Access compliance streams and batch jobs for data deletion and user protection events.
- name: Communities and Community Notes
description: Access community data and community notes for collaborative fact-checking.
- name: Ad Campaign Management
description: Programmatically create, schedule, and manage advertising campaigns with targeting and budget controls.
- type: UseCases
data:
- name: Social Listening
description: Monitor brand mentions, sentiment, and conversations in real-time using filtered streams and search endpoints.
- name: Content Publishing
description: Automate post creation, scheduling, and thread publishing for social media management platforms.
- name: Analytics and Reporting
description: Retrieve post metrics, user engagement data, and campaign performance for business intelligence.
- name: Bot Development
description: Build automated accounts that respond to mentions, post updates, or provide customer service.
- name: Research and Academic Analysis
description: Access full-archive search and streaming data for social media research and trend analysis.
- name: Advertising Automation
description: Programmatically manage ad campaigns, audiences, creatives, and bidding strategies at scale.
- name: Real-Time Event Monitoring
description: Track live events, breaking news, and trending topics with streaming APIs and trend endpoints.
- name: Community Management
description: Manage followers, lists, and direct messages for community engagement and moderation.
- type: Integrations
data:
- name: Postman
description: Official Postman collections for exploring and testing X API endpoints interactively.
- name: MCP Servers
description: Integration with AI tools and agents through Model Context Protocol servers.
- name: Webhook Delivery
description: Real-time event delivery via webhooks for the Activity API.
- type: Solutions
data:
- name: X API Pay-Per-Use
description: Credit-based pricing with no commitments. Pay only for what you use with access to core X API endpoints.
- name: X API Enterprise
description: High-volume access with custom rate limits, dedicated account management, full firehose, and premium support.
- name: X Ads API
description: Advertising platform API for campaign management, audience targeting, creative management, and analytics.
maintainers:
- FN: Kin Lane
email: kin@apievangelist.com