FetchPI
Log in
← Browse all APIs

Lemon8 search_posts API

Lemon8 search_posts data in one REST call — normalized to the stable JSON schema shared across every FetchPI platform.

  • 1 documented endpoints
  • GET /v1/lemon8/search/posts

Contract summary (English): Search Lemon8 notes (capability lemon8.search_posts)

Normalized response entity
lemon8/search_posts
capability
lemon8.search_posts

Every response also carries freshness (cache / default / live) and billing metadata.

Use cases

  • Find {{platform}} content and accounts matching a keyword, with normalized results ready for scoring.
  • Follow trending topics and hot lists to catch emerging conversations early.
  • Alert on search and trend queries so your team sees shifts as they happen.

Response fields

Lemon8 lemon8.search_posts response (normalized envelope)

Response envelope of the /v1/lemon8 lemon8.search_posts capability. Cursor is opaque and platform-independent; page size follows the request's `limit` parameter (1..100, default 20).

FieldTypeRequiredDescription
datapost[]Required—
next_cursorstring | nullRequiredOpaque pagination cursor; null when the list is exhausted.
querystringOptionalThe echoed search query.
meta.request_idstringRequired—
meta.freshness.modecache | default | liveRequired—
meta.freshness.age_secondsinteger | nullOptional—
meta.freshness.source_layercache | db | upstreamRequired—
meta.freshness.stalebooleanOptional—
meta.billing.cache_hitbooleanRequired—
meta.billing.amount_creditsintegerRequiredCredits actually charged for this request (the settlement unit; 1 credit = $0.0001, permanent).

Field notes are shown in the contract's original English.

Response meta

FieldTypeRequiredDescription
modecache | default | liveRequiredEffective mode after merging param > max_age > source policy (D-004).
age_secondsinteger | nullOptionalAge of served data; null when unknown.
source_layercache | db | upstreamRequiredWhich layer served the response (PRD §10).
stalebooleanOptionalTrue when stale data was served under stale_if_error / SWR (D-004).
billing.amount_creditsintegerRequiredMicro-USD (1e-6 USD) actually charged for this request.
billing.cache_hitbooleanRequired—

Field notes are shown in the contract's original English.

Example request & response

GET/v1/lemon8/search/posts
curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
  "https://api.fetchpi.com/v1/lemon8/search/posts?q=meshdata"
{
  "data": [
    {
      "id": "7423050000000001001",
      "platform": "lemon8",
      "type": "post",
      "author": {
        "id": "7304994945116",
        "username": "meshdata_lemon",
        "display_name": "MeshData on Lemon8",
        "verified": false
      },
      "title": "Lemon8 note: data APIs",
      "text": "A lifestyle note with structured metrics.",
      "created_at": "2026-09-13T11:00:00Z",
      "metrics": {
        "likes": 1320,
        "comments": 64,
        "collects": 210
      },
      "attachments": [
        {
          "type": "photo",
          "url": "https://cdn.example.com/images/lemon8-7423050000000001001-1.jpeg"
        },
        {
          "type": "photo",
          "url": "https://cdn.example.com/images/lemon8-7423050000000001001-2.jpeg"
        }
      ],
      "fetched_at": "2026-09-21T09:00:00Z"
    }
  ],
  "next_cursor": null,
  "query": "数据",
  "meta": {
    "request_id": "req_01HTXQ8Z9HTQ",
    "freshness": {
      "mode": "default",
      "age_seconds": 0,
      "source_layer": "upstream",
      "stale": false
    },
    "billing": {
      "amount_credits": 300,
      "cache_hit": false
    }
  }
}

Free demo

Create a free account, grab an API key and call this endpoint from the browser-based Playground.

Try it in the Playground

Parameter tables, error codes and response semantics for this endpoint live in the API documentation.

Open the endpoint reference

Frequently asked questions

What is the difference between cache and live freshness?

cache answers from the stored snapshot without touching the upstream; live queries fresher data and may cost extra credits — see the freshness section of the docs.

Can I try this endpoint for free?

Yes — register an account, grab an API key and call it from the Playground in the console.

How is the search_posts capability billed?

Data API calls are billed per request in credits, with different cache/live freshness multipliers. Current per-capability prices live on the pricing page.

Pricing

Per-request credit billing with cache/live freshness options — current prices live on the pricing page.