x-api

Post tweets and threads via the X API with OAuth authentication.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/TakMczk/copilot-cli-ecc --skill x-api-takmczk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-api
Source: https://github.com/TakMczk/copilot-cli-ecc/tree/main/.github/skills/x-api
Command: npx skills add https://github.com/TakMczk/copilot-cli-ecc --skill x-api-takmczk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, requests-oauthlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies programmatic interaction with the X (Twitter) API, enabling automated posting of tweets and threads, timeline reading, content searching, and analytics.

Core Features & Use Cases

  • Tweet & Thread Posting: Programmatically publish single tweets or multi-tweet threads.
  • Data Retrieval: Fetch user timelines, mentions, and specific tweets.
  • Search Functionality: Search for tweets based on keywords, users, and other criteria.
  • Authentication Management: Provides examples for both OAuth 1.0a (User Context) and OAuth 2.0 Bearer Token (App-Only) authentication.
  • Media Upload: Includes a process for uploading media (images) and attaching them to tweets.

Quick Start

Use the x-api skill to post the following text to X: "Hello from Antigravity AI!".

Frequently Asked Questions about x-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate posting tweets and threads using the X API?

Automate posting tweets and threads by using the X API integration to programmatically publish single tweets or multi-tweet threads, handling OAuth authentication and rate limits automatically.

Does this X API integration support OAuth 2.0 Bearer Token for app-only operations?

Yes, this X API integration supports OAuth 2.0 Bearer Token for app-only operations, alongside OAuth 1.0a for user context, enabling both reading timelines and posting tweets securely.

Can I upload media and attach images to tweets via the X API?

Yes, you can upload media and attach images to tweets via the X API, as the integration includes a specific process for media uploads before attaching them to your programmatic posts.

How do I search for tweets and fetch user timelines programmatically?

Search for tweets and fetch user timelines programmatically by utilizing the data retrieval features, which support searching based on keywords and retrieving specific user mentions or timelines.

What are the limitations of automating social media posting with the X API?

Limitations of automating social media posting with the X API include strict rate limit handling requirements and dependency on proper OAuth configuration to prevent failed requests and authentication errors.

Do I need requests-oauthlib to manage X API authentication flows?

Yes, you need the requests-oauthlib library to manage X API authentication flows, as it provides the necessary OAuth 1.0a and OAuth 2.0 protocols required for user context and app-only operations.