Spiral gives your agent every tool with one account. Browse the tools →

Claude Code · Social Media

How to Use X (Twitter) profile in Claude Code

Fetch an X account's bio, follower and following counts, post and like totals, location, profile image, and blue checkmark status. Use it to compare public brand accounts or refresh a creator brief; the response describes the account rather than returning its posts.

Prompts to try with X (Twitter) profile in Claude Code

Copy an example into Claude Code, or ask in your own words.

Use X (Twitter) profile for @Nike, @adidas, and @PUMA, then add a comparison table to this project with bios, follower counts, following counts, and post totals.

X (Twitter) profileClaude Code
Try asking
  • Use X (Twitter) profile for @NASA and populate this project's public account card with its display name, bio, profile image, and follower count.

  • Use X (Twitter) profile for @Duolingo and add a snapshot comparison to this project's reporting code that highlights changes in bio and follower count.

  • Use X (Twitter) profile for @MrBeast and @MKBHD, then create a CSV in this project with their public bios, follower counts, following counts, and post totals.

  • Use X (Twitter) profile for @GitHub and update this project's account summary component with the returned profile image and audience statistics.

How to set up X (Twitter) profile in Claude Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run X (Twitter) profile

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "scrapecreators",
        "model": "scrapecreators/twitter-profile",
        "input": {
          "handle": "Austen"
        }
      }'

Then paste one of the prompts above: Claude Code finds X (Twitter) profile on Spiral, shows the price and runs it.

X (Twitter) profile providers and prices

Spiral runs X (Twitter) profile through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
X (Twitter) · Profile
scrapecreators/twitter-profile

Settings you can ask for

Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Cache max age1d, 3d, 7d, 14d, or 30d

If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). See the Caching page for details.

Every API field of X (Twitter) · Profile is on its tool page: open its card above.

What can you do with X (Twitter) profile in Claude Code?

Build a brand comparison table populated with X bios, avatars, and audience totals. A coding agent can add snapshot comparisons to the project so reports show observed follower changes and profile edits.

Compare brand audience sizes

Compare follower and following totals for public brand accounts such as Nike, adidas, and PUMA in a competitor briefing.

Review public creator candidates

Build a first-pass collaboration shortlist from public creators' bios and follower totals, with the blue checkmark shown separately from identity checks.

Refresh a public account directory

Update brand and publisher entries with their returned display names, bios, profile images, and account statistics.

Measure observed audience changes

Compare saved follower totals for a brand before and after a campaign. Calculate the observed change between snapshots without attributing that change to the campaign.

Review competitor positioning

Place public brand bios side by side to compare product descriptions, audience language, and positioning.

Catch brand profile edits

Compare repeated observations of a public business account's name, bio, location, and profile image to flag edits for review.

Questions about X (Twitter) profile in Claude Code

Can Claude Code use X (Twitter) profile?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run X (Twitter) profile like any built-in tool.

How much does X (Twitter) profile cost in Claude Code?

Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

Do I need a ScrapeCreators account to use X (Twitter) profile in Claude Code?

No. Spiral runs X (Twitter) profile on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

How long does it take to set up X (Twitter) profile in Claude Code?

About two minutes: add the hosted server, then sign in.

Does Claude Code wait while X (Twitter) profile runs?

X (Twitter) profile runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

What information does an X profile lookup return?

It returns one account's identity and profile statistics, including its bio, location, profile image, followers, following, posts, likes, and blue checkmark status.

Does the profile response include posts or follower history?

The documented response contains account totals rather than post text or a historical follower series. It shows one profile object with no pagination cursor; growth calculations require comparing separately saved observations.

How fresh are the profile statistics?

ScrapeCreators says cache misses fetch live data directly from the source. Cached responses reflect an earlier retrieval, so a returned follower count is not necessarily a new measurement.

Does this provide access to private X information?

ScrapeCreators describes its source data as publicly available. The profile lookup should therefore be understood as public account research, with no promise of access to private information.

Can profile data be used in commercial reports?

ScrapeCreators permits commercial use, redistribution, and processing with third-party AI providers. Its terms also make you responsible for the terms, policies, and laws applicable to X.

Get started

Start using X (Twitter) profile in Claude Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Claude Code:

Set up Claude Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options