Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Snapchat Profile

https://api.sandbase.ai/v1/api/snapchat/profile

Fetch a Snapchat user's public profile by username: display name, bio, subscriber count, and recent public content.

价格
起价 $0.0011美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
The Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona).
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Snapchat Profile API

This API returns the public profile of a Snapchat account: display name, bio, category, subscriber count, and a list of public stories. It needs one input, username, which can be a handle or a Snapchat profile URL.

Use cases

  • Track the subscriber count of a brand or public figure on Snapchat over time.
  • Check a Snapchat account's bio, category, and linked website before a partnership or outreach.
  • Collect story titles and thumbnails to see what an account posts publicly.
  • Confirm that a handle exists and map it to its canonical profile URL.

Request

curl -X POST "https://api.sandbase.ai/v1/api/snapchat/profile" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "nasa"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
usernamestringYesThe Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "items": [
      {
        "bio": "Explore the universe and discover our home planet with official NASA snaps.",
        "category": "Government Org",
        "displayName": "NASA",
        "handle": "nasa",
        "image": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvUVg2VHZkaD…",
        "stories": [
          {
            "id": "ddf02468-ae16-4fc6-b1bc-bde7e1e22218",
            "storyTitle": "Moon Joy",
            "thumbnailUrl": "https://cf-st.sc-cdn.net/d/wAUDrJs74QBAl504N3DhT.410?mo=GjUaFDIBBDoBfUIGCMWw5M4G…"
          }
        ],
        "subscribers": 751900,
        "url": "https://www.snapchat.com/add/nasa",
        "website": "https://www.nasa.gov"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the profile was found. A lookup that finds nothing returns false.
data.items[].displayNameThe public name shown on the profile.
data.items[].handleThe Snapchat username of the account.
data.items[].bioThe profile bio text.
data.items[].categoryThe category label on the profile, such as Government Org.
data.items[].subscribersThe number of subscribers the profile has.
data.items[].url / data.items[].websiteurl is the Snapchat profile link. website is the external site listed on the profile.
data.items[].imageURL of the profile image.
data.items[].stories[].idA UUID that identifies the story.
data.items[].stories[].storyTitle / data.items[].stories[].thumbnailUrlThe title of a public story and the URL of its thumbnail image.

Notes

  • Pass either the plain handle, such as nasa, or the full profile URL, such as https://www.snapchat.com/add/nasa, in username.
  • The profile sits in data.items[], which is a list. Read the first item for the requested account.
  • Check found before reading data.items, since a missing profile still returns a successful response.

Pricing

Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Snapchat每次调用从 $0.0011 起JSON

问题

常见问题

如何使用 Snapchat Profile API?

向 https://api.sandbase.ai/v1/api/snapchat/profile 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Snapchat Profile API 的价格是多少?

起价每次调用 $0.0011,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Snapchat Profile API 接受哪些参数?

必填:username (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Snapchat Profile API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Snapchat 开发者账户或 API key 吗?

不需要。Snapchat Profile 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Snapchat API 访问权限。