x-api

Post tweets and threads, read timelines, and search tweets via X API.

Updated Sep 13, 2025
One-click install
npx skills add https://github.com/llmh333/employee_management_spring --skill x-api-llmh333
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-api
Source: https://github.com/llmh333/employee_management_spring/tree/main/.gemini/skills/x-api
Command: npx skills add https://github.com/llmh333/employee_management_spring --skill x-api-llmh333

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you integrate with X (Twitter) so you can reliably post, read, search, and analyze content without doing everything manually in the UI.

Core Features & Use Cases

  • Posting Tweets and Threads: Create single tweets or multi-tweet threads (including replies) for automation and bot workflows.
  • Reading Timelines and User Data: Fetch recent tweets from users and retrieve relevant fields for downstream processing.
  • Searching and Analytics: Search for tweets using queries and pull public engagement metrics for reporting and insights.

Quick Start

Use the x-api skill to post a tweet by providing your OAuth user-context credentials and the tweet text you want to publish.

Frequently Asked Questions about x-api

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

FAQPage Schema
How do I post tweets and threads programmatically using OAuth?

To post tweets and threads programmatically, you use OAuth 1.0a user context credentials to authenticate and submit tweet text. This enables automated bot workflows for single tweets, multi-tweet threads, and replies without manual UI interaction.

What is the difference between Bearer token and OAuth 1.0a for X API read and write operations?

For X API operations, Bearer tokens are used for read-heavy access like fetching timelines and searching tweets, while OAuth 1.0a user context is required for posting tweets. This separation ensures reliable authentication for different read and write scenarios.

How do I extract public engagement metrics and tweet analytics from X?

You extract public engagement metrics by performing tweet searches using queries and pulling relevant fields. This fetches public data for engagement tracking, generating reporting insights, and downstream processing of user content.

How do I handle rate limiting and error responses when automating X content workflows?

When automating X content workflows, you handle rate limiting by monitoring runtime rate-limit headers and managing error responses. This ensures reliable extraction of public data and continuous posting without hitting API access thresholds.

Can I fetch recent tweets from user timelines for downstream data processing?

Yes, you can fetch recent tweets from user timelines by using Bearer token authentication to retrieve relevant fields. This extracts public timeline data for downstream processing, engagement tracking, and automated content workflows.