Логотип Twitter Scraper Api

Twitter Scraper Api

Спільнота
scavio-ai
twitter-scraper-api

Twitter (X) scraper API: search tweets and people, read a tweet with its replies and retweeters, pull user profiles, tweets, replies, media, followers and followings, find X Communities and read their details and posts, plus trending topics by country. Returns text, favorites, retweets, replies, quotes, views and follower counts as JSON. 14 endpoints, 1 credit each.

Огляд

Видавецьscavio-ai
Репозиторійskills
Назва навичкиtwitter-scraper-api
Зірки
67
Форки
0
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем scavio-ai. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Twitter Scraper Api у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/scavio-ai/skills/tree/main/skills/twitter-scraper-api
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/twitter-scraper-api .claude/skills/twitter-scraper-api
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Twitter Scraper Api в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Twitter Scraper Api, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Twitter Scraper Api не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Twitter (X) Scraper API - Tweet Search, Profiles, Followers

Search X, read a single tweet with its replies and retweeters, pull a user's profile and their tweets, replies, media, followers, and followings, find X Communities and read their details and posts, and get trending topics by country. All endpoints return structured JSON.

When to trigger

Use this skill when the user asks to:

  • Search tweets or people on X for a topic or keyword
  • Read a tweet's full details, its replies, or who retweeted it
  • Look up a user's profile by handle
  • Pull a user's tweets, replies, or media
  • List a user's followers or the accounts they follow
  • Get trending topics for a country
  • Find X Communities on a topic, read a Community's details and rules, or pull its posts
  • Monitor brand, competitor, or campaign mentions
  • Build RAG or sentiment pipelines that need social context

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. The smallest purchase is 2,500 credits for $25, and monthly plans work out cheaper per credit if the usage is steady rather than one-off.

Every request is a POST with a JSON body and:

Authorization: Bearer $SCAVIO_API_KEY

Endpoints

Base URL: https://api.scavio.dev. All paths are under /api/v1/x. Every endpoint costs 1 credit.

EndpointCreditsDescription
POST /api/v1/x/search1Search tweets and people
POST /api/v1/x/tweet1Full details for a single tweet
POST /api/v1/x/tweet/comments1Replies to a tweet (ranked or chronological)
POST /api/v1/x/tweet/retweeters1Users who retweeted a tweet
POST /api/v1/x/user1Profile details for a user
POST /api/v1/x/user/tweets1A user's tweets
POST /api/v1/x/user/replies1A user's tweets and replies
POST /api/v1/x/user/media1A user's media tweets
POST /api/v1/x/user/followers1A user's followers
POST /api/v1/x/user/followings1Accounts a user follows
POST /api/v1/x/trending1Trending topics for a country
POST /api/v1/x/search/communities1Search X Communities by keyword
POST /api/v1/x/community1One Community's details and rules
POST /api/v1/x/community/tweets1Posts in a Community (relevance or recency)

Workflow

  1. Find tweets or people: call /x/search with search. Use search_type to switch category (Top, Latest, People, Photos, Videos). Read timeline[].tweet_id.
  2. Read a tweet: call /x/tweet with tweet_id for full metrics.
  3. Read the conversation: call /x/tweet/comments with tweet_id (set rank: latest for chronological), and /x/tweet/retweeters for who retweeted.
  4. Look up a user: call /x/user with screen_name (a handle without @).
  5. User activity: call /x/user/tweets, /x/user/replies, or /x/user/media with screen_name.
  6. Social graph: call /x/user/followers and /x/user/followings.
  7. Discovery: call /x/trending with a country name.
  8. Communities: call /x/search/communities with keyword, take a community_id, then /x/community for its details and rules and /x/community/tweets (optional ranking) for its posts.

Paginated endpoints return next_cursor (and often prev_cursor); pass next_cursor back as cursor for the next page. Stop when it is null.

Parameters

Search (/search)

ParameterTypeDefaultDescription
searchstringrequiredSearch query (1-500 chars)
search_typestringTopTop, Latest, People, Photos, Videos
cursorstring--Pagination cursor from a prior next_cursor

Tweet (/tweet)

tweet_id* — a tweet id, e.g. 1808168603721650364.

Tweet comments (/tweet/comments)

ParameterTypeDefaultDescription
tweet_idstringrequiredTweet id
rankstringtoptop (ranked) or latest (chronological)
cursorstring--Pagination cursor

Tweet retweeters (/tweet/retweeters)

tweet_id* , cursor (optional).

User (/user)

screen_name* — an X handle without @, e.g. elonmusk.

User tweets / replies / media / followers / followings

ParameterTypeDefaultDescription
screen_namestringrequiredHandle without @
cursorstring--Pagination cursor

Trending (/trending)

country (optional, default UnitedStates) — a country name.

Community search (/search/communities)

ParameterTypeDefaultDescription
keywordstringrequiredSearch query (1-500 chars) — this field is keyword, not search
cursorstring--Pagination cursor

Community (/community)

community_id* — a numeric Community id from /search/communities.

Community tweets (/community/tweets)

ParameterTypeDefaultDescription
community_idstringrequiredNumeric Community id
rankingstring--Relevance or Recency; omit for the Community's own ordering
cursorstring--Pagination cursor

Examples

python
import requests

BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1. Search — use "search", not "query"
results = requests.post(f"{BASE}/api/v1/x/search", headers=HEADERS,
    json={"search": "AI agents", "search_type": "Latest"}).json()

tweet_id = results["data"]["timeline"][0]["tweet_id"]

# 2. Full tweet + its replies
tweet = requests.post(f"{BASE}/api/v1/x/tweet", headers=HEADERS,
    json={"tweet_id": tweet_id}).json()

comments = requests.post(f"{BASE}/api/v1/x/tweet/comments", headers=HEADERS,
    json={"tweet_id": tweet_id, "rank": "latest"}).json()

# 3. A user's recent tweets
user_tweets = requests.post(f"{BASE}/api/v1/x/user/tweets", headers=HEADERS,
    json={"screen_name": "elonmusk"}).json()

# 4. Trending in a country
trending = requests.post(f"{BASE}/api/v1/x/trending", headers=HEADERS,
    json={"country": "UnitedStates"}).json()

# 5. Find a Community, then read its newest posts
found = requests.post(f"{BASE}/api/v1/x/search/communities", headers=HEADERS,
    json={"keyword": "crypto"}).json()
community_id = found["data"]["communities"][0]["community_id"]

posts = requests.post(f"{BASE}/api/v1/x/community/tweets", headers=HEADERS,
    json={"community_id": community_id, "ranking": "Recency"}).json()
for p in posts["data"]["timeline"]:
    print(p["screen_name"], p["favorites"], p["text"][:80])

Response shapes

Every response uses the envelope { data, response_time, credits_used, credits_remaining }. Key data fields per endpoint:

  • search — timeline[] (type, tweet_id, screen_name, text, lang, created_at, favorites, retweets, replies, quotes, bookmarks, views, source), next_cursor, prev_cursor.
  • tweet — tweet_id, text, display_text, created_at, lang, favorites, retweets, replies, quotes, bookmarks, views, source, reply_to.
  • tweet/comments — timeline[] (tweet_id, screen_name, text, created_at, favorites, ...), next_cursor, prev_cursor.
  • tweet/retweeters — retweeters[] (user_id, screen_name, name, description, followers_count, friends_count, statuses_count, media_count, profile_image), next_cursor.
  • user — rest_id, screen_name, name, description, followers_count, friends_count, statuses_count, media_count, blue_verified, avatar, header_image, created_at, location, website.
  • user/tweets — pinned (a tweet), timeline[] (tweet_id, text, created_at, favorites, retweets, replies, quotes, views, conversation_id), next_cursor.
  • user/replies — timeline[] (same tweet item shape), user, next_cursor.
  • user/media — timeline[] (same tweet item shape), user, next_cursor.
  • user/followers — followers_count, followers[] (user_id, screen_name, name, description, followers_count, blue_verified, location), next_cursor.
  • user/followings — following[] (same user item shape), next_cursor, more_users.
  • trending — trends[] (name, description, context).
  • search/communities — communities[] (community_id, name, member_count, primary_topic, is_nsfw, banner), next_cursor, has_more.
  • community — community_id, name, description, created_at, member_count, primary_topic, is_nsfw, banner, rules[] (name, description).
  • community/tweets — timeline[] (same tweet item shape as search, plus author{user_id,name,screen_name,blue_verified} and media{photos[],videos[]}), next_cursor, has_more.
json
{
  "data": {
    "timeline": [
      {
        "type": "tweet",
        "tweet_id": "1808168603721650364",
        "screen_name": "OpenAIDevs",
        "text": "Shipping agent tooling this week.",
        "lang": "en",
        "created_at": "2026-06-30T18:04:11+0000",
        "favorites": 4821,
        "retweets": 902,
        "replies": 311,
        "quotes": 77,
        "views": 512340,
        "source": "Twitter Web App"
      }
    ],
    "next_cursor": "DAADDAABCgAB...",
    "prev_cursor": "DAABCgABCgAB..."
  },
  "credits_used": 1,
  "credits_remaining": 999
}

Guardrails

  • The search field is search, not query — this differs from some other Scavio endpoints. Community search is the exception: it takes keyword.
  • screen_name is a handle without the leading @.
  • Every X endpoint costs 1 credit. Inform the user before paginating through many pages.
  • Never fabricate tweet ids, handles, metrics, or replies. Only return API data.
  • Surface engagement metrics as-is; do not round or invent counts.

Failure handling

  • 400 means an invalid or missing parameter (e.g. no tweet_id or screen_name) — fix and retry.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 / 503 mean upstream is temporarily unavailable. Wait a few seconds before retrying.
  • If search returns no results, suggest different keywords or a different search_type.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

LangChain

bash
pip install langchain-scavio==4.0.2
python
from langchain_scavio import ScavioSearchTool
tool = ScavioSearchTool(engine="x")

Поширені запитання

Що робить навичка ШІ Twitter Scraper Api?

Twitter (X) scraper API: search tweets and people, read a tweet with its replies and retweeters, pull user profiles, tweets, replies, media, followers and followings, find X Communities and read their details and posts, plus trending topics by country. Returns text, favorites, retweets, replies, quotes, views and follower counts as JSON. 14 endpoints, 1 credit each.

Навіщо використовувати Twitter Scraper Api у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Twitter Scraper Api — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Twitter Scraper Api у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/scavio-ai/skills/tree/main/skills/twitter-scraper-api. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Twitter Scraper Api?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Twitter Scraper Api?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Twitter Scraper Api — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Twitter Scraper Api?

Так. Навичку опубліковано на GitHub: scavio-ai, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇