Skip to content
scrapeatlas.Dashboard

Get a Snapchat Lens

Try in Playground

Retrieve a public Lens with its creator, tags, preview image and video, Snapcode, related Lenses and Spotlight videos using the effect.

GET/v1/snapchat/lensx-api-key
x-api-keystringrequiredheader

Your ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.

Query parameters
1
urlstringrequiredquery

Required HTTPS Snapchat Lens URL with a 32-character hexadecimal or hyphenated UUID identifier.

max 4096 chars

Examplehttps://www.snapchat.com/lens/00000000000040008000000000000001
Response fields
19
requestIdstring

Request correlation UUID.

Upstream request count, decoded response bytes and elapsed milliseconds.

accounting.upstreamRequestsinteger

Upstream HTTP attempts used by this request.

≥ 0

accounting.responseBytesinteger

Decoded source response bytes.

≥ 0

accounting.durationMsnumber

Elapsed retrieval milliseconds.

≥ 0

successboolean

True when usable Snapchat data is returned.

statusenum

success or partial for usable data. Failure responses use failed or challenged.

one of: success, partial

sourceUrlstring

Canonical Snapchat page or Spotlight URL.

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

Source, completeness and warnings for the returned public records.

coverage.sourceenum

public_page or public_comments.

one of: public_page, public_comments

coverage.completeboolean

Whether the selected source response was returned without a reported omission.

coverage.warningsstring[]

Warning codes describing omitted or additional records.

coverage.orderenumoptional

Returned record order, such as ranked or source_order.

one of: source_order, ranked

lensDisplayInfoobject

Original public Lens record: scannableUuid, lensName, lensCreatorDisplayName, lensCreatorUsername, userProfileUrl, lensPreviewImageUrl, lensPreviewVideoUrl, iconUrl, unlockUrl, lensResource, lensId, lensCreatorSearchTags, isOfficialSnapLens, lastUpdatedEpoch and scannableImageUrl. Source extensions are preserved.

lensMetadataobjectnullable

Additional source Lens metadata, or null.

moreLensesobject[]

Related public Lens records with their original source fields.

up to 100 items

spotlightsUsingThisLensobject[]

Published Spotlight story records using the Lens, with source snap IDs, types, URLs, thumbnails and timestamps.

up to 100 items

spotlightsUsingThisLensMetadataobject[]

Metadata aligned to the related Spotlight stories, including video, creator, caption and engagement.

up to 100 items

HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.

Error codes
11
HTTPfailure.codeMeaning
400invalid_requestMissing, duplicate, unknown or malformed parameters.
401unauthorizedMissing or invalid service API key.
403restricted_pageThe requested page reports restricted access.
404not_foundThe requested public record was not found.
429upstream_rate_limitedSnapchat temporarily rate limited retrieval.
502upstream_challengedSnapchat challenged the request.
502unsupported_pageThe public source does not validate against the supported structure.
502response_too_large payload_too_complexThe source exceeded byte or structural bounds.
502unsafe_redirect request_limit upstream_errorRetrieval could not complete within its source and request bounds.
503busyThe worker admission queue is full or its wait deadline was exceeded.
504timeoutThe request exceeded its deadline.