querystringobbligatorio
Search keyword
https://api.sandbase.ai/v1/api/lemon8/app/searchSearch Lemon8 posts and users by keyword: post titles, content, authors, images and engagement, with Top and other tabs, sorting and filters.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Search Lemon8 for a keyword and get matching posts and users. Choose the tab with search_tab and paginate with max_cursor.
curl -X POST "https://api.sandbase.ai/v1/api/lemon8/app/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "OpenAI"}'
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword |
order_by | string | No | Search sort type, default is an empty string, optional values are as follows: Empty string: Relevance (default using th… |
max_cursor | string | No | Pagination parameter, can be obtained from the return result of the last request. |
search_tab | string | No | Search type, default is main, optional values are as follows: main: Display as Top in the APP (comprehensive search… |
filter_type | string | No | Search filter type, default is an empty string, optional values are as follows: Empty string: All (default using this p… |
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"data": {
"has_more": true,
"items": [
{
"articles": [
{
"group_id": "7661250232746885645",
"article_class": "Gallery",
"language": "en",
"publish_time": 1783774883,
"read_count": 16,
"title": "ChatGPT just clocked in. 👀 OpenAI launched Cha…",
"article_url": "https://www.lemon8-app.com/@itsdebbiedarlin/76612…",
"author": {
"name": "<user>"
}
}
]
}
]
}
}
Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
Send the keyword as query, not keyword. The default search_tab is main, corresponding to Top in the app. It is a comprehensive tab; user, hashtag and article are separate choices and should not be assumed to return the same record shape. Start with an empty max_cursor and keep the selected tab, filter_type and order_by with the saved response.
The main-tab public reference nests article candidates under data.items[].articles. An outer item is not necessarily one post. Read each available articles list before selecting group_id and the source link; do not treat the group's position or a generic wrapper ID as a post identifier. Preserve titles and IDs as returned, and do not silently turn a missing list into a successful empty search.
The schema describes empty order_by as relevance, popular and recent as other choices; filter_type accepts empty for all, video or posts. Do not confuse that posts filter with the article search tab. These settings describe a selected search, not complete platform coverage or measured demand for a topic.
The schema names max_cursor and has_more for continuation, but the shortened reference does not provide a complete next-request token. This guide stops at the first page and does not invent a cursor or follow every candidate. Once you choose an item ID, Post Details is a separate request.
Already have a SandBase key? Keep SANDBASE_API_KEY in your local environment and use this page's API tab for POST /v1/api/ with Bearer authentication. A connected agent needs one selected endpoint and your query or item_id. Starting a project? Share the setup Skill, Markdown quickstart and the output you want. Ask it to save one response before adding another call.
Validate completed SandBase status and outputs[0].data. Do not read a top-level output fallback or turn a missing payload into an empty success. The search reference shows an inner data object; the saved post-detail example also has message success. Reference excerpts and saved examples are historical evidence, not proof of a fresh call or a guarantee that every optional field appears.
Pricing checked on 2026-11-08: both selected routes list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not a remaining-quota measurement. Check current pricing before executing. This revision made no new business query. See the Lemon8 Python discovery guide for the tested local parsing approach and separately dated provider evidence.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/lemon8/app/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "OpenAI",
"order_by": "",
"max_cursor": "",
"search_tab": "main",
"filter_type": ""
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
querystringobbligatorioSearch keyword
filter_typestringSearch filter type, default is an empty string, optional values are as follows: Empty string: All (default using this parameter to search); video: Search only video; posts: Search only posts
Predefinito: ""
max_cursorstringPagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the `max_cursor` returned by the last request is used for subsequent requests. You can judge whether there is more data by the `has_more` field in the return result.
Predefinito: ""
order_bystringSearch sort type, default is an empty string, optional values are as follows: Empty string: Relevance (default using this parameter to sort); popular: Sort by popularity; recent: Sort from new to old
Predefinito: ""
search_tabstringSearch type, default is `main`, optional values are as follows: main: Display as `Top` in the APP (comprehensive search, default using this parameter to search); user: Display as `Accounts` in the APP (search user accounts); hashtag: Display as `Hashtags` in the APP (search hashtags); article: Display as `Posts` in the APP (search articles)
Predefinito: "main"
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Lemon8 SearchQuesta API Lemon8 | $0.001 per chiamata | JSON |
Lemon8 | $0.001 per chiamata | JSON |
Lemon8 | $0.001 per chiamata | JSON |
Lemon8 | $0.001 per chiamata | JSON |
Lemon8 | $0.001 per chiamata | JSON |
Lemon8 | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/lemon8/app/search con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.
Richiesti: query (string). Facoltativi: filter_type (string), max_cursor (string), order_by (string) e search_tab (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Lemon8 Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Lemon8.
La route selezionata richiede query. Il suo search_tab predefinito è main (Top); user, hashtag e article sono scelte di tab separate. Conserva la query e i filtri selezionati insieme alla risposta invece di presumere che tutti i tab abbiano la stessa struttura.
La reference pubblica li annida sotto data.items[].articles nel payload business. Un elemento esterno non è necessariamente un post. Esamina gli articles prima di selezionare un group_id; non usare la posizione di un wrapper come identificatore del post.
Da quell’esempio abbreviato non viene stabilito alcun token di continuazione completo. Lo schema descrive max_cursor e has_more, ma questa guida si ferma alla prima pagina e non inventa un cursore né afferma un test di continuazione.