← すべての API を見る

Reddit user_posts API

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

  • 公開エンドポイント 1 件
  • GET /v1/reddit/users/{username}/posts

契約サマリー(英語): List recent posts of a user (capability reddit.user_posts)

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

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

活用シーン

  • {{platform}} アカウントの投稿を順序どおりに監視、各項目は正規化済みの指標付き。
  • 定期ジョブでフィードを再クエリして新規アクティビティを検出——アラートやダイジェストに最適。
  • 比較可能な構造化出力で、アカウント間の投稿頻度とエンゲージメントをベンチマーク。

レスポンスフィールド

Reddit user posts response (normalized envelope)

Response envelope for GET /v1/reddit/users/{username}/posts (capability reddit.user_posts). Cursor is opaque and platform-independent; when the upstream provider is switched the old cursors become invalid. 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.
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/reddit/users/{username}/posts
curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
  "https://api.fetchpi.com/v1/reddit/users/newdev/posts"
{
  "data": [
    {
      "id": "1simpost01",
      "platform": "reddit",
      "type": "post",
      "author": {
        "id": "7004994945",
        "username": "creatordev",
        "display_name": null,
        "verified": false
      },
      "title": "First post on the platform.",
      "text": "One API for every platform.",
      "url": "https://www.reddit.com/r/dataapi/comments/1simpost01/",
      "created_at": "2026-09-16T19:23:20Z",
      "metrics": {
        "upvotes": 864,
        "downvotes": 12,
        "comments": 42
      },
      "attachments": [],
      "fetched_at": "2026-09-18T09:00:00Z"
    },
    {
      "id": "1simpost02",
      "platform": "reddit",
      "type": "post",
      "author": {
        "id": "7004994945",
        "username": "creatordev",
        "display_name": null,
        "verified": false
      },
      "title": "Freshness modes, explained.",
      "text": "One API for every platform.",
      "url": "https://www.reddit.com/r/dataapi/comments/1simpost02/",
      "created_at": "2026-09-16T08:00:00Z",
      "metrics": {
        "upvotes": 412,
        "downvotes": 9,
        "comments": 18
      },
      "attachments": [
        {
          "type": "photo",
          "url": "https://cdn.example.com/p1-full.jpg",
          "preview_image_url": "https://cdn.example.com/p1.jpg"
        },
        {
          "type": "video",
          "url": "https://cdn.example.com/p2.mp4",
          "preview_image_url": "https://cdn.example.com/p2.jpg"
        }
      ],
      "fetched_at": "2026-09-18T09:00:00Z"
    }
  ],
  "next_cursor": "eyJ2IjoxLCJzcmMiOiJ4dGhpcmQiLCJwb3MiOiJ0M19zaW0ifQ",
  "meta": {
    "request_id": "req_01HTXQ8Z9HTQ",
    "freshness": {
      "mode": "default",
      "age_seconds": 0,
      "source_layer": "upstream",
      "stale": false
    },
    "billing": {
      "amount_credits": 200,
      "cache_hit": false
    }
  }
}

無料デモ

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

Playground で試す

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

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

よくある質問

フィードを定期ポーリングできますか?

はい——通常の REST 呼び出しなので任意のスケジューラで再クエリできます。新鮮度パラメータで鮮度と課金方法を制御します。

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

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

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

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

料金

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