social-media-api

Social Media API: Automate Posting and Analytics to Social Networks like Instagram, TikTok, X/Twitter, Facebook, LinkedIn, Reddit, YouTube, and Telegram

github.com/ayrshare/social-media-api
social-media-api homepage screenshot

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
Best for: Developers building Node.js applications that post content and track analytics across several social networks on behalf of users or clients.
Good for
  • 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.
Watch out for
  • 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

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.

All 16 alternatives

TikHub-API-Python-SDK

github.com/TikHub/TikHub-API-Python-SDK

High-performance asynchronous Douyin(抖音) TikTok Xiaohongshu(小红书) Kuaishou(快手) Weibo(微博) Instagram YouTube(油管) Twitter(X) Captcha Solver(验证码解决器) Temp Mail(临时邮箱) API(接口).

Open source
24 alternatives

youwee

github.com/vanloctech/youwee

A beautiful, cross-platform downloader for YouTube, TikTok, Instagram, and 1800+ sites (yt-dlp GUI) with AI video summaries and post-processing

Open source
24 alternatives

Popular in TikTok Tools

Well-known listings from the same topic.

All 68

social-media-api FAQ

Do I need my own X/Twitter credentials to use X with this SDK?
As of March 31, 2026, X/Twitter operations through Ayrshare require your own X Developer App credentials. The SDK sends the required headers on each X-bound request once they are set.
How does the README say X credentials should be stored?
The README recommends keeping the X consumer key and secret in environment variables or a secret manager, and says they should not be hardcoded or committed to source control. It also states that Ayrshare does not store these credentials on its end.
How can I check that the BYO headers are configured correctly?
After enabling BYO, a call to analyticsSocial with the twitter platform can verify the headers are wired correctly. The README notes that this call does not create a post.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing