High-performance asynchronous Douyin(抖音) TikTok Xiaohongshu(小红书) Kuaishou(快手) Weibo(微博) Instagram YouTube(油管) Twitter(X) Captcha Solver(验证码解决器) Temp Mail(临时邮箱) API(接口).
social-media-api
Social Media API: Automate Posting and Analytics to Social Networks like Instagram, TikTok, X/Twitter, Facebook, LinkedIn, Reddit, YouTube, and Telegram

About social-media-api
social-media-api is a Node.js wrapper SDK for Ayrshare's hosted APIs. It is used to send social media posts, retrieve analytics, and add comments on X/Twitter, Instagram, Facebook, LinkedIn, YouTube, Google Business Profile, Pinterest, TikTok, Reddit, and Telegram, on behalf of users or clients. The source states that Ayrshare handles setup and maintenance for these networks. Installation is done with npm, and an Ayrshare account and API key are required. The README describes a free plan and a Business Plan for platforms or for managing multiple users, but it does not give pricing details.
The SDK includes a bring-your-own (BYO) credential option for X/Twitter. As of March 31, 2026, X/Twitter operations through Ayrshare require your own X Developer App credentials. The SDK sends the required headers on every X-bound request, not only on posts. The source notes that a missing header returns an error, and that Ayrshare does not store these credentials on its end.
Key features
- Node.js wrapper SDK for Ayrshare's social media APIs, installed with npm
- Post images or videos, retrieve post history, and delete posts
- Post comments and retrieve analytics across supported networks
- Bring-your-own X/Twitter developer credentials through setTwitterByo
- Credential switching for multi-tenant flows with clearTwitterByo
- generateJWT endpoint for per-user X account linking URLs
- Supports posting and analytics across many networks through one SDK, according to the README.
- Setup steps are short: create an account, enable social accounts in the dashboard, and copy the API key.
- A Python SDK with the same BYO header contract is mentioned in the README.
- X/Twitter operations require your own X Developer App credentials as of March 31, 2026.
- Every X-bound request needs both BYO headers, and a missing header returns an error.
- Depends on Ayrshare's hosted APIs and requires an Ayrshare API key.
social-media-api at a glance
- Category
- Social & Communities › TikTok Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
social-media-api alternatives
Tools and sites you could use instead, ranked by how closely they match.
A tool for tracking engagement metrics across Twitter, Instagram, and TikTok.
A beautiful, cross-platform downloader for YouTube, TikTok, Instagram, and 1800+ sites (yt-dlp GUI) with AI video summaries and post-processing
Gatsby plugin to add Google Analytics (V4 is supported), Google Tag Manager, Facebook Pixel, TikTok Pixel and Hotjar in a GDPR form to your site.
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Creates short videos for TikTok, Instagram Reels, and YouTube Shorts using the Model Context Protocol (MCP) and a REST API.
Popular in TikTok Tools
Well-known listings from the same topic.
social-media-api FAQ
Do I need my own X/Twitter credentials to use X with this SDK?
How does the README say X credentials should be stored?
How can I check that the BYO headers are configured correctly?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












