Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

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.

Giá
Từ $0.0011USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
The Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona).
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
SnapchatTừ $0.0011 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Snapchat Profile?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/snapchat/profile với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Snapchat Profile có giá bao nhiêu?

Từ $0.0011 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Snapchat Profile chấp nhận những tham số nào?

Bắt buộc: username (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Snapchat Profile trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Snapchat không?

Không. Snapchat Profile chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Snapchat.