
X Api
Wraps the X API for posting tweets, threads, timeline reads, search, and analytics. Covers both OAuth 2.0 bearer tokens for read-heavy work and OAuth 1.0a for anything that writes or manages your account. The source is pragmatic about rate limits: it tells you to check headers at runtime instead of trusting static tables, which is the right call given how often X changes quotas and access tiers. Includes patterns for media uploads, thread construction, and voice-matched content when paired with brand-voice and content-engine. One warning: the skill flags itself as drift-prone because X's developer platform moves fast, so verify current docs before shipping anything that depends on specific endpoints or write permissions.
- skills.sh installs
- 5.4K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill x-api --agent claude-codeInstalls into .claude/skills of the current project.
Files
X API
Drift-prone skill. X API endpoints, access tiers, quotas, and write permissions change frequently. Verify current developer docs and account access before quoting rate limits or implementing a posting/search flow.
Programmatic interaction with X (Twitter) for posting, reading, searching, and analytics.
When to Activate
- User wants to post tweets or threads programmatically
- Reading timeline, mentions, or user data from X
- Searching X for content, trends, or conversations
- Building X integrations or bots
- Analytics and engagement tracking
- User says "post to X", "tweet", "X API", or "Twitter API"
Authentication
OAuth 2.0 Bearer Token (App-Only)
Best for: read-heavy operations, search, public data.
# Environment setup
export X_BEARER_TOKEN="your-bearer-token"
import os
import requests
bearer = os.environ["X_BEARER_TOKEN"]
headers = {"Authorization": f"Bearer {bearer}"}
# Search recent tweets
resp = requests.get(
"https://api.x.com/2/tweets/search/recent",
headers=headers,
params={"query": "claude code", "max_results": 10}
)
tweets = resp.json()
OAuth 1.0a (User Context)
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Backend & APIs, Security, Data Science & ML, Marketing & SEO
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Rules Distill5.4K
- Content Hash Cache Pattern5.4K
- Network Config Validation5.4K
- Dmux Workflows5.4K
- Quarkus Patterns5.4K
- Ecc Tools Cost Audit5.4K
- Foundation Models On Device5.4K
- Network Interface Health5.4K
- Netmiko Ssh Automation5.4K
- Swift Concurrency 6 25.4K
- Opensource Pipeline5.4K
- Plankton Code Quality5.4K
- Defi Amm Security5.4K
- Gan Style Harness5.4K
- Homelab Pihole Dns5.4K
- Returns Reverse Logistics5.4K
- Benchmark Optimization Loop5.4K
- Customer Billing Ops5.4K
- Openclaw Persona Forge5.4K
- Google Workspace Ops5.4K
- Hookify Rules5.4K
- Connections Optimizer5.4K
- Swift Protocol Di Testing5.4K
- Energy Procurement5.4K