Skip to main content

Build an X Parasite System with Claude Code

•9:09
Tutorial

You will connect Apify to Claude Code, scrape 1,000 trending X posts in your niche, query them for content ideas, pull a chosen creator's full post history, and schedule both runs as a daily routine.

What you need

  • An Apify account (includes $5 of free credits every month)

  • Claude Code

  • A niche to research (the video uses AI)

  • The X profile URL of a creator you want to track

  • Optional: a Google Sheet listing the creators you follow

Free downloadX Parasite System prompt packThe four Claude Code prompts from the video, in order, plus the Apify setup path.
Download

Step by step

  1. Create your Apify account

    Sign up for Apify. Every account gets $5 of free credits each month, and you pay per usage after that. Once your account is created, click Go to Console.

    Apify
    https://www.apify.com?fpr=migueltorrez
  2. Create an Apify API token

    In the Console, open Settings, then API and integrations. Under the personal API token section, click Create a new token and copy it.

  3. Connect Apify to Claude Code

    Open Claude Code. Either add Apify's custom connector, or paste your Apify key into Claude Code. Claude keeps track of the key and reuses it on later runs.

  4. Level 1: scrape trending posts in your niche

    Paste the trend reader prompt, swapping "AI" for your niche. Keep the dollar cap so the test stays cheap, and keep the documentation line if Claude has never used Apify before. Wait for the run to finish.

    Level 1 prompt (trend reader)
    Hey Claude, please use Apify to scrape 1,000 trending posts on AI from X. I want to know what people are really saying that I can use to start creating more content. Please use less than $1 of credits for this test. Before starting this, get the official Apify documentation so you don't make a mistake.
  5. Question the trend data

    Read Claude's summary of what it collected (in the video: 8 search angles with 100 queries each). Then ask follow-up questions about the angle you care about. If the first answer misses, just ask again. Turn what you find into content, for example contrarian takes on what is trending.

    Follow-up question
    I'm really interested in knowing more about the builder game. What are people saying mainly? What are they building with AI?
  6. Level 2: pull one creator's posts

    Open a new Claude Code session. Paste the profile URL of a creator in your niche and send the tracker prompt. Claude uses Apify to collect that person's full post history, which you can use to quote, remix or reply quickly.

    Level 2 prompt (individual tracker)
    Hey Claude, please use Apify to scrape all of the X posts that come from this profile: [PROFILE URL]
  7. List your creators in a Google Sheet

    Create a Google Sheet listing the creators you want to follow across different niches, with their X, YouTube or Instagram profiles. This becomes the input for your daily run.

  8. Schedule it as a daily routine

    In Claude Code, click More, then Routines (in Cowork, use Schedule Tasks). Describe the morning job in plain words. Expect it to cost a few cents per day.

    Routine instruction
    Each and every single morning, I want you to go into this Google sheet, look at all of the X profiles, YouTube profiles, Instagram profiles, and then update the database that contains all of their posts.

Watch out for

  • Always give Claude a spending cap ("use less than $1 of credits for this test"). Apify charges per usage, and Claude respects the cap well.

  • If Claude has never used Apify, tell it to get the official Apify documentation first so it does not make a mistake.

  • X results include a lot of memes. Don't stop at the first summary: ask targeted follow-up questions to get useful trends.

  • Scheduled runs cost money every day. For reference, the 1,000-post scrape in the video cost about 90 cents.

Watch next

Related Tutorials

Implementation: AI systems built into your workflows→