Snapchat Spotlight comments API
Comments on a Spotlight snap, ranked as Snapchat ranks them, with text, time, the commenter’s display name and reply counts, paginated.
GET /v1/snapchat/spotlights/comments1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/snapchat/spotlights/comments?url=W7_EDlXWTBiXAEEniNoMPwAAYdG1pc2FpeHdpAZ42YFczAZ42YD8bAAAAAw",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "snapId": "W7_EDlXWTBiXAEEniNoMPwAAYdG1pc2FpeHdpAZ42YFczAZ42YD8bAAAAAw", "comments": [ { "replyId": { "highBits": "3843809202264098619", "lowBits": "9639691701952492219" }, "snapPosterId": { "highBits": "11849041866067824599", "lowBits": "9738022376449084530" }, "snapId": "W7_EDlXWTBiXAEEniNoMPwAAYdG1pc2FpeHdpAZ42YFczAZ42YD8bAAAAAw", "replyText": "hello bountiful you ❤️❤️❤️", "replyAttachments": [], "reactCounts": [ { "reactTypeId": "1", "reactCount": "9" } ], "reportCount": "0", "replyPosterId": { "highBits": "12469585485834373817", "lowBits": "10824905775746524136" }, "approvalState": 3, "replyPosterFirstName": "", "replyPosterLastName": "", "replyTimestampMs": "1779311619210", "replyPosterMutableUsername": "", "replyPosterDisplayName": "Naseer", "replyPosterBitmojiAvatarId": "104678857649_4-s5", "replyPosterBitmojiSelfieId": "10226021", "lastStateUpdateTsMs": "1779311619210", "badges": [], "threadedReplyCount": "2", "storyId": "", "attributions": [], "replyPosterProfileLogoUrl": "", "moderationFilterType": [], "textModerationPredictionScore": 0, "…": "8 more fields" }, { "replyId": { "highBits": "11349782013380674612", "lowBits": "13001931565828620115" }, "snapPosterId": { "highBits": "11849041866067824599", "lowBits": "9738022376449084530" }, "snapId": "W7_EDlXWTBiXAEEniNoMPwAAYdG1pc2FpeHdpAZ42YFczAZ42YD8bAAAAAw", "replyText": "I am a young Arab man looking for a sincere life partner.", "replyAttachments": [], "reactCounts": [ { "reactTypeId": "1", "reactCount": "4" } ], "reportCount": "0", "replyPosterId": { "highBits": "13795753468442201977", "lowBits": "10033459250776539683" }, "approvalState": 3, "replyPosterFirstName": "", "replyPosterLastName": "", "replyTimestampMs": "1781733952047", "replyPosterMutableUsername": "", "replyPosterDisplayName": "الحياة حلوة ولكن", "replyPosterBitmojiAvatarId": "", "replyPosterBitmojiSelfieId": "", "lastStateUpdateTsMs": "1781733952047", "badges": [], "replyPosterProfileId": { "highBits": "12616959372065654113", "lowBits": "11026295470093697228" }, "threadedReplyCount": "2", "storyId": "", "attributions": [], "replyPosterProfileLogoUrl": "", "replyPosterProfile": { "$case": "businessProfileId", "businessProfileId": { "highBits": "12616959372065654113", "lowBits": "11026295470093697228" } }, "…": "10 more fields" }, "… 21 more" ], "pagination": { "next_cursor": "eyJzIjoiVzdfRURsWFdUQmlYQUVFbmlOb01Qd0FBWWRHMXBjMkZwZUhkcEFaNDJZRmN6QVo0MllEOGJBQUFBQXciLCJjIjoiQ0FFU1ZlblFpTklQbTZiMDNR…", "has_more": true }}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | A Spotlight link (snapchat.com/spotlight/<id> or snapchat.com/@<user>/spotlight/<id>) or its id. Example: https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYaGR0aXRmdnF3AaIOhUIvAaIOYXABAAAAAA. |
sincequery | string | Only comments on or after this date. |
untilquery | string | Only comments on or before this date. |
afterquery | string | Cursor: the previous page’s pagination.next_cursor. |
Response fields
200 with a SnapchatCommentsResponse, in Snapchat’s own page JSON.
| Field | Type | Description |
|---|---|---|
snapId | string | |
comments | SnapchatComment[] | Ranked as Snapchat ranks them. |
pagination | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of comments. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No public Snapchat profile or Spotlight snap by that name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Snapchat is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Are they in date order?
No, in Snapchat’s ranking; use since/until to filter by date.
Snapchat is a trademark of Snap Inc. We are not affiliated with or endorsed by Snap Inc.