<< All versions

Skill v1.0.0

currentAutomated scan100/100
scrapall/scrapall-agent-skills/twitter
──Details
PublishedNovember 18, 2026 at 04:02 AM
Content Hashsha256:9d0055d0191a8b5c...
Git SHA093b00adf323
──Files
Files (1 file, 2.8 KB)
SKILL.md2.8 KBactive
SKILL.md · 63 lines · 2.8 KB

name: scrapall-twitter description: "Use when the user asks for public Twitter data (Community, Community Tweets, Profile, Search Posts, Transcript, Tweet Details, User Tweets). Calls the Scrapall REST API with the X-Scapi-Key header." metadata: version: "1.0.0"


Twitter API skill

7 endpoints. Docs: https://scrapall.bipsport.com/docs/twitter/

Auth

Send your key in the X-Scapi-Key header on every request. Read it from the SCRAPALL_API_KEY environment variable; never hard-code it.

bash
curl -sS "https://api.scrapall.bipsport.com/scapi/v1/twitter/community?url=https://x.com/i/communities/1926186499399139650" -H "X-Scapi-Key: $SCRAPALL_API_KEY"

Plan access: paid plans (Free plan covers Facebook and Instagram only).

Endpoints

MethodPathWhat it doesParams (required)Credits/call
GET/v1/twitter/communityCommunity`url`1
GET/v1/twitter/community_tweetsCommunity Tweets`url`1
GET/v1/twitter/userProfile`handle`1
GET/v1/twitter/search_postsSearch Posts`query`1
GET/v1/twitter/tweetTweet Details`url`1
GET/v1/twitter/tweet_captionsTranscript`url`; optional: allow_long_transcription1 (more with some params)
GET/v1/twitter/user_tweetsUser Tweets`handle`1

Example agent workflow

Goal: "Find the 10 most recent items on Twitter for a given account or keyword and summarize what performs best."

  1. Call GET /v1/twitter/search_posts with the account or keyword the user gave.
  2. Keep the 10 newest items. Paginate with the cursor field only if fewer than 10 came back.
  3. For the top 3 items by engagement, call GET /v1/twitter/community for details.
  4. Report a table (link, date, engagement) plus 3 patterns worth copying. Cite every URL.
  5. Budget check: estimate credits from the table above before looping; stop on HTTP 402.

Errors

Error bodies look like {"error": {"code": "...", "message": "..."}}.

HTTPerror.codeMeaningAgent action
401invalid_keyMissing or wrong X-Scapi-Key headerCheck SCRAPALL_API_KEY; get a key at /account
402insufficient_creditsNot enough credits leftStop and ask the user to top up
402plan_expiredPlan period endedAsk the user to renew
403plan_restrictedFree plan covers Facebook + Instagram onlyUpgrade (buy_url in body)
404not_foundUnknown path or methodUse a path from the table above
429rate_limitedToo many requestsBack off (2s, 4s, 8s) and retry
503upstream_unavailableTemporary failure, not chargedRetry later

Examples

  • curl: examples/curl/twitter.sh
  • Python: examples/python/twitter.py
  • JavaScript: examples/javascript/twitter.mjs
All versions