Skip to content
scrapeatlas.Dashboard

Get Lemon8 post comments

Try in Playground

Get the comments on a Lemon8 post, or the replies to one comment, with text, likes, reply counts, time and author.

GET/v1/lemon8/post-commentsx-api-keyLemon8 Scraper API overview
x-api-keystringrequiredheader

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

Query parameters
5
idstringquery

Post id, the number at the end of a post link.

Example7401136489370370565
urlstringquery

A https://www.lemon8-app.com/@username/… post link. Provide id or url.

max 600 chars

commentIdstringquery

Comment id from this endpoint. Returns the replies to that comment.

cursorstringquery

nextCursor from the previous page.

limitstringquery

Comments to read, 1–20 (default 10). Lemon8 returns comments in pairs, so an odd limit is rounded up, and hides some, so a page can hold fewer.

Response fields
37
requestIdstring

Request correlation UUID.

Upstream requests, decoded response bytes and elapsed milliseconds.

accounting.upstreamRequestsinteger

Always included.

≥ 0

accounting.responseBytesinteger

Always included.

≥ 0

accounting.durationMsnumber

Always included.

≥ 0

successboolean

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

statusenum

success, partial, failed or challenged. HTTP 200 can be partial.

one of: success, partial

sourceUrlstring

Lemon8 public page data URL the answer was read from.

absolute HTTPS URL

fetchedAtstring

UTC retrieval time.

unreadable_posts_skipped (partial) when a post could not be read; next_page_unavailable when Lemon8 gave no cursor. order is ranked, as Lemon8 shows comments.

coverage.sourcestring

Always included.

coverage.completeboolean

Always included.

coverage.warningsstring[]

Always included.

coverage.orderenum

Always included.

one of: newest_first, oldest_first, ranked, relevance, source_order

Optional.

coverage.window.sincestringoptional

Optional.

coverage.window.untilstringoptional

Optional.

postIdstring

The post id.

Comments: commentId, text, createTime (Unix seconds), diggCount (likes), replyCount, imageList, author (userId, linkName, nickName, avatar, profileUrl) and, on replies, replyToCommentId.

up to 20 items

comments.commentIdstring

Always included.

comments.textstringoptional

Optional.

comments.createTimeintegeroptional

Optional.

comments.diggCountintegeroptional

Optional.

comments.replyCountintegeroptional

Optional.

comments.replyToCommentIdstringoptional

Optional.

Optional.

up to 100 items

comments.imageList.urlstring

Always included.

comments.imageList.widthnumberoptional

Optional.

comments.imageList.heightnumberoptional

Optional.

Optional.

comments.author.userIdstringoptional

Optional.

comments.author.linkNamestringoptional

Optional.

comments.author.nickNamestringoptional

Optional.

comments.author.avatarstringoptional

Optional.

comments.author.followerCountintegeroptional

Optional.

comments.author.profileUrlstringoptional

Optional.

nextCursorstringnullable

Cursor for the next page, or null at the end.

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
12
HTTPfailure.codeMeaning
200partialUsable data with unreadable_posts_skipped, next_page_unavailable or post_limit warnings.
400invalid_requestMissing, duplicate, malformed or unsupported parameters, or a link outside lemon8-app.com.
401unauthorizedMissing or invalid worker API key.
403restricted_pageThe account is private, or Lemon8 blocks the search in that market.
404not_foundUnknown post, account, hashtag or place.
429upstream_rate_limitedLemon8 rate limited the request.
502upstream_challengedLemon8 refused the public request.
502unsupported_pageMalformed or mismatched source data.
502response_too_large payload_too_complexResponse exceeded byte or parsing limits.
502unsafe_redirect request_limit upstream_errorBounded source retrieval could not complete.
503busyAll worker slots and the waiting queue are occupied.
504timeoutThe total deadline was exceeded.