Skip to main content

Get Snapchat Profile Data With an API

Updated 5 min readMarkdown

Originally published at scrapingrabbit.com. I built ScrapingRabbit.

Snapchat profiles are hard to look at without the app. Brands check creators there before a deal, and analysts compare audiences across platforms. This guide shows how to read a public profile with a single GET request: who the account is, how many subscribers it has, and what its public story holds. It also shows what you get back for an account that is not public.

Request a profile

Send the username, with or without the @. Every call needs an API key. New accounts get 100 free credits and a first key is created automatically on sign-up (it is shown once on the dashboard). Sign in at scrapingrabbit.com/login, then send the key in the x-api-key header (a Bearer token also works). The code below reads it from the SCRAPINGRABBIT_API_KEY environment variable, so no key is ever written into your code.

curl -H "x-api-key: $SCRAPINGRABBIT_API_KEY" "https://api.scrapingrabbit.com/v1/snapchat/profile?username=kyliejenner"

A successful call costs 5 credits, as the OpenAPI file lists it. Failed calls are not charged.

A shortened real answer, read on 3 December 2026. We read it with only the story section included, left the media links out and kept three of the fields to keep the example short:

{
  "success": true,
  "data": {
    "profile": {
      "username": "kyliejenner",
      "displayName": "King Kylie 馃憫",
      "bio": "",
      "website": "kyliecosmetics.com",
      "subscribers": 28523000,
      "badge": 1,
      "createdAt": "2019-05-22T18:01:50.393Z",
      "public": true
    },
    "story": [
      { "id": "f0Re8uHTTvKiNaWuyBWRaAAAgcW55dXRqZGNuAaIZSDpWAaIZSBh2AAAAAA", "type": "video", "postedAt": "2026-11-26T19:14:44.000Z" },
      { "id": "f0Re8uHTTvKiNaWuyBWRaAAAgZW53d25vZWx2AaIZSHnKAaIZSHZuAAAAAA", "type": "image", "postedAt": "2026-11-26T19:15:09.000Z" }
    ],
    "highlights": [],
    "spotlight": [],
    "hasMoreHighlights": true,
    "hasMoreSpotlight": true
  }
}

The real answer also has an avatar address, a hero image address, a Snapcode link and, for each story item, a mediaUrl and a previewUrl. The same endpoint can also return saved highlights and Spotlight videos for accounts that have them, and the hasMoreHighlights and hasMoreSpotlight flags tell you when there is more than the answer holds.

For an account that is not public, the answer looks like this:

{
  "success": true,
  "data": {
    "profile": { "username": "...", "displayName": "", "bio": "", "public": false },
    "story": [],
    "highlights": [],
    "spotlight": []
  }
}

The call still says success: true, so check profile.public before you rely on anything else.

What the fields mean

Field Meaning
profile.displayName The name shown on the profile
profile.bio The bio text, empty here
profile.website The link the owner put on the profile
profile.subscribers The subscriber count Snapchat publishes
profile.createdAt When the profile was created
profile.public false for private or missing profiles
story[].type video or image
story[].postedAt When the item was posted
story[].mediaUrl and previewUrl Links to the file and a small preview

Read it in code

async function snapProfile(username) {
  const url = `https://api.scrapingrabbit.com/v1/snapchat/profile?username=${encodeURIComponent(username)}`;
  const res = await fetch(url, { headers: { "x-api-key": process.env.SCRAPINGRABBIT_API_KEY } });
  const body = await res.json();
  if (!body.success || !body.data.profile.public) return null;

  const { profile, story } = body.data;
  return {
    name: profile.displayName,
    subscribers: profile.subscribers,
    website: profile.website ?? null,
    storyItems: story.length,
    videos: story.filter((item) => item.type === "video").length,
  };
}

console.log(await snapProfile("kyliejenner"));

The code returns null for a failed call or a profile that is not public, so both cases are handled in one place. It counts the story items and how many are videos, which is a quick way to see how active an account is.

The same in Python:

import os
import requests

res = requests.get(
    "https://api.scrapingrabbit.com/v1/snapchat/profile",
    params={"username": "kyliejenner"},
    headers={"x-api-key": os.environ["SCRAPINGRABBIT_API_KEY"]},
    timeout=90,
)
body = res.json()
if body.get("success") and body["data"]["profile"]["public"]:
    profile = body["data"]["profile"]
    print(profile["displayName"], profile["subscribers"], len(body["data"]["story"]))

Things to plan for

  • Only public profiles. A profile that is not public comes back empty with public: false, even though the call itself succeeds.
  • Big accounts return a lot. A very large account can have dozens of story items, so parse only the fields you need.
  • Counts are a snapshot. The subscriber number is what Snapchat publishes at that moment, so store the time you read it.
  • Media links point to Snapchat's own servers. Save the files you need instead of relying on the links staying live.
  • More than one page may exist. Check hasMoreHighlights and hasMoreSpotlight before you assume you have it all.
  • Rate limits and credits. Each key is limited per minute: 10 requests on the free plan, 60 on Starter, 120 on Pro and 300 on Scale. A call costs 5 credits, so cache each profile.
  • Always check success. A failed request returns success: false, a code such as RATE_LIMITED or INVALID_API_KEY, and a message.

Try it without code

The free Snapchat profile viewer works in the browser with no key and shows the name, bio, website and subscriber count for any public profile.

About the author

  • ScrapingRabbit is a web data API with ready-made endpoints for YouTube, TikTok, Instagram, X, Amazon, Walmart, Google and SEO data. I build it, and I write practical tutorials here, each with a real response and the limits to expect. Docs: https://scrapingrabbit.com/docs

No comments yet. Be the first to comment.