---
title: "Snapchat API"
description: "Use Ayrshare's Snapchat API to publish stories and Spotlight videos, schedule them, and get analytics for your users, without waiting on Snap's allowlist."
canonical: https://www.ayrshare.com/snapchat-api/
lastModified: 2026-11-05
pageType: landing
---

# Snapchat API

> Use Ayrshare's Snapchat API to publish stories and Spotlight videos, schedule them, and get analytics for your users, without waiting on Snap's allowlist.

## Snapchat API for Posting, Scheduling, and Analytics

Ayrshare's Snapchat API lets developers publish stories, saved stories, and Spotlight videos to Snapchat Public Profiles via a single REST endpoint. It supports scheduled posts, hashtags, post and profile analytics, history, and deletion across 14+ social networks through one integration.

Your users link their own Snapchat Public Profiles through an OAuth flow inside your product, on Ayrshare's Snap integration. You don't need to get your own app allowlisted by Snap or build its encrypted media upload.

[Read the Snapchat Docs](/docs/apis/post/social-networks/snapchat)
[Get Your API Key](/pricing/)

- **>99.99%** — API uptime
- **30M+** — API calls per day
- **14+** — Social media networks
- **AI-Native** — Native MCP server for any AI agent

## What Do You Need to Use the Snapchat API?

You need one API key and a user who links their Snapchat Public Profile. Ayrshare's Snap integration is already allowlisted, so there is no Snap Business account to set up, no email to a Snap contact, and no wait for approval before your first Snap.

After that, Ayrshare keeps the integration running: Snap's encrypted media upload, image conversion, token refresh, and new Snapchat features as Snap releases them.

- **Access**: Your users link their Public Profiles on Ayrshare's allowlisted Snap integration. You skip the Snap Business account setup in Ads Manager, the allowlist email, and the wait for Snap's approval.
- **Ongoing maintenance**: Snap updates the Public Profile API and its media rules on its own schedule. Ayrshare keeps the integration current and adds new Snapchat features as Snap ships them, so you don't have to.
- **Account types**: Snapchat Public Profiles for creators and businesses, switched to a Professional Profile so stories, saved stories, and Spotlight can all publish.
- **Media handling**: Ayrshare converts WebP, HEIC, HEIF, and AVIF images to JPEG, runs Snap's encrypted, chunked upload, and checks each scheduled Snap against Snapchat's media rules at submit, so a bad file fails right away instead of at publish time.

## Post and Schedule to Snapchat in Your Language

Each sample publishes a Spotlight video now, then schedules a saved story 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.

[Full Post API Reference](/docs/apis/post/overview)

- **cURL**
- **Node.js**
- **Python**
- **PHP**
- **Java**
- **Go**
- **Ruby**
- **C#**

## Snapchat API Limits: Post Types, Media, and Characters

Snapchat's rules in one place. The full list lives in the [Snapchat media guidelines](/docs/media-guidelines/snapchat) and the [Snapchat publishing options](/docs/apis/post/social-networks/snapchat).

- **3 post types (Post types)**: Stories, which disappear after 24 hours; saved stories, which stay on the Public Profile; and Spotlight, Snapchat's permanent video feed.
- **Public Profiles (Accounts)**: Snapchat Public Profiles for creators and businesses, switched to a Professional Profile.
- **20 MB per image (Images)**: JPEG or PNG, 1080 x 1920 px recommended. WebP, HEIC, HEIF, and AVIF are converted to JPEG, with EXIF and other metadata stripped.
- **60 sec max length (Video)**: MP4 only, up to 1 GB, 5 to 60 seconds long, 9:16 portrait, 540 x 960 px recommended. The same limits apply to stories, saved stories, and Spotlight.
- **500 characters per post (Characters)**: Post text up to 500 characters. Spotlight captions are cut at 160 characters rather than rejected.
- **1 image or video (One media item per post)**: Every Snap carries exactly one image or one video. A request with several media URLs, or none, isn't a valid Snap.
- **Clickable in Spotlight captions (Hashtags)**: Hashtags in Spotlight captions are clickable and searchable, so tag each Spotlight for discovery. Post text can be empty when the media carries the message.
- **300 API calls per 5 min (Scheduling and limits)**: Pass a scheduleDate to publish later. Scheduled posts are checked against Snapchat's media rules when you submit them, so a bad video fails right away. Ayrshare allows 300 API calls per 5 minutes per profile.

## What Else Can You Do With the Snapchat API?

- **Post a story that lasts 24 hours**: A story is the default. Send one image or one video, and it goes to the Public Profile's story for 24 hours. The post text can be empty.
- **Keep a story on the Public Profile**: Set savedStory and the story stays on the Public Profile instead of expiring after 24 hours.
- **Publish a Spotlight video**: Set spotlight on a video post: MP4, 9:16, 5 to 60 seconds, up to 1 GB. Hashtags are clickable, captions over 160 characters are cut, and Snap reviews each new Spotlight before it goes live.
- **List past stories and Spotlights**: Pull the profile's past stories, saved stories, and Spotlights, including ones posted outside Ayrshare. Each item has a type of PUBLIC_STORY, SAVED_STORY, or SPOTLIGHT. Story items include a media URL per Snap by default; pass media=false for metadata only.
- **Read profile analytics by day**: Profile analytics cover views, view time, subscribes, replies, shares, and Snapcode scans. Snapchat caps history at one quarter (90 days), so quarters can be at most 1, and daily returns per-day values instead of totals.

## Why Use Ayrshare Instead of the Snapchat API Directly?

Ayrshare is already set up with Snap, so your product sends one request and gets back the Snapchat post ID, media ID, and URL. Ayrshare runs the Public Profile linking flow, converts WebP, HEIC, and AVIF images to JPEG, handles the encrypted media upload, and checks each scheduled Snap against Snapchat's media rules before it's queued.

Stories, saved stories, and Spotlight each have their own endpoint at Snap; on Ayrshare they're one flag on the same request. When Snap changes its API, the fix ships on our side, not in your sprint.

For a step-by-step walkthrough, read [How to Post to Snapchat with an API](/blog/complete-guide-to-snapchat-api-integration/).

[See the Snapchat Publishing Options](/docs/apis/post/social-networks/snapchat)

- **One simple endpoint**: Just send a single POST request with your caption, one media URL, and the user's Profile-Key. Set savedStory or spotlight in snapChatOptions to pick the surface. We keep the integration lean so your team can launch faster.
- **We deal with Snap**: Public Profile linking, token refresh, image conversion, the encrypted media upload, and the media checks. None of it reaches your code.
- **Analytics on every Snap**: Get the Snapchat post ID, media ID, and URL right away. The same ID returns views, viewers, completes, average view time, swipe ups, shares, and replies per Snap, plus daily profile metrics, in the same JSON format as every other network.

## Beyond Posting: The Rest of the Snapchat Lifecycle

Snapchat's API covers publishing, analytics, and history, and Ayrshare runs all three through the same Public Profile connection.

See every network you can reach with the same integration on the [supported networks page](/supported-networks/).

- **Analytics**: Per-post views, viewers, completes, average view time, swipe ups, shares, and replies, plus profile metrics with daily series. Profile history reaches back 90 days.
  - [Analytics API](/social-media-analytics-api/)
- **Delete**: Remove a scheduled Snap before it publishes, or a published Snap afterwards, with the Ayrshare post id.
  - [Delete post docs](/docs/apis/post/delete-post)
- **History**: List a profile's stories, saved stories, and Spotlights, including Snaps posted outside Ayrshare, with a media URL per Snap.
  - [History API](/history-api/)
- **Pre-publish checks**: Scheduled posts are checked against Snapchat's format and length rules when you submit them, not at publish time.
  - [Post API reference](/docs/apis/post/post)
- **Profile analytics**: Views, view time, subscribes, replies, shares, and Snapcode scans for the whole Public Profile, as daily series reaching back 90 days.
  - [Analytics API](/social-media-analytics-api/)

## FAQs About the Snapchat API

### Can I post to Snapchat through an API?

Yes, you can post to Snapchat through an API. Ayrshare's Snapchat API lets developers publish stories, saved stories, and Spotlight videos to Snapchat Public Profiles via a single REST endpoint. It supports scheduled posts, hashtags, post and profile analytics, history, and deletion across 14+ social networks through one integration. Start with the [Snapchat publishing options](/docs/apis/post/social-networks/snapchat).
### Is the Snapchat API free?

The Snapchat API carries no published fee for posting, but getting to it isn't free of work. The Public Profile API is allowlist-only, you request access through a Snap contact, and you build Snap's encrypted media upload yourself. Ayrshare's plans include Snapchat posting on Ayrshare's existing Snap integration, so there's no allowlist to wait on. [Compare Ayrshare plans](/pricing/).
### How do I get access to the Snapchat API?

To get access to the Snapchat API for posting, set up a Snap Business account in Ads Manager, create an OAuth app from its Business Details, and email your Snap contact your client ID and use case to be allowlisted. With Ayrshare, your users link their Public Profiles instead, and the [Post API reference](/docs/apis/post/overview) shows the one request you need.
### Which Snapchat APIs are available to developers?

Snapchat offers developers three main APIs. Snap Kit lets apps share content into the Snapchat camera for the user to send, the Marketing API runs ads, and the Public Profile API publishes stories, saved stories, and Spotlights and reads their analytics. Only the last one posts for your users. The tutorial [How to Post to Snapchat with an API](/blog/complete-guide-to-snapchat-api-integration/) walks through a first post.
### Is there an official Snapchat API for posting?

Yes, there is an official Snapchat API for posting: Snap's Public Profile API, which publishes to Public Profiles for partners Snap has allowlisted. There's no self-serve posting API for personal accounts. Ayrshare connects to it for you, next to 14+ other networks, through its [social media publishing API](/social-media-publishing-api/), so you can post to Snapchat without your own Snap approval.
### Can a developer publish to Snapchat Spotlight through an API?

Yes, a developer can publish to Snapchat Spotlight through an API. Set spotlight in snapChatOptions on a post with one MP4 video of 5 to 60 seconds. Captions over 160 characters are cut, hashtags are clickable, and Snap reviews each new Spotlight before it goes live. Check the [Snapchat media guidelines](/docs/media-guidelines/snapchat) before you send your first video.

## Your Users Are on Snapchat. Your Product Can Be Too.

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

[Get Your API Key](/pricing/)
[Read the Snapchat Docs](/docs/apis/post/social-networks/snapchat)
