Network API

Bluesky API for Posting, Scheduling, and Analytics

Ayrshare's Bluesky API lets developers publish text, images, video, and link previews to Bluesky accounts via a single REST endpoint. It supports scheduled posts, alt text, mentions, comments, post history, and analytics across 14+ social networks through one integration.

Your users link their own Bluesky account inside your product with their handle and an app password. Ayrshare handles the AT Protocol for you: sessions, media upload, link preview cards, and post records.

A Bluesky post by @northwind.bsky.social scheduled for Nov 3 at 16:00, reading 'Changelog: scheduled posts now retry on failure' with an image carrying an ALT badge, a link preview card for example.com, and 84 of 300 weighted characters used, beside a 'Publish to Bluesky' account card, a reply from @dokafor.dev with reply and delete actions, a note that alt text is attached through blueSkyOptions.altText, and a 7-day likes chart at 342 likes, up 18%

One integration, 14+ networks, 30M+ API calls a day.

X
Facebook
Instagram
TikTok
Bluesky
YouTube
LinkedIn
Pinterest
Telegram
Reddit
Threads
Snapchat
Google Business
WhatsApp

>99.99%

API uptime

30M+

API calls per day

14+

Social media networks

AI-Native

Native MCP server for any AI agent

>99.99%

API uptime

30M+

API calls per day

14+

Social media networks

AI-Native

Native MCP server for any AI agent

Before you build

What Do You Need to Use the Bluesky API?

You need one API key and a user who links their Bluesky account with a handle and an app password. Ayrshare speaks the AT Protocol, so there is no client to write, no session handling, and no OAuth client to register before your first post. After that, Ayrshare keeps the integration running: sessions, blob uploads, facets for links and mentions, video dimensions, and new Bluesky features as they ship.

Access

Your users link any Bluesky account, including accounts on self-hosted servers, with their handle and an app password they can revoke at any time. Ayrshare stores the session, not their sign-in password.

Ongoing maintenance

Bluesky's rules move: video limits, weighted character counts, and record formats all changed in the last year. Ayrshare updates the AT Protocol client and adds new Bluesky features as they ship, so you don't have to.

Account types

Any Bluesky account. There's no separate business account type, so creators, brands, and bots all link the same way.

Alt text and link previews

Pass an altText entry per image and Ayrshare attaches it to the post record. Put a URL in the text and Ayrshare builds the preview card and turns @handles and links into facets.

Linking a Bluesky account through a connect screen on yourapp.com with the handle northwind.bsky.social and an app password, never the sign-in password, a note that there's no AT Protocol client to build with Ayrshare, next to the steps of going direct: a session per user's server, a blob upload for each image, facets for links and mentions, and 5,000 write points an hour

Post and Schedule to Bluesky in Your Language

Each sample publishes an image post with a link preview now, then schedules a video for later. Same endpoint, same JSON, in Node.js, Python, PHP, Java, Go, Ruby, C#, or plain cURL. Add a Profile-Key header to post for one of your users.

# 1. Publish now: an image post with alt text and a link previewcurl -X POST https://api.ayrshare.com/api/post \  -H "Authorization: Bearer $AYRSHARE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "post": "Our API changelog is now public. https://example.com/changelog",    "platforms": ["bluesky"],    "mediaUrls": ["https://example.com/changelog.png"],    "blueSkyOptions": {      "altText": ["Screenshot of the changelog page"]    }  }'
# 2. Schedule for later (ISO 8601, UTC)curl -X POST https://api.ayrshare.com/api/post \  -H "Authorization: Bearer $AYRSHARE_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "post": "Friday demo: scheduling in 20 seconds.",    "platforms": ["bluesky"],    "mediaUrls": ["https://example.com/demo.mp4"],    "scheduleDate": "2026-11-06T17:00:00Z"  }'
The fine print

Bluesky API Limits: Post Types, Media, and Characters

Bluesky's rules in one place. The full list lives in the Bluesky media guidelines and the Bluesky publishing options.

Post types

4images or 1 video

Text, text with a link preview, up to 4 images, or one video per post. Hashtags, emojis, and @handle mentions work in the post text.

Accounts

AnyBluesky account

Your user enters their handle, such as ayrshare.bsky.social, and an app password in the format XXXX-XXXX-XXXX-XXXX, never their sign-in password.

Images

1 MBper image

JPG, PNG, or animated GIF, 4 per post. 1200 x 627 px is the recommended size. Only one animated GIF per post, and it's sent as a video.

Video

10 minmax length

One MP4 per post, from 1 second to 10 minutes, up to 300 MB, with an aspect ratio between 1:3 and 3:1. Ayrshare reads the real dimensions and sets the aspect ratio so the video renders without black bars.

Characters

300weighted characters

Up to 300 characters per post, counted by Bluesky's own weighting. Check a post first with the /validate/post/length endpoint, which returns blueskyWeightedLength.

Alt text and link previews

1alt entry per media item

Pass an altText array in blueSkyOptions, one entry per item in mediaUrls. Put a URL in the post text and Ayrshare attaches a link preview card.

Mentions

5mentions per post

Write @handle in the post text. Ayrshare allows up to 5 mentions per post, and a linked account can mention the same handle once a day.

Scheduling and limits

50posts per account per day

Pass a scheduleDate to publish later, and delete a scheduled post any time before it goes out. Ayrshare recommends no more than 50 Bluesky posts a day and allows 300 API calls per 5 minutes per profile.

Beyond the basic post

Post up to four images with alt text

Send up to four image URLs in mediaUrls, with an altText array in blueSkyOptions that lists one description per image, in the same order.

Skip the setup

Why Use Ayrshare Instead of the Bluesky API Directly?

Ayrshare speaks the AT Protocol, so your product sends one request with text and media URLs and gets back the Bluesky post ID, content ID, and URL. Ayrshare stores each user's session, uploads images and video, builds the link preview card, turns @handles and URLs into facets, and applies alt text. When Bluesky changes a rule, the fix ships on our side, not in your sprint.

For a step-by-step walkthrough, read How to Post to Bluesky with an API.

See the Bluesky Publishing Options
  1. Step 1

    One simple endpoint

    Just send a single POST request with your text, up to four image URLs or one video, alt text, and the user's Profile-Key. A URL in the text becomes a preview card. We keep the integration lean so your team can launch faster.

  2. Step 2

    We speak the AT Protocol

    Sessions, blob uploads, facets for links and mentions, video dimensions, and the weighted length rules. None of it reaches your code.

  3. Live

    Analytics on every post

    Get the at:// post ID, content ID, and URL right away. The same ID returns likes, reposts, replies, and quotes per post, plus account followers, follows, and post counts, in the same JSON format as every other network.

After you publish

Beyond Posting: The Rest of the Bluesky Lifecycle

The same Bluesky link that publishes also reads analytics, handles comments, pulls history, and checks posts before they go out.

Bluesky post analytics for a changelog post (342 likes, 64 reposts, 11 quotes, 4.7K account followers) with a likes-by-hour chart, beside the post's replies with a reply sent through the API, a blueskyWeightedLength check of 311 over the 300 limit, the post's at:// ID returned with its cid, and deleting a scheduled or published post by Ayrshare id

Analytics

Per-post likes, reposts, replies, and quotes, plus account followers, follows, and post counts, in the same JSON shape as every other network.

Analytics API

Comments

Read the replies on a post, add a comment, reply to a comment made through Ayrshare, and delete comments.

Engagement API

History

Pull an account's past Bluesky posts with their counts, including posts published outside Ayrshare.

History API

Pre-publish checks

Check a post's weighted length against Bluesky's 300-character cap before you send it. The response includes blueskyWeightedLength and the maximum for each network.

Post length docs

Delete

Remove a scheduled post before it goes out, or a published post afterwards, with the Ayrshare post ID.

Delete post docs

See every network you can reach with the same integration on the supported networks page.

Common questions

FAQs About the Bluesky API

Yes, you can post to Bluesky through an API. Ayrshare's Bluesky API lets developers publish text, images, video, and link previews to Bluesky accounts via a single REST endpoint. It supports scheduled posts, alt text, mentions, comments, post history, and analytics across 14+ social networks through one integration. Start with the Bluesky publishing options.

Yes, the Bluesky API is free: Bluesky charges nothing per call and has no paid tier for posting. Going direct costs engineering time instead, since you build and maintain the AT Protocol client, sessions, blob uploads, and facets yourself. Ayrshare's plans include Bluesky posting alongside every other network, on the same request you already send. Compare Ayrshare plans.

You get access to the Bluesky API with any Bluesky account, since there's no developer program or app review. Scripts sign in with a handle and app password, and apps with an end user login use OAuth. Then you call the account's server directly. With Ayrshare, your users link their account once, and the Post API reference shows the one request you need.

To publish to Bluesky with an API through Ayrshare, link the account, then send a POST /post request with platforms set to bluesky, your post text, and any mediaUrls. Add scheduleDate to publish later. The response returns the at:// post ID, content ID, and URL. The tutorial How to Post to Bluesky with an API walks through a first post.

Yes, Bluesky is built on the AT Protocol, an open, decentralized protocol where each account lives on a personal data server. Posts are records addressed by an at:// URI and a content ID, and anyone can build a client against it. Ayrshare handles that layer for you, so you send plain JSON instead of protocol records. See the Bluesky docs.

You need an app password for the Bluesky API when you sign in with a handle instead of OAuth, and that's how Ayrshare links Bluesky accounts. Your user creates one in Bluesky's settings, in the format XXXX-XXXX-XXXX-XXXX, and can revoke it any time without changing their sign-in password. See how Ayrshare links your users' accounts.

Your Users Are on Bluesky. Your Product Can Be Too.

Get an API key, publish your first Bluesky post, and turn on the other networks with the same call when you need them.