- Three ways to pull social media data (official API, Composio, browser agent), practical steps with Claude Code and MCP, plus real costs and limitations.
The simplest approach is each network's official API, plus a small script that Claude Code writes and runs on a schedule. A connection layer like Composio saves work when you have many networks and tools, and a browser agent like Claude in Chrome is reserved for cases where there is no API. "Real time" in practice means refreshing every few minutes to an hour, and that is enough for most marketing teams.
The question sounds like a question about tools. It is really a question about three types of failures: what breaks when the network changes something, what breaks when authorization expires, and what breaks when the account hits a rate limit. Below you will find the comparison, followed by the build itself.
In short
| Question | Short answer |
|---|---|
| Most stable approach | Each network's official API |
| Fastest way to connect many tools | A connection layer like Composio, via MCP |
| Most fragile approach | A browser agent like Claude in Chrome |
| How the dashboard updates itself | Scheduling: a cloud task, a desktop task, or /loop |
| The right permissions | Read-only. A dashboard does not need to publish |
Three approaches, side by side
Before the table, a note on terminology. Official API is an interface the network itself provides for software. Connection layer is a service that holds the authentication for multiple applications and presents them to the AI as a single list of tools. Browser agent is an AI that browses, clicks, and reads pages on your behalf.
| Criterion | Official API | Connection layer (Composio) | Browser agent (Claude in Chrome) |
|---|---|---|---|
| Stability | High | High, depends on the service | Low, depends on the site's UI |
| Setup speed | Medium, approval per network | Fast, one-place sign-in | Very fast |
| Cost | Varies by network (some free) | Free plan and paid plans | Included in a paid Claude subscription |
| Automatic refresh | Easy, scheduled script | Easy, via MCP | Difficult, requires Chrome open |
| Best for | Permanent dashboard | Many networks, minimal development | A single data point with no API |
Approach 1: Official API
This is how most dashboards that have been running for years are built. The advantage is that you talk directly to the source, with no third party in between. The downside is that each network has its own credentials, permissions, and limits.
Examples from official documentation, verified on 2026-10-15:
- YouTube: According to Google's documentation, the default daily quota is 10,000 units, and most list requests (such as channel data) cost one unit.
- Instagram: According to Meta's documentation, the API requires a professional account (business or creator) and does not support personal accounts. Serving accounts that are not your own requires advanced access, with app review and business verification. The read limit is 4,800 multiplied by the number of impressions in a rolling 24-hour window per app-and-account pair.
- X (Twitter): According to X's documentation, pricing is usage-based. Reading a post costs $0.005 per post returned, with no minimum subscription. The documentation notes that prices are subject to change.
The takeaway: for your own accounts, Instagram and YouTube cost you almost nothing. X is the network where it pays to cap the number of posts pulled per run in advance.
Approach 2: A connection layer like Composio
Composio is a platform that handles tool discovery, authentication, and version management, and presents them to the AI. Their documentation describes two paths: a dedicated plugin for Claude Code, or a hosted MCP endpoint that can be connected to any MCP-compatible client.
The rule of thumb is that this pays off when you are connecting many sources and want to stop managing ten sets of credentials. Pricing page, verified on 2026-10-15:
- Hobby: $0, 100,000 tool calls per month.
- Pro: $29 per month, $0.0003 per additional call.
- Enterprise: custom pricing.
Note: third-party sources show older versions of this pricing, with different numbers. The tool's pricing has changed recently, so always check the official page on the day you decide.
Approach 3: Browser agent (Claude in Chrome)
Claude in Chrome is an extension that lets Claude read pages, click, navigate, and fill out forms. According to Anthropic's Help Center, verified on 2026-10-15:
- Available on all paid subscriptions: Pro, Max, Team, and Enterprise.
- Available in Claude Cowork and Claude Code, with the Chrome side panel in beta.
- Works in Chrome only. Other browsers and mobile are not supported.
- Anthropic itself writes that the tool is "still risky" and recommends reviewing the safe-use guidelines before working with it.
It can run scheduled tasks as well, but it works primarily when the browser is open. That is why I see it as a solution to a question like "get me that number from the platform's dashboard, which has no API," not as infrastructure for a dashboard that runs around the clock. Any change to the site's design may break it, and check each network's terms of service before asking an agent to browse it on your behalf.
How to decide: three questions
- Does the network have an API for the data I need? If yes, start there.
- How many sources are there? Two or three, go with direct API. Five or more, it is worth looking at a connection layer.
- Is the data critical or just nice to have? Critical data should not depend on a browser agent.
How to build a self-updating dashboard: the steps
The architecture is straightforward and has four parts: the data source, a pull script, a place to store history, and a page that displays it. Claude Code can build all of these. If you are new to the tool, start with the guide to Claude Code with MCP.
Step 1: Decide which metrics you want
Not "everything." Pick five to seven metrics that lead to decisions: followers, impressions, engagement, new posts, comments waiting for a reply. A dashboard with forty graphs does not get opened after the first week.
Step 2: Connect the source
If you chose a direct API, store the key in an environment file (.env) and not in the code. If you chose MCP, connect a server in one line. According to Claude Code's documentation:
claude mcp add --transport http <name> <url>
Inside Claude Code, the /mcp command shows server status and lets you connect via OAuth. The documentation warns: before connecting any server, make sure you trust it, because a server that brings in external content exposes you to prompt injection. A list of known servers is in the guide to recommended MCP servers.
Step 3: Have Claude Code write the script
Example prompt:
Write a Node.js script that pulls my channel data from the YouTube Data API
(key in YOUTUBE_API_KEY in the .env file), appends a row with a timestamp to
data/history.json, and does not delete previous data. Error handling: if the
call fails, log it and do not overwrite the file.
The core of the script is a single call to this URL, with your channel ID and key:
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=CHANNEL_ID&key=API_KEY
The response includes subscriber count, view count, and video count. The same principle applies to any network: call, timestamp, append to history.
Step 4: Build the dashboard page
Ask Claude Code for a single HTML page that reads history.json, displays number cards and a trend graph, and refreshes itself every few minutes. A static page like this can be opened locally or uploaded to hosting. If you want a real database instead of a file, see the guide to Claude Code with Supabase.
Step 5: Schedule it
This is where the dashboard becomes "live." According to Claude Code's documentation on scheduled tasks, verified on 2026-10-15:
| Option | Runs on | Requires computer on | Minimum interval |
|---|---|---|---|
| Cloud task | Anthropic's cloud | No | One hour |
| Desktop task | Your computer | Yes | One minute |
| /loop | Your computer | Yes, and an open session | One minute |
Important: recurring /loop tasks expire after 7 days. For a permanent dashboard, choose a cloud task or a desktop task. More detail in the guide to scheduled tasks in Claude Code. Also note that the exact run time can drift, because Claude Code intentionally adds jitter, so do not build anything that depends on second-level precision.
Step 6: Verify before you trust it
Run the pull manually three times and compare the numbers against the network's own interface. A dashboard that confidently shows the wrong number is worse than no dashboard at all.
What people forget until it breaks
- Permissions: A dashboard only needs read permission. Do not grant publish permission "just in case." Safe working rules for agents are covered in the AI agent safety rules guide.
- Rate limits: Every network caps calls. Cache data and do not pull the same thing every minute.
- Expiring tokens: Tokens expire. Add an alert to the script when a pull fails, so you do not discover a month later that the graph has been flat.
- Privacy: User and customer data requires care. If the dashboard touches personal data, see the guide on Amendment 13 to the Privacy Protection Law.
What this looks like in practice for a business
For a small business, my recommendation is to start with a direct API for the two most important networks, and add a connection layer only when you reach a fourth network. Keep the browser agent for one-off questions. That way you start fast and pay little.
If you want a deep understanding of how to connect AI to business systems with the right permissions, there is the course MCP 2026: Connecting AI to Your Business Systems, with the Right Permissions for 9.90 ILS.
Yaakov Tzedek, AI lecturer, consultant, and organizational AI implementer, and leader of the largest Claude Code community in Israel.
