# Subreddit の投稿

**API:** Data API

**Endpoint:** `GET /v1/beta/reddit/subreddit`

**Tags:** Reddit

1 つの subreddit の投稿ストリームを、ページング用の after トークンとともに返します。投稿には get_reddit_search と同じフィールドが含まれ、title、author、selftext、score、ups、upvote_ratio、num_comments、created_utc、created_at_iso、url、permalink、subreddit_subscribers があります。sort は best、hot、new、top、rising を受け付けます。重要：timeframe は sort=top と組み合わせた場合にのみ受け付けられ、それ以外の組み合わせではパラメーターを無視せず 400 を返します。subreddit 名は大文字と小文字を区別します。同じ subreddit 内で検索するには get_reddit_subreddit_search、そのメタデータには get_reddit_subreddit_details を使用してください。

### 料金の参考情報

- 計測方法：結果件数単位で計測。
- 参考リクエスト見積もり：USD 0.00188。
- 参照用の顧客乗数：1.0。確定済みの顧客金額には再適用しないでください。

参考情報のメタデータであり、アカウントへの見積もり、保証された価格、支出上限ではありません。リソースクレジットは Felo クレジットではありません。最終的な請求は Felo の請求記録に従います。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `after` | query | no | string |  |
| `cache_max_age` | query | no | string |  |
| `sort` | query | no | string |  |
| `subreddit` | query | no | string |  |
| `timeframe` | query | no | string |  |
| `trim` | query | no | string |  |

## Responses

### 200 — 成功レスポンス

Headers:
- `X-Request-Id` (string) — Felo サポートに問い合わせる際に伝えるリクエスト識別子。

**application/json**

Schema: `Response799D183Abaf0_RedditPostsResponse` (`#/components/schemas/Response799D183Abaf0_RedditPostsResponse`)

Example:

```json
{
  "posts": [
    {
      "id": "1lfbo7u",
      "author": "Vetro_Nodulare2",
      "author_fullname": "t2_16syu27ar1",
      "subreddit": "AskReddit",
      "title": "What is a thing you love that lots of people hate?",
      "downs": 0,
      "name": "t3_1lfbo7u",
      "upvote_ratio": 0.9,
      "ups": 45,
      "total_awards_received": 0,
      "score": 45,
      "created": 1750341959,
      "num_comments": 349,
      "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/",
      "subreddit_subscribers": 56146328,
      "is_video": false,
      "created_utc": 1750341959
    }
  ],
  "after": "t3_1lfogps"
}
```

### 400 — リクエストを処理できませんでした。リクエストパラメータを確認してください。

### 401 — 有効な Felo API キーが必要です。

### 402 — 請求要件が満たされていないため、リクエストを続行できません。

### 403 — このアカウントにはこの操作を行う権限がありません。

### 429 — リクエストまたは支出の上限に達しました。

### 502 — サービスがリクエストを完了できませんでした。

### 503 — API または請求サービスが一時的に利用できません。

### 504 — リクエストの処理中にサービスがタイムアウトしました。

### default — エラーレスポンス。上流のパススルーレスポンスはプロバイダーの形式を使用する場合があります

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response799D183Abaf0_RedditPost

`#/components/schemas/Response799D183Abaf0_RedditPost`

```json
{
  "type": "object",
  "additionalProperties": true
}
```

### Response799D183Abaf0_RedditPostsResponse

`#/components/schemas/Response799D183Abaf0_RedditPostsResponse`

```json
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "posts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Response799D183Abaf0_RedditPost"
      }
    },
    "after": {
      "type": [
        "string",
        "null"
      ]
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": true
}
```
