Skip to content
scrapeatlas.Dashboard

Get Lemon8 search suggestions

Try in Playground

Get the keywords and creators Lemon8 suggests while someone types a search.

GET/v1/lemon8/search-suggestionsx-api-keyLemon8 Scraper API overview
x-api-keystringrequiredheader

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

Query parameters
2
querystringrequiredquery

Typed text, up to 100 characters. The same text is returned as query.

min 1 chars · max 100 chars

Examplemakeup
regionenumquery

Lemon8 market: us (default), gb, au, ca, nz, sg, my, id, th, vn or jp.

one of: us, gb, au, ca, nz, sg, my, id, th, vn, jp

Response fields
23
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.

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.

querystring

Typed text, up to 100 characters. The same text is returned as query.

Suggestions in Lemon8’s order: type (keyword or user) and text; a user suggestion also has userId, which Profile accepts, and avatar.

up to 50 items

suggestions.typeenum

Always included.

one of: keyword, user

suggestions.textstring

Always included.

suggestions.userIdstringoptional

Optional.

suggestions.avatarstringoptional

Optional.

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.