Skip to content
scrapeatlas.Dashboard

Get a community post

Try in Playground

Read one public community post page: ID, channel, text, attached images, like count, relative publish time with its computed timestamp and the attached video when present. The page must describe the requested post; missing posts answer 404.

GET/v1/youtube/community-postx-api-key
x-api-keystringrequiredheader

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

Query parameters
1
urlstringrequiredquery

Community post URL (youtube.com/post/<id>, or a channel community tab link with lb=<id>) or a bare post ID.

max 2048 chars

Examplehttps://www.youtube.com/post/Ugsynthetic000000000000000post
Response fields
34
requestIdstring

Operation identifier for correlation.

Upstream HTTP attempts, decoded bytes and duration.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

successboolean

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

statusenum

success, partial (coverage.warnings names the omission), failed or challenged.

one of: success, partial

idstring

Post ID.

id, title, url and handle of the posting channel.

channel.idstringnullable

Always included.

channel.titlestringnullable

Always included.

channel.urlstringnullable

Always included.

channel.handlestringnullable

Always included.

contentstringnullable

Full post text; null when empty.

imagesstring[]

Attached images at their largest size.

up to 50 items

likeCountintegernullable

Like count parsed from the displayed text.

publishedTimeTextstringnullable

Relative publish text ("5 days ago").

publishedTimestringnullable

Timestamp computed from the relative text, or null.

Attached video {id, title, thumbnail, url, viewCountText, viewCountInt, publishedTimeText, lengthText, lengthSeconds} or null.

video.idstring

Always included.

video.titlestringnullable

Always included.

video.thumbnailstringnullable

Always included.

video.urlstring

Always included.

absolute HTTPS URL

video.viewCountTextstringnullable

Always included.

video.viewCountIntintegernullable

Always included.

video.publishedTimeTextstringnullable

Always included.

video.lengthTextstringnullable

Always included.

video.lengthSecondsintegernullable

Always included.

sourceUrlstring

Public YouTube URL the operation represents (page or API route).

absolute HTTPS URL

fetchedAtstring

UTC retrieval timestamp.

source is public_page; no warnings are defined.

coverage.sourceenum

Always included.

one of: public_page, public_api

coverage.completeboolean

Always included.

coverage.warningsenum[]

Always included.

up to 8 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
13
HTTPfailure.codeMeaning
400invalid_requestMissing, malformed, duplicate or conflicting parameters, unsupported parameters or an unsafe URL.
400invalid_continuationYouTube rejected the supplied continuation token.
401unauthorizedMissing or invalid worker API key.
403restricted_pageThe channel, video, playlist or post is terminated, private, members-only or otherwise unavailable.
403age_restrictedThe video is age restricted and cannot be read logged out.
404not_foundYouTube reports no channel, video, playlist or post for the identifier.
429upstream_rate_limitedYouTube rate limited the request; no automatic retry.
502upstream_challengedYouTube rejected or challenged the request.
502unsupported_pageThe response lacks the embedded data, the data is malformed, or the resolved identity does not match the request.
502response_too_large payload_too_complexThe response exceeded byte, depth or node limits.
502unsafe_redirect request_limit upstream_errorThe bounded request could not complete.
503busyAll worker slots are in use.
504timeoutThe total retrieval deadline expired.