Skip to content
scrapeatlas.Dashboard

Get a Cosmos profile

Try in Playground

Retrieve a public profile’s identity, biography, image, links, audience counts and saved-element count.

GET/v1/cosmos/profilex-api-key
x-api-keystringrequiredheader

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

Query parameters
1
handlestringrequiredquery

Required Cosmos username, 1 to 64 characters. Use letters, digits, underscores, dots or hyphens; start with a letter, digit, underscore or hyphen and omit consecutive dots.

Exampleexample
Response fields
28
requestIdstring

Request correlation UUID.

Source request attempts, decoded bytes and elapsed milliseconds.

accounting.upstreamRequestsinteger

Number of upstream request attempts.

≥ 0

accounting.responseBytesinteger

Decoded source bytes read during this request.

≥ 0

accounting.durationMsnumber

Elapsed request time in milliseconds.

≥ 0

successboolean

True when usable data is returned; inspect status and coverage.

statusenum

success or partial for usable data; failed or challenged for a failure response.

one of: success, partial

sourceUrlstring

Canonical Cosmos URL for the requested profile, element, collection or search.

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

Returned-result coverage and extraction warnings.

coverage.sourcestring

Public Cosmos API data.

coverage.completeboolean

Whether the returned result has no reported omissions.

coverage.warningsstring[]

Warnings explaining partial results or truncated fields.

idinteger

Numeric Cosmos user ID.

≥ 0

usernamestring

Published Cosmos username.

full_namestringnullable

Published display name, or null.

urlstring

Canonical public profile URL.

absolute HTTPS URL

biostringnullable

Published biography, or null.

avatar_urlstringnullable

Public avatar URL, or null.

website_urlstringnullable

Published website URL, or null.

is_premiumbooleannullable

Published premium-account flag, or null.

is_verifiedbooleannullable

Published verified-profile flag, or null.

follower_countintegernullable

Published follower count, or null.

≥ 0

following_countintegernullable

Published following count, or null.

≥ 0

public_post_countintegernullable

Published public saved-element count, or null.

≥ 0

instagram_urlstringnullable

Published Instagram profile link, or null.

twitter_urlstringnullable

Published X profile link, or null.

tiktok_urlstringnullable

Published TikTok profile link, or null.

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
13
HTTPfailure.codeMeaning
200partialUsable data with media_incomplete, media_limit, restricted_subcollections_omitted, subcollections_incomplete, subcollection_limit or record_limit coverage warnings.
400invalid_requestMissing, duplicate, malformed, unsafe or unsupported request parameters.
401unauthorizedMissing or invalid service API key.
403restricted_pageThe requested Cosmos content is not publicly accessible.
404not_foundThe requested public profile, element or collection was not found.
429upstream_rate_limitedCosmos temporarily rate-limited retrieval.
502upstream_challengedCosmos challenged retrieval.
502upstream_errorSource retrieval could not complete.
502unsupported_pageThe source response was incomplete, mismatched or unsupported.
502response_too_large payload_too_complexSource data exceeded the byte or parsing limits.
502unsafe_redirect request_limitThe source redirect or request sequence exceeded the accepted contract.
503busyAll Cosmos retrieval slots are in use.
504timeoutThe total operation deadline expired.