/social-media-engineering:social-platform-apis-and-open-protocolsfrom social-media-engineering
Provides guidance on integrating with social platform APIs (X, Meta, LinkedIn, Reddit, YouTube, Discord) and evaluating open protocols (ActivityPub, AT Protocol/Bluesky). Covers API pricing/policy survival, federation costs, and protocol interoperability.
Ships in social-media-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 1 of 5 of the Social Media Engineering reference (plugin
social-media-engineering), covering §0–§2. Sibling skills:social-feed-graph-ranking-and-notifications(§3–§6),social-moderation-abuse-and-regulation(§7–§9),social-media-analytics-privacy-and-presence(§10–§13),social-reference(§14–§19). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Verified August 2026. See §16 →
social-referencefor the currency snapshot and what goes stale first.
How to read this. The title spans two things and this document covers both, weighted toward the first: §1–§12 →
social-feed-graph-ranking-and-notifications,social-moderation-abuse-and-regulation,social-media-analytics-privacy-and-presenceare about building and integrating with social systems; §13 →social-media-analytics-privacy-and-presenceis about your own presence as a developer. Skip to §13 →social-media-analytics-privacy-and-presenceif that's what you came for.Three markers:
- [DURABLE] — architecture, ranking, moderation, and abuse dynamics. Most of §2–§10 →
social-feed-graph-ranking-and-notifications,social-moderation-abuse-and-regulation,social-media-analytics-privacy-and-presence.- [VERSIONED] — platform terms, pricing, protocols, regulation. ⚠️ Verify all of it; this is the fastest-moving material in the collection after AI.
- [CONTESTED] — genuine disagreement.
⚠️ GOTCHA boxes mark what breaks, gets you banned, or gets you fined.
The three framings that organize everything below:
- ⚠️ Building on a platform API is building on rented land, and the rent changed. The 2023–2026 period established that platforms will reprice or withdraw access with weeks of notice and no obligation. Architect for that from day one (§1).
- The hard problems are social, not technical. Fan-out and ranking are solved engineering; moderation, abuse, and incentive design are not, and they scale worse than your database does (§7 →
social-moderation-abuse-and-regulation, §8 →social-moderation-abuse-and-regulation).- ⚠️ Compliance is now an architecture input, not a legal afterthought. Age assurance, transparency reporting, and appeals mechanisms have to be designed in — and regulators have started saying explicitly that self-declaration is not sufficient (§9 →
social-moderation-abuse-and-regulation).
| Asked about... | Go to |
|---|---|
| Platform APIs — costs, terms, survival | §1 |
| Open protocols: ActivityPub, AT Protocol | §2 |
| Feed and timeline architecture | §3 → social-feed-graph-ranking-and-notifications |
| The social graph | §4 → social-feed-graph-ranking-and-notifications |
| Ranking and recommendation | §5 → social-feed-graph-ranking-and-notifications |
| Notifications, real-time, presence | §6 → social-feed-graph-ranking-and-notifications |
| Moderation at scale | §7 → social-moderation-abuse-and-regulation |
| Spam, bots, and abuse | §8 → social-moderation-abuse-and-regulation |
| Regulation and compliance | §9 → social-moderation-abuse-and-regulation |
| Media handling | §10 → social-media-analytics-privacy-and-presence |
| Analytics, metrics, experimentation | §11 → social-media-analytics-privacy-and-presence |
| Privacy, data, and deletion | §12 → social-media-analytics-privacy-and-presence |
| Your own developer presence | §13 → social-media-analytics-privacy-and-presence |
| "Don't do this" | §14 → social-reference |
| "Which side is right?" | §15 → social-reference |
| "Is this still current?" | §16 → social-reference |
| Resources | §17 → social-reference |
[VERSIONED — and the single most important practical section here.]
[DURABLE lesson, VERSIONED specifics] The 2023–2026 period ended the era of open social APIs, and the pattern was consistent: reprice or restrict with short notice, and let downstream developers absorb the consequences.
Twitter/X: the free tier that had supported a decade of bots, research, and third-party clients closed. ⚠️ Developers on the free v1.1 API were given nine days to migrate. Reddit (July 2023): $0.24 per 1,000 API calls for commercial use with roughly 30 days' notice. Apollo — the most-loved third-party client, 1.5M active users — shut down rather than absorb it, its developer having been told the cost would be ~$20M/year. ⚠️ Pushshift, the academic Reddit archive, was terminated. Reddit also ended self-service access; new applications require approval under a "Responsible Builder Policy."
⚠️ The $20M figure became the defining anecdote for how API repricing redistributes risk from the platform onto the downstream developer — and it is the right thing to remember before you build.
[VERSIONED — verify before budgeting; this has changed repeatedly.]
As of February 2026, X moved new developers to pay-per-use and closed Basic and Pro to new signups. Legacy subscribers are grandfathered. Reported rates as of mid-2026:
| Action | Reported rate |
|---|---|
| Read your own posts/followers/lists | ~$0.001 per resource (cut sharply April 2026) |
| Read a third-party post | ~$0.005 — ⚠️ the rate that dominates data projects |
| User / follower / trends read | ~$0.010 |
| Create a plain post | ~$0.015 |
| ⚠️ Create a post containing a URL | ~$0.20 — ~13× a plain post |
⚠️ GOTCHA — three structural traps beyond the per-call rates:
- The 2,000,000 post-read monthly cap. ⚠️ At $0.005/read, hitting it means you've spent ~$10,000 — and then you stop until the cycle resets or you move to Enterprise (reported entry ~$42,000/month, custom contract, multi-week sales process). There is no middle tier any more — the $5,000 Pro plan that included full-archive search is closed to new signups, creating a cliff between self-serve and Enterprise.
- ⚠️ The URL surcharge lands hardest on exactly the automation people build: auto-posting newsletter links, blog posts, release announcements.
- ⚠️ As of 20 April 2026, following, liking, and quote-posting were removed from self-serve writes entirely — withdrawn rather than repriced, Enterprise-only. If your product does social actions on a user's behalf, check this before designing.
Also: your stated use case is contractually binding, and materially changing it requires notifying X and getting approval.
⚠️ The third-party reseller market exists and the price gap is enormous — resellers advertise reads at a small fraction of the official rate, and one comparison put the official pay-per-use rate at roughly 33× a third-party's. But: ⚠️ scraping X directly is explicitly prohibited by its terms, resellers occupy a legally contested position (see a web-scraping reference for why), and you inherit their compliance posture and their continuity risk. The common architecture that results: official API for posting and authenticated actions, third party for reads at volume — with the trade-off understood and documented, not assumed away.
Meta Graph — weeks of app review before permissions are granted; LinkedIn — partnership agreements for anything beyond surface data; TikTok — formal application process; YouTube — a quota ceiling rather than per-call pricing. ⚠️ The common shape: approval gates rather than open signup, and apps that fail review lose endpoints they were using in development.
[DURABLE] How to build so this doesn't kill you:
[VERSIONED — the structural alternative, and the two camps have not merged.]
W3C standard since 2018, powering Mastodon, Pixelfed, PeerTube, Lemmy and — notably
— Meta's Threads. The model is server-to-server federation: every user is an
actor with an inbox and an outbox; servers deliver activities to each other.
Identity is tied to your instance (@[email protected]), which is both the model's
simplicity and its central weakness.
Scale: Mastodon around 10.5 million accounts, with the wider Fediverse around 11 million including Pixelfed and others. ⚠️ Decentralization makes accurate counts genuinely hard, and the 2022 surge has been followed by a steady decline in active users and servers.
Bluesky's protocol, launched 2023, general registration February 2024. Over 40 million registered users, with third-party estimates putting monthly actives in the low tens of millions by early 2026 — ⚠️ and registered-versus-active is the distinction that matters here.
The architectural difference is the point: ATProto separates Personal Data Servers (your repository), Relays (firehose aggregation), App Views (indexing and presentation), and Labelers (moderation as a separate, subscribable service). ⚠️ Account portability is the design goal ActivityPub doesn't achieve: moving your entire identity, follows, and post history to a different server without the old server's cooperation, via DIDs rather than server-scoped handles. Custom feed algorithms are a first-class, third-party-buildable primitive, which is genuinely unusual.
⚠️ The honest critique: the protocol is decentralized; the main application is still largely centralized, and running a full relay is expensive enough that few do. Bluesky's centralized onboarding is also why adoption outpaced Mastodon's — the trade-off is real in both directions.
As of 2026, ActivityPub and AT Protocol do not natively interoperate, and this is not an oversight — ⚠️ the data models differ enough that a clean bridge is genuinely hard. ActivityPub co-author Evan Prodromou argued Bluesky should simply implement ActivityPub; Bluesky's position was that ActivityPub couldn't deliver the account portability they wanted, and native ActivityPub support is not on the Bluesky roadmap.
Bridges exist — Bridgy Fed is the main one, now under the A New Social nonprofit — ⚠️ and the EFF's own guidance is candid about the seams: you can edit posts on Mastodon but not Bluesky, so a bridged edit doesn't propagate; replies can get lost; and account ownership gets strange when you federate from a website rather than a conventional account.
[DURABLE] If you're building on either: the firehose is the interesting primitive
(both give you one), moderation is your problem (§7 → social-moderation-abuse-and-regulation) and neither protocol solves it for
you, and instance-level blocking is a social mechanism with technical consequences you
need to model.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/social-feed-graph-ranking-and-notificationsUse when building the core of a social system: feed and timeline architecture including fan-out on write versus read and the celebrity problem, the social graph and its storage and traversal, ranking and recommendation (signals, candidate generation, engagement objectives and their failure modes), and notifications and real-time delivery including push, batching, digesting and WebSocket fan-out./social-media-analytics-privacy-and-presenceUse when handling uploads, measurement, personal data, or your own developer presence: media handling (upload pipelines, transcoding, thumbnails, CDN delivery), analytics and experimentation including A/B testing and metric design, privacy and data (retention, deletion, export, and the regulatory obligations), and the practical question of a developer's own social presence and how to sustain it without it eating your life./social-moderation-abuse-and-regulationUse when handling harmful content or a compliance requirement: moderation at scale (classifiers, human review queues, appeals, policy design, reviewer welfare), spam, bots and abuse engineering (rate limits, reputation, coordinated behaviour detection, account takeover), and the regulatory layer — the DSA, the Online Safety Act, age assurance and where enforcement is actually landing./social-referenceUse when checking a social-systems anti-pattern, weighing a contested question, confirming whether a platform API, pricing or regulatory claim is still current (snapshot verified August 2026), finding the engineering, trust-and-safety and regulation resources, or needing the architecture picker and the checklists to run before building on a platform API or launching anything social. Companion to the other social-media-engineering skills.npx claudepluginhub the-vibey-project/vibey --plugin social-media-engineering