usernamestringwajib
The Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona).
https://api.sandbase.ai/v1/api/snapchat/profileFetch a Snapchat user's public profile by username: display name, bio, subscriber count, and recent public content.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | The Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona). |
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
}
| Field | Meaning |
|---|---|
found | true when the profile was found. A lookup that finds nothing returns false. |
data.items[].displayName | The public name shown on the profile. |
data.items[].handle | The Snapchat username of the account. |
data.items[].bio | The profile bio text. |
data.items[].category | The category label on the profile, such as Government Org. |
data.items[].subscribers | The number of subscribers the profile has. |
data.items[].url / data.items[].website | url is the Snapchat profile link. website is the external site listed on the profile. |
data.items[].image | URL of the profile image. |
data.items[].stories[].id | A UUID that identifies the story. |
data.items[].stories[].storyTitle / data.items[].stories[].thumbnailUrl | The title of a public story and the URL of its thumbnail image. |
nasa, or the full profile URL, such as https://www.snapchat.com/add/nasa, in username.data.items[], which is a list. Read the first item for the requested account.found before reading data.items, since a missing profile still returns a successful response.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
usernamestringwajibThe Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona).
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Snapchat ProfileAPI ini Snapchat | Dari $0.0011 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/snapchat/profile dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0011 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: username (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Snapchat Profile berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Snapchat secara terpisah.