x-api

Publish tweets to X via the official API with OAuth 1.0a.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/rumihut/job-researcher-landing --skill x-api-rumihut
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-api
Source: https://github.com/rumihut/job-researcher-landing/tree/main/skills/x-api
Command: npx skills add https://github.com/rumihut/job-researcher-landing --skill x-api-rumihut

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires twitter-api-v2, and includes scripts (resource) components.

What problem does it solve?

Enables reliable posting to X by using the official API with OAuth 1.0a, avoiding bot-detection issues seen with cookie-based approaches.

Core Features & Use Cases

  • Official API posting with OAuth 1.0a for reliability and control.
  • Flexible credential management: environment variables or a local config file.
  • Use case: publish tweets programmatically or automate content updates to X.

Quick Start

Run the x-post.mjs script with your tweet text to publish a tweet using the official X API.

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 programmatically using the official Twitter API?

To post tweets programmatically using the official Twitter API, configure your OAuth 1.0a credentials via environment variables or a local config file, then invoke the script with your text. It returns the tweet URL on success and provides clear errors when credentials are missing or invalid.

Why does cookie-based Twitter posting fail and how does OAuth 1.0a fix it?

Cookie-based Twitter posting frequently encounters bot-detection issues. Using the official Twitter API with OAuth 1.0a avoids these limitations, enabling reliable posting and greater control over your automated publishing workflows.

What's the best way to configure Twitter API credentials for automation scripts?

The best way to configure Twitter API credentials for automation scripts is to use environment variables or a local config file. This allows the script to securely authenticate via OAuth 1.0a and publish tweets.

Can I use the twitter-api-v2 package to automate posting to X with OAuth 1.0a?

Yes, you can use the twitter-api-v2 package to automate posting to X. The Skill leverages this dependency to handle OAuth 1.0a authentication and reliably publish tweets programmatically.

What happens when Twitter API credentials are missing or invalid during a tweet post?

When Twitter API credentials are missing or invalid during a tweet post, the script provides clear errors. This ensures you can quickly diagnose authentication issues before the OAuth 1.0a handshake is attempted.