Skip to main content

twitter

Query Twitter/X — search tweets, get user profiles, timelines, and followers via the API v2.

Source facts

Repository
ThinkfleetAI/thinkfleet-engine
Last source activity
February 1, 2026 at 16:21
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
twitter
description
Query Twitter/X — search tweets, get user profiles, timelines, and followers via the API v2.
metadata
{"thinkfleetbot":{"emoji":"🐦","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Twitter / X Search tweets, get user profiles, and query timelines via the Twitter API v2. ## Environment Variables - `TWITTER_BEARER_TOKEN` - Bearer token ## Search tweets ```bash curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \ "https://api.twitter.com/2/tweets/search/recent?query=SEARCH_QUERY&max_results=10&tweet.fields=created_at,public_metrics" | jq '.data[] | {id, text, created_at, metrics: .public_metrics}' ``` ## Get user profile ```bash curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \ "https://api.twitter.com/2/users/by/username/USERNAME?user.fields=public_metrics,description" | jq '.data | {id, name, username, description, metrics: .public_metrics}' ``` ## Get user timeline ```bash curl -s -H "Authorization: Bearer $TWITTER_BEARER_TOKEN" \ "https://api.twitter.com/2/users/USER_ID/tweets?max_results=10&tweet.fields=created_at,public_metrics" | jq '.data[] | {id, text, created_at}' ``` ## Notes - Rate limits apply per endpoint. Check Twitter API docs. - Read-only with bearer token; posting requires OAuth 1.0a user context.
View on GitHub