Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Posts, reads, and searches X (Twitter) content using the x-cli tool or the X API v2.
79% 88%+8 ptsof test cases passed
Passed 21 of 24 test cases with the skill, and 19 of 24 without it.
3 of 3 safety checks passed
Not used yet
Read, post, and search X content using the x-cli command-line tool or the X API v2 directly. Requires X API credentials.
Register at https://developer.twitter.com → Create Project → Create App. Get:
API_KEY, API_SECRETACCESS_TOKEN, ACCESS_TOKEN_SECRETBEARER_TOKEN (for read-only app-only auth)$env:X_BEARER_TOKEN = "your_bearer_token"
$env:X_API_KEY = "your_api_key"
$env:X_API_SECRET = "your_api_secret"
$env:X_ACCESS_TOKEN = "your_access_token"
$env:X_ACCESS_SECRET = "your_access_secret"
import requests, os
def search_tweets(query, max_results=10):
headers = {"Authorization": f"Bearer {os.environ['X_BEARER_TOKEN']}"}
params = {
"query": f"{query} -is:retweet lang:en",
"max_results": max_results,
"tweet.fields": "created_at,author_id,public_metrics"
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.