← すべての API を見る

Lemon8 search_posts API

REST 呼び出し1回で Lemon8 の search_posts データを取得——全プラットフォーム共通の安定した JSON スキーマに正規化。

  • 公開エンドポイント 1 件
  • GET /v1/lemon8/search/posts

契約サマリー(英語): Search Lemon8 notes (capability lemon8.search_posts)

正規化されたレスポンスエンティティ
lemon8/search_posts
capability
lemon8.search_posts

すべてのレスポンスには新鮮度(cache / default / live)と課金メタデータも含まれます。

活用シーン

  • キーワードで {{platform}} のコンテンツとアカウントを検索、スコアリングできる正規化結果を返します。
  • トレンドや人気リストを追い、新しい話題の芽をいち早く捉える。
  • 検索・トレンドクエリにアラートを設定し、変化をリアルタイムで把握。

レスポンスフィールド

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).

フィールド型必須説明
datapost[]必須—
next_cursorstring | null必須Opaque pagination cursor; null when the list is exhausted.
querystring任意The echoed search query.
meta.request_idstring必須—
meta.freshness.modecache | default | live必須—
meta.freshness.age_secondsinteger | null任意—
meta.freshness.source_layercache | db | upstream必須—
meta.freshness.staleboolean任意—
meta.billing.cache_hitboolean必須—
meta.billing.amount_creditsinteger必須Credits actually charged for this request (the settlement unit; 1 credit = $0.0001, permanent).

フィールドの注記は契約英語の原文のまま表示されます。

レスポンスメタデータ

フィールド型必須説明
modecache | default | live必須Effective mode after merging param > max_age > source policy (D-004).
age_secondsinteger | null任意Age of served data; null when unknown.
source_layercache | db | upstream必須Which layer served the response (PRD §10).
staleboolean任意True when stale data was served under stale_if_error / SWR (D-004).
billing.amount_creditsinteger必須Micro-USD (1e-6 USD) actually charged for this request.
billing.cache_hitboolean必須—

フィールドの注記は契約英語の原文のまま表示されます。

リクエストとレスポンスの例

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
    }
  }
}

無料デモ

無料アカウントを作成して API キーを取得すれば、ブラウザ版 Playground からこのエンドポイントを呼び出せます。

Playground で試す

このエンドポイントのパラメータ表・エラーコード・レスポンスの詳細は API ドキュメントにあります。

エンドポイントリファレンスを開く

よくある質問

cache と live の新鮮度の違いは?

cache は保存済みスナップショットから応答し上流へアクセスしません。live はより新しいデータを照会し、追加クレジットがかかる場合があります——詳細はドキュメントの新鮮度の項を参照。

このエンドポイントを無料で試せますか?

はい——アカウント登録後に API キーを取得すれば、コンソールの Playground から呼び出せます。

search_posts ケイパビリティの課金は?

Data API はリクエスト単位のクレジット課金で、cache/live の新鮮度により倍率が変わります。最新のケイパビリティ別価格は料金ページをご確認ください。

料金

リクエスト単位のクレジット課金、cache/live の新鮮度オプション対応——最新価格は料金ページをご確認ください。