Unified Social Media API for Apps, Platforms, and AI Agents
The Ayrshare API lets you post, schedule, analyze, and manage engagement across 13+ social networks through a single integration. Includes publishing, history, analytics, moderation, and an MCP server for AI agents. Reliable, compliance-first and proven at scale.



Trusted by 10,000 teams, from AI startups to Fortune 500 companies.
const API_KEY = "Your API KEY"; fetch("https://app.ayrshare.com/api/post", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${API_KEY}`, }, body: JSON.stringify({ post: "Today is a great day to post!", platforms: ["x", "bluesky", "tiktok", "facebook", "linkedin", "youtube", "instagram"], mediaUrls: ["https://img.ayrshare.com/awesome.png"], }),});
Unified Social Media API for Apps, Platforms, and AI Agents
The Ayrshare API lets you post, schedule, analyze, and manage engagement across 13+ social networks through a single integration. Includes publishing, history, analytics, moderation, and an MCP server for AI agents. Reliable, compliance-first and proven at scale.



Trusted by 10,000 teams, from AI startups to Fortune 500 companies.
const API_KEY = "Your API KEY"; fetch("https://app.ayrshare.com/api/post", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${API_KEY}`, }, body: JSON.stringify({ post: "Today is a great day to post!", platforms: ["x", "bluesky", "tiktok", "facebook", "linkedin", "youtube", "instagram"], mediaUrls: ["https://img.ayrshare.com/awesome.png"], }),});
>99.99%
API uptime
30M+
API calls per day
13+
Social media networks
AI-Native
Native MCP server, built for AI agents
>99.99%
API uptime
30M+
API calls per day
13+
Social media networks
AI-Native
Native MCP server, built for AI agents
A Complete Social Media API
Everything you need to build social publishing into your product. One integration for posting, scheduling, analytics, history, comments, DMs, and moderation.
One API Across the Full Social Workflow
Most social media APIs stop at publishing; Ayrshare covers the rest of the workflow, too. Publish content, pull historical posts, track performance, manage conversations, and keep everything behind one consistent schema.

Built for Multi-Tenant Products
OAuth, token refresh, tenant isolation, and account management are already handled. Connect your users to social networks and start shipping features instead of maintaining integrations. Running at more than 30 million API calls per day.

Compliance You Don't Have to Chase
Social platforms, APIs, and policies change. But keeping up with all of that is our job, not yours. As an official social network partner, we track platform updates, maintain integrations, and help customers stay compliant with 24/7 support.

Complete Loop for AI Agents
AI agents need context from historical content, a reliable way to take action, feedback on performance, and guardrails to avoid mistakes. With Ayrshare, you get it all.

Trusted by developers across AI startups, SaaS platforms, digital agencies, and enterprise teams
Publish Across 13 Social Networks with One API
Post to Facebook, X, Bluesky, Instagram, LinkedIn, Reddit, Telegram, TikTok, Google Business Profile, Threads, Pinterest, Snapchat, and YouTube through a single API. New platforms are added without changing your integration.
Create a Social Media Post with a Few Lines of Code
The Ayrshare social media API handles authentication, platform requirements, ongoing maintenance, and network-specific edge cases. One API to rule them all.
const API_KEY = "Your API KEY"; fetch("https://app.ayrshare.com/api/post", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${API_KEY}`, }, body: JSON.stringify({ post: "Today is a great day to post!", platforms: ["x", "bluesky", "tiktok", "facebook", "linkedin", "youtube", "instagram"], mediaUrls: ["https://img.ayrshare.com/awesome.png"], }),});
The Foundational Layer for AI Content Agents
AI agents have no issue generating content. The problem is giving them enough context to sound like on-brand, enough visibility to learn what works, and enough guardrails to stay out of trouble. That's where Ayrshare comes in.
History API
Pull 200-500 historical posts per profile. Give agents examples of how your brand communicates before they publish their first post.
Publishing API
One reliable API call publishes to 13+ networks. Your agent does not need to know X BYOK rules or TikTok content policy, Ayrshare handles it.
Analytics API
Per-post and per-account metrics in one schema. Close the reinforcement loop so your agent learns what works.
Domain Guardrails
Banned hashtag detection, posting limit enforcement, content validation. Protect accounts from the mistakes AI generates at scale.
# Add the Ayrshare MCP server$ claude mcp add --transport http ayrshare \ https://api.ayrshare.com/mcp \ --header "Authorization: Bearer YOUR_API_KEY" # Ask your agent to publish with contextcreate_post({ post: "Launch day. Ship social from the product.", platforms: ["x", "linkedin", "instagram"], scheduleDate: "2026-06-15T16:00:00Z"})
Native MCP Server, Built for the AI Agent Stack
Compatible with Claude, Cursor, VS Code, LangChain, CrewAI, AutoGen, and any framework that supports tool calling. Access 27 tools covering publishing, analytics, history, comments, DMs, and profiles through the same Ayrshare API.
See the AI builder GuideAPI First. More Than Publishing
Send analytics, scheduling, comments, messaging without stitching together multiple APIs.
Send Analytics and Metrics
Per-post and per-account analytics across every supported network, normalized into one schema.
User History
Pull historical posts, replies, mentions and engagement events back into your product.
Reflect Management
Manage user identities, sessions, scopes and tokens across all 13 networks.
Analytics API
Real-time insights with full webhook support and historical replay.See the analytics API

Test History
Replay events, debug payloads, and audit every API request.

Inspection
Inspect every payload, response and webhook in real time from your dashboard.
Webhooks
Real-time event delivery for posts, comments, mentions, and DMs.

One Brand From
Read, reply and moderate comments across networks from a single endpoint.

Packaging
SDKs for Node, Python, Go, and a CLI. Pick what fits your stack.

Comment Management
Read, reply and moderate comments across networks from a single endpoint.

AI-Ready Messaging
Native MCP server, agent-ready endpoints, and structured outputs your LLMs can call directly.

Thousands of Teams Use Ayrshare to Ship Millions of Social Posts
Ayrshare is the social media API behind AI startups, SaaS products, agencies, and enterprise platforms.
I found the API easy to use and implement. I previously tried to integrate directly with the social networks and it was a serious pain. I mainly used the publishing, analytics, and comment features, though I know there are a lot more things I haven’t tried yet.

Jason G.
Advisory Consultant • Enterprise (> 1000 emp.)
We’ve run 4M+ publish calls across seven platforms and never put an engineer on chasing API changes. Ayrshare is one of the best calls we’ve made since 2022.

Vedant Maheshwari
CEO & Co-founder • Quso.ai
Greatest Social Media Integration API EVER!! The great documentation they have actually doesn’t take time to understand and its API response is very fast syncing.

Diaa N.
Senior Backend Developer • Computer Software
The History API meant our AI did not sound generic on its first post. We ramped from prototype to production publishing in two weeks.
Digible
Agency · multi-property platform
Start Building in Minutes
Get API keys, make your first request, and start posting in minutes. For larger deployments, talk to our team about custom plans and volume pricing.