API · Snapchat
GET /snapchat/spotlights/comments
Comments on a Snapchat Spotlight snap, paginated.
| Request | GET /v1/snapchat/spotlights/comments |
| Operation id | snapchat.spotlight.comments |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Comments on a Snapchat Spotlight snap, paginated.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | A Spotlight link (snapchat.com/spotlight/<id> or snapchat.com/@<user>/spotlight/<id>) or its id. Example: https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYaGR0aXRmdnF3AaIOhUIvAaIOYXABAAAAAA. |
since | string | no | Only comments on or after this date. |
until | string | no | Only comments on or before this date. |
after | string | no | Cursor: the previous page’s pagination.next_cursor. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of comments. | SnapchatCommentsResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No public Snapchat profile or Spotlight snap by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Snapchat is temporarily unavailable. Retryable; nothing was charged. | Error |
SnapchatCommentsResponse fields
| Field | Type | Description |
|---|---|---|
snapId | string | |
comments | SnapchatComment[] | Ranked as Snapchat ranks them. |
pagination | object |
Errors use one shape everywhere; see Errors for every code and what to do.