Claude Code social media socialcrawl

How to Give Claude Code Social Media data

You can now give Claude Code social media data – yes it can access Instagram reels, TikTok, Threads, X posts, even comments and engagement rate to see what posts are going viral.

But the moment you want it to work with real social media data, things get messy.

TikTok, Instagram, and Reddit all have different authentication flows, pagination styles, and field names.

If you ask Claude Code to pull data from three platforms, it has to write three completely different integrations and handle the chaos that comes with each one.

This guide shows you how to give Claude Code access to a unified social media API so it can query any platform with a single, consistent request structure and get back clean, structured data every time.

Step 1: Grab Your Free Credits

Head to socialcrawl.dev and create an account.

You get 100 free credits just for logging in, no credit card required.

That is enough to run a solid batch of requests and see exactly what the data looks like before you commit to anything.

Claude Code Social Media scraping socialcrawl

Step 2: Get the installation code and free API key

Once you are in, open the dashboard.

You will see an installation code snippet waiting for you there. Copy it.

Claude Code Social Media scraping socialcrawl

Step 3: Install SocialCrawl on Claude Code

Paste the installation code directly into Claude Code.

This registers SocialCrawl as a tool Claude Code can call, so it knows the endpoint structure, the authentication pattern, and what a valid request looks like without you having to explain any of it. After the installation code, paste in your API key from the same dashboard. Claude Code stores this in your session context and will use it automatically on every request from that point on.

Step 4: Start Scraping

Now you can ask Claude Code to pull real data. A prompt like this is all it takes:

Use /socialcrawl to scrape the top scrape Threads posts from last 30 days. The criteria for posts are: English posts, AI industry, 30 top posts, more than 100 likes. Filter out any inappropriate or political content. Generate output in CSV file.

You can be as specific or as broad as you like.

Ask it to pull Reels, YouTube Shorts, LinkedIn posts, TikToks, whatever platform is relevant to what you are researching.

Claude Code handles the request, parses the response, and surfaces the data in a readable format inside your terminal.

Step 5: Analyse and Export

This is where it actually gets useful. Once Claude Code has the data, ask it to go deeper:

Analyse these posts. Break down the hooks, the CTAs, what formats are getting the most engagement, and what topics seem to be trending. Then export everything to CSV.

Claude Code will identify patterns across the posts, pull out structural elements like hook type and call to action format, and write a CSV file with the results.

You end up with a structured dataset you can open in a spreadsheet, feed into another tool, or use directly to inform your next content batch.

Claude code + Social media data = superpowers

It doesn’t stop at simply scraping social media data.

The same setup works for competitive analysis, influencer vetting, trend spotting before a campaign, or building a repeatable monitoring workflow that you run weekly without touching it manually.

Because the data comes back clean and consistent across platforms, Claude Code can compare a LinkedIn post to a YouTube Short to a Threads reply without needing separate logic for each one.


Check out our previous posts

👉 OpenClaw Setup Tutorial for Beginners

👉 How to setup Claude Skills

👉 Claude Code Tutorial for Beginners – Setup Guide


Follow for more AI juice
Share this post!
Selene Lee
Selene Lee
Articles: 12

Leave a Reply

Your email address will not be published. Required fields are marked *