usernamestringобязательно
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.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
usernamestringобязательноThe Snapchat username or profile URL to look up (e.g. fcbarcelona or https://www.snapchat.com/add/fcbarcelona).
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Snapchat ProfileЭтот API Snapchat | От $0.0011 за запрос | JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/snapchat/profile, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0011 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: username (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Snapchat Profile работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Snapchat.