{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x-twitter-api",
    "name": "X Twitter",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Zaaachary/x-twitter-api",
    "canonicalUrl": "https://clawhub.ai/Zaaachary/x-twitter-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/x-twitter-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x-twitter-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/get_article.py",
      "scripts/get_trends.py",
      "scripts/search_tweets.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x-twitter-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/x-twitter-api",
    "agentPageUrl": "https://openagent3.xyz/skills/x-twitter-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-twitter-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-twitter-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "X (Twitter) API",
        "body": "Search tweets, retrieve article content, and fetch trending topics from X (Twitter)."
      },
      {
        "title": "Features",
        "body": "Search Tweets: Search recent tweets (last 7 days) with advanced query operators\nGet Article Content: Retrieve tweet and article details by URL or ID\nTrending Topics: Fetch trending topics (requires Basic tier or higher)\nUser Info: Get user profile and tweet history"
      },
      {
        "title": "Setup",
        "body": "# Set environment variable\nexport X_BEARER_TOKEN=\"your_bearer_token_here\"\n\n# Or temporarily for this session\nX_BEARER_TOKEN=\"your_token\" python3 scripts/search_tweets.py\n\nGet API Token:\n\nVisit https://developer.x.com\nCreate a project and app\nGenerate Bearer Token in \"Keys and Tokens\" tab\nSet the environment variable"
      },
      {
        "title": "Search Tweets",
        "body": "# Basic search\npython3 scripts/search_tweets.py --query \"AI OR 人工智能\"\n\n# Advanced search (Chinese original tweets only)\npython3 scripts/search_tweets.py --query \"AI -is:retweet lang:zh\" --count 10\n\n# Search by user\npython3 scripts/search_tweets.py --query \"from:elonmusk\" --count 5\n\n# Search hashtags\npython3 scripts/search_tweets.py --query \"#Crypto OR #Blockchain\"\n\nQuery Operators:\n\n-is:retweet - Original tweets only\nlang:zh - Chinese language\nfrom:username - Tweets from specific user\nhas:links - Tweets with links\nis:verified - Verified users only"
      },
      {
        "title": "Get Article/Tweet Content",
        "body": "# By URL (article or tweet)\npython3 scripts/get_article.py --url \"https://x.com/username/article/123456789\"\n\n# By Tweet ID\npython3 scripts/get_article.py --id \"123456789\""
      },
      {
        "title": "Get Trending Topics",
        "body": "# Global trends\npython3 scripts/get_trends.py\n\n# Trends by WOEID (Yahoo Where On Earth ID)\npython3 scripts/get_trends.py --woeid 1  # Global\npython3 scripts/get_trends.py --woeid 23424977  # USA"
      },
      {
        "title": "API Limits",
        "body": "TierCostTweets/MonthNotesFree$05001 request/day, testing onlyBasic$200500,000Minimum production tierPro$5,0002,000,000+Real-time streaming\n\nFree tier restrictions:\n\n500 tweets/month (~16-17/day)\n1 request/day per endpoint\nNo publishing/liking\nSuitable for development testing only"
      },
      {
        "title": "Output Formats",
        "body": "JSON: Structured data with all fields\nPretty: Human-readable formatted text\nSave: Optional file export (JSON/Markdown)"
      },
      {
        "title": "Error Handling",
        "body": "The scripts automatically handle:\n\nRate limiting (429 errors)\nInvalid tokens (401 errors)\nNetwork errors with retry logic\nMissing required parameters"
      },
      {
        "title": "Example 1: Search AI tweets",
        "body": "python3 scripts/search_tweets.py --query \"AI OR 人工智能 -is:retweet\" --count 5 --output pretty"
      },
      {
        "title": "Example 2: Monitor specific user",
        "body": "python3 scripts/search_tweets.py --query \"from:username\" --count 10 --save output.json"
      },
      {
        "title": "Example 3: Get article and analyze",
        "body": "python3 scripts/get_article.py --url \"https://x.com/user/article/id\" --output markdown --save article.md"
      }
    ],
    "body": "X (Twitter) API\n\nSearch tweets, retrieve article content, and fetch trending topics from X (Twitter).\n\nFeatures\nSearch Tweets: Search recent tweets (last 7 days) with advanced query operators\nGet Article Content: Retrieve tweet and article details by URL or ID\nTrending Topics: Fetch trending topics (requires Basic tier or higher)\nUser Info: Get user profile and tweet history\nSetup\n# Set environment variable\nexport X_BEARER_TOKEN=\"your_bearer_token_here\"\n\n# Or temporarily for this session\nX_BEARER_TOKEN=\"your_token\" python3 scripts/search_tweets.py\n\n\nGet API Token:\n\nVisit https://developer.x.com\nCreate a project and app\nGenerate Bearer Token in \"Keys and Tokens\" tab\nSet the environment variable\nUsage\nSearch Tweets\n# Basic search\npython3 scripts/search_tweets.py --query \"AI OR 人工智能\"\n\n# Advanced search (Chinese original tweets only)\npython3 scripts/search_tweets.py --query \"AI -is:retweet lang:zh\" --count 10\n\n# Search by user\npython3 scripts/search_tweets.py --query \"from:elonmusk\" --count 5\n\n# Search hashtags\npython3 scripts/search_tweets.py --query \"#Crypto OR #Blockchain\"\n\n\nQuery Operators:\n\n-is:retweet - Original tweets only\nlang:zh - Chinese language\nfrom:username - Tweets from specific user\nhas:links - Tweets with links\nis:verified - Verified users only\nGet Article/Tweet Content\n# By URL (article or tweet)\npython3 scripts/get_article.py --url \"https://x.com/username/article/123456789\"\n\n# By Tweet ID\npython3 scripts/get_article.py --id \"123456789\"\n\nGet Trending Topics\n# Global trends\npython3 scripts/get_trends.py\n\n# Trends by WOEID (Yahoo Where On Earth ID)\npython3 scripts/get_trends.py --woeid 1  # Global\npython3 scripts/get_trends.py --woeid 23424977  # USA\n\nAPI Limits\nTier\tCost\tTweets/Month\tNotes\nFree\t$0\t500\t1 request/day, testing only\nBasic\t$200\t500,000\tMinimum production tier\nPro\t$5,000\t2,000,000+\tReal-time streaming\n\nFree tier restrictions:\n\n500 tweets/month (~16-17/day)\n1 request/day per endpoint\nNo publishing/liking\nSuitable for development testing only\nOutput Formats\nJSON: Structured data with all fields\nPretty: Human-readable formatted text\nSave: Optional file export (JSON/Markdown)\nError Handling\n\nThe scripts automatically handle:\n\nRate limiting (429 errors)\nInvalid tokens (401 errors)\nNetwork errors with retry logic\nMissing required parameters\nExamples\nExample 1: Search AI tweets\npython3 scripts/search_tweets.py --query \"AI OR 人工智能 -is:retweet\" --count 5 --output pretty\n\nExample 2: Monitor specific user\npython3 scripts/search_tweets.py --query \"from:username\" --count 10 --save output.json\n\nExample 3: Get article and analyze\npython3 scripts/get_article.py --url \"https://x.com/user/article/id\" --output markdown --save article.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Zaaachary/x-twitter-api",
    "publisherUrl": "https://clawhub.ai/Zaaachary/x-twitter-api",
    "owner": "Zaaachary",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x-twitter-api",
    "downloadUrl": "https://openagent3.xyz/downloads/x-twitter-api",
    "agentUrl": "https://openagent3.xyz/skills/x-twitter-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-twitter-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-twitter-api/agent.md"
  }
}