Snapchat Spotlight Comments
snapchat.spotlight.comments
Comments on a Snapchat Spotlight with author, text, likes and reply counts. About 20 rows a page, with a cursor for the next.
At a glance
- Endpoint ID
snapchat.spotlight.comments- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "snapchat.spotlight.comments", "input": { "spotlight": "W7_EDlXWTBiXAEEniNoMPwAAYeG9xcGd0ZWd3AZ14BVv0AZ14BQkrAAAAAQ" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "snapchat.spotlight.comments", "input": { "spotlight": "W7_EDlXWTBiXAEEniNoMPwAAYeG9xcGd0ZWd3AZ14BVv0AZ14BQkrAAAAAQ" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "snapchat.spotlight.comments", "input": { "spotlight": "W7_EDlXWTBiXAEEniNoMPwAAYeG9xcGd0ZWd3AZ14BVv0AZ14BQkrAAAAAQ" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
spotlight |
string | yes | Spotlight id, or a snapchat.com spotlight link. | W7_EDlXWTBiXAEEniNoMPwAAYeG9xcGd0ZWd3AZ14BVv0AZ… |
cursor |
string | no | The next_cursor from the previous page. Omit for the first page. |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "returned": 25, "comments": [ { "text": "Space isn't real guys. Open your turd eye.", "likes": 28, "posted_at": "2026-04-10T18:14:26Z", "id": "10608778740304986851-11612249598755259675", "reply_count": 32, "author": { "display_name": "GUSS DINGLEBERRY" }, "replies": [] }, { "text": "This was an amazing mission great job to nasa for doing this I can't wait for a landing!!!", "likes": 37, "posted_at": "2026-04-10T15:47:00Z", "id": "507999405371704256-11856875111675513997", "reply_count": 0, "author": { "display_name": "Luke" }, "replies": [] } ]}
Fields
| Field | Type | Example |
|---|---|---|
comments[].author.display_name |
string | GUSS DINGLEBERRY |
comments[].text |
string | Space isn't real guys. Open your turd eye. |
comments[].likes |
integer | 28 |
comments[].author |
object | 1 fields |
comments[].posted_at |
string | 2026-04-10T18:14:26Z |
comments[].id |
string | 10608778740304986851-11612249598755259675 |
comments[].replies |
array | empty in this sample |
comments[].reply_count |
integer | 32 |
comments |
array | 3 records |
returned |
integer | 25 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Snapchat endpoints
Something missing or unclear? Ask the team that builds the Snapchat endpoints.