---
title: research reddit
description: Reddit の投稿、コメント、コミュニティを調査します
canonical_url: https://orchestor.io/docs/cli/research/reddit
markdown_url: https://orchestor.io/docs/cli/research/reddit.md
contentType: reference
---

# research reddit

Reddit の投稿、コメント、コミュニティを調査します。検索から得た正規の投稿 URL を詳細取得やコメント取得に渡せます。

## 使い方

```bash title="terminal"
orc research reddit posts search --query "AI agents" --sort new --workspace YOUR_WORKSPACE_ID --format json
```

*新しい投稿を検索する*

## サブコマンド

### `posts get`

投稿を取得します。

```bash title="terminal"
orc research reddit posts get [options]
```

#### 固有のオプション

##### `--url`

Full HTTPS Reddit post permalink containing /r/{community}/comments/{post_id}. Shortlinks are not accepted.; max 2048 chars

型: `string`。必須。

```bash title="terminal"
orc research reddit posts get --url <value>
```

### `posts comments list`

投稿のコメントを一覧取得します。

```bash title="terminal"
orc research reddit posts comments list [options]
```

#### 固有のオプション

##### `--url`

Full HTTPS Reddit post permalink containing /r/{community}/comments/{post_id}. Shortlinks are not accepted.; max 2048 chars

型: `string`。必須。

```bash title="terminal"
orc research reddit posts comments list --url <value>
```

### `comments search`

コメントを検索します。

```bash title="terminal"
orc research reddit comments search [options]
```

#### 固有のオプション

##### `--query`

Search text. Search indexes do not guarantee exhaustive coverage.; max 500 chars

型: `string`。必須。

```bash title="terminal"
orc research reddit comments search --query <value>
```

##### `--sort`

Source comment search ordering.; enum: relevance|top|new

型: `string`。任意。

```bash title="terminal"
orc research reddit comments search --sort <value>
```

### `posts search`

投稿を検索します。

```bash title="terminal"
orc research reddit posts search [options]
```

#### 固有のオプション

##### `--query`

Search text. Search indexes do not guarantee exhaustive coverage.; max 500 chars

型: `string`。必須。

```bash title="terminal"
orc research reddit posts search --query <value>
```

##### `--sort`

Source ranking. timeframe does not apply to new.; enum: relevance|new|top|comment_count

型: `string`。任意。

```bash title="terminal"
orc research reddit posts search --sort <value>
```

##### `--timeframe`

Relative source time window. Ignored with sort=new; on subreddit listing applies only to top ordering.; enum: all|day|week|month|year

型: `string`。任意。

```bash title="terminal"
orc research reddit posts search --timeframe <value>
```

### `subreddits get`

コミュニティを取得します。

```bash title="terminal"
orc research reddit subreddits get [options]
```

#### 固有のオプション

##### `--subreddit`

Canonical subreddit name without r/, for example AskReddit. Preserve source casing.

型: `string`。必須。

```bash title="terminal"
orc research reddit subreddits get --subreddit <value>
```

### `subreddits posts list`

コミュニティの投稿を一覧取得します。

```bash title="terminal"
orc research reddit subreddits posts list [options]
```

#### 固有のオプション

##### `--subreddit`

Canonical subreddit name without r/, for example AskReddit. Preserve source casing.

型: `string`。必須。

```bash title="terminal"
orc research reddit subreddits posts list --subreddit <value>
```

##### `--sort`

Community listing order.; enum: best|hot|new|top|rising

型: `string`。任意。

```bash title="terminal"
orc research reddit subreddits posts list --sort <value>
```

##### `--timeframe`

Relative source time window. Ignored with sort=new; on subreddit listing applies only to top ordering.; enum: all|day|week|month|year

型: `string`。任意。

```bash title="terminal"
orc research reddit subreddits posts list --timeframe <value>
```

### `subreddits posts search`

コミュニティの投稿を検索します。

```bash title="terminal"
orc research reddit subreddits posts search [options]
```

#### 固有のオプション

##### `--subreddit`

Canonical subreddit name without r/, for example AskReddit. Preserve source casing.

型: `string`。必須。

```bash title="terminal"
orc research reddit subreddits posts search --subreddit <value>
```

##### `--query`

Search text. Search indexes do not guarantee exhaustive coverage.; max 500 chars

型: `string`。必須。

```bash title="terminal"
orc research reddit subreddits posts search --query <value>
```

##### `--sort`

Source search ordering.; enum: relevance|hot|top|new|comments

型: `string`。任意。

```bash title="terminal"
orc research reddit subreddits posts search --sort <value>
```

##### `--timeframe`

Relative window; ignored for new ordering.; enum: all|year|month|week|day|hour

型: `string`。任意。

```bash title="terminal"
orc research reddit subreddits posts search --timeframe <value>
```

## 出力と継続

1回で1ページを取得します。継続可能な場合はトップレベルの `pagination.next_cursor` を `--cursor` に渡し、検索条件を維持します。`data.next_cursor` は使用しません。`has_more: null` は不明であり、完了ではありません。`--page-all` は使えません。

JSONでは `data.data` に取得内容、`data.pagination` に継続情報、`data.source` に取得元情報が入ります。`--raw` はCLIの外枠を外し、`--field data` はAPIのデータだけを選択します。欠損・nullを0として扱わないでください。

`data.usage.provider_credits` は取得元の単位で、Orchestorの請求単位とは異なります。取得範囲・プロバイダー固有の制約は各APIリファレンスに記載しています。

## 必要な権限

`orc auth login` でベータ承認済みアカウントにログインするか、`read` スコープの API キーを使用します。アクセスできる Workspace を `--workspace` で指定します。research 専用の Workspace 許可リストは不要です。

## グローバルオプション

`orc research reddit` では、次の[グローバルオプション](https://orchestor.io/docs/cli/global-flags.md)を使用できます。

- [`--help`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%98%E3%83%AB%E3%83%97)
- [`--workspace`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%B9%E3%83%9A%E3%83%BC%E3%82%B9)
- [`--json`](https://orchestor.io/docs/cli/global-flags.md#json-%E5%87%BA%E5%8A%9B)
- [`--pretty`](https://orchestor.io/docs/cli/global-flags.md#json-%E5%87%BA%E5%8A%9B)
- [`--format`](https://orchestor.io/docs/cli/global-flags.md#%E5%87%BA%E5%8A%9B%E5%BD%A2%E5%BC%8F)
- [`--field`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%8A%BD%E5%87%BA)
- [`--fields`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%8A%BD%E5%87%BA)
- [`--raw`](https://orchestor.io/docs/cli/global-flags.md#%E5%80%A4%E3%81%A0%E3%81%91%E3%82%92%E5%87%BA%E5%8A%9B)
- [`--output`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%B8%E3%81%AE%E5%87%BA%E5%8A%9B)
- [`--no-pager`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%9A%E3%83%BC%E3%82%B8%E9%80%81%E3%82%8A)
- [`--dry-run`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E3%81%AE%E4%BA%8B%E5%89%8D%E7%A2%BA%E8%AA%8D)
- [`--yes`](https://orchestor.io/docs/cli/global-flags.md#%E7%A2%BA%E8%AA%8D%E3%81%AE%E7%9C%81%E7%95%A5)
- [`--cursor`](https://orchestor.io/docs/cli/global-flags.md)
- [`--stdin`](https://orchestor.io/docs/cli/global-flags.md#%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B)
- [`--from-stdin`](https://orchestor.io/docs/cli/global-flags.md#%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B)
- [`--timing`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E6%99%82%E9%96%93)

各オプションの詳細と使用例は、[グローバルオプション](https://orchestor.io/docs/cli/global-flags.md)を参照してください。

---

[Documentation index](https://orchestor.io/docs/llms.txt)
