---
title: "Reddit キーワード検索 API (V1)"
description: "オプションのcontinuation tokenを使用してRedditの投稿をキーワードで検索します。トピックに関連する議論を発見したり、追加の検索結果ページを続けて見たりするために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# Reddit キーワード検索 API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/reddit/search/v1\"")'
  :summary='JSON.parse("\"キーワード検索 (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/reddit/keyword-search-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"このAPIサービスのアクセストークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"検索クエリキーワード。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"after\",\"in\":\"query\",\"description\":\"次の結果セットを取得するためのページングトークン。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Redditの検索結果とページング情報。\",\"properties\":{\"search\":{\"type\":\"object\",\"description\":\"検索結果データ。\",\"properties\":{\"dynamic\":{\"type\":\"object\",\"description\":\"検索結果に返される動的結果データ。\",\"properties\":{\"components\":{\"type\":\"object\",\"description\":\"検索結果に返されるコンポーネント。\",\"properties\":{\"__typename\":{\"type\":\"string\",\"description\":\"検索コンポーネントオブジェクトのGraphQL型名。\"},\"appliedState\":{\"type\":\"object\",\"description\":\"この応答で報告された検索フィルターと結果ペイン。\",\"properties\":{\"filters\":{\"type\":\"array\",\"description\":\"検索結果に適用されたフィルターの報告。\",\"items\":{\"type\":\"object\",\"description\":\"報告された検索フィルターの一つ。\",\"properties\":{\"key\":{\"type\":\"string\",\"description\":\"報告されたフィルターの名前。\"},\"value\":{\"type\":\"string\",\"description\":\"報告されたフィルターの値。\"}}}},\"pane\":{\"type\":\"string\",\"description\":\"検索の結果ペインの報告。\"}}},\"main\":{\"type\":\"object\",\"description\":\"主要な結果接続、結果エッジとページ情報を含む。\",\"properties\":{\"edges\":{\"type\":\"array\",\"description\":\"ページ上の結果エッジ。エッジにはリスト、行、または別の検索コンポーネントが含まれることがある。\",\"items\":{\"type\":\"object\",\"description\":\"一つの結果エッジ。\",\"properties\":{\"cursor\":{\"type\":\"string\",\"description\":\"この結果エッジで報告されたカーソル。\"},\"node\":{\"type\":\"object\",\"description\":\"このエッジ上の検索コンポーネント。一部のコンポーネントタイプには投稿結果が含まれる。\",\"properties\":{\"__typename\":{\"type\":\"string\",\"description\":\"検索コンポーネントを識別するGraphQL型。\"},\"children\":{\"type\":\"array\",\"description\":\"存在する場合、コンポーネントの子結果。\",\"items\":{\"type\":\"object\",\"description\":\"一つの子結果。投稿結果には投稿オブジェクトが含まれる。\",\"properties\":{\"__typename\":{\"type\":\"string\",\"description\":\"子結果を識別するGraphQL型。\"},\"post\":{\"type\":\"object\",\"description\":\"存在する場合、投稿結果の投稿情報。\",\"properties\":{\"__typename\":{\"type\":\"string\",\"description\":\"投稿オブジェクトのGraphQL型名。\"},\"authorFlair\":{\"type\":[\"object\",\"null\"],\"description\":\"このコミュニティでの著者フレア、利用可能な場合。\",\"properties\":{\"richtext\":{\"type\":[\"string\",\"null\"],\"description\":\"著者フレアのリッチテキストのシリアル化、提供されている場合。\"},\"text\":{\"type\":\"string\",\"description\":\"著者フレアの表示テキスト。\"}}},\"authorInfo\":{\"type\":\"object\",\"description\":\"投稿者に関する公開情報。\",\"properties\":{\"accountType\":{\"type\":\"string\",\"description\":\"投稿者が報告したアカウントのタイプ。\"},\"iconSmall\":{\"type\":\"object\",\"description\":\"小さな著者アイコン画像。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像のピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"画像URL。\"}}},\"id\":{\"type\":\"string\",\"description\":\"投稿者のRedditでのフルID。\"},\"isCakeDayNow\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿を著者のアカウントの周年記念としてマークするかどうか。\"},\"name\":{\"type\":\"string\",\"description\":\"投稿者のRedditユーザー名。\"},\"newIcon\":{\"type\":\"object\",\"description\":\"新しいアイコンフィールドに返される著者アイコン画像。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像のピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"画像URL。\"}}},\"profile\":{\"type\":\"object\",\"description\":\"著者に関連する公開されたRedditプロフィール情報。\",\"properties\":{\"isNsfw\":{\"type\":\"boolean\",\"description\":\"Redditが著者のプロフィールをNSFWとしてマークするかどうか。\"}}},\"snoovatarIcon\":{\"type\":[\"object\",\"null\"],\"description\":\"利用可能な場合、著者のSnoovatar画像。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像のピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"画像URL。\"}}}}},\"awardings\":{\"type\":\"array\",\"description\":\"該当投稿に関する賞の記録が返されました。\",\"items\":{\"type\":\"object\",\"description\":\"一種類の賞とその数。\",\"properties\":{\"award\":{\"type\":\"object\",\"description\":\"賞の種類に関する公開詳細。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Redditの賞識別子。\"},\"name\":{\"type\":\"string\",\"description\":\"賞の表示名。\"}}},\"total\":{\"type\":\"integer\",\"description\":\"該当投稿で報告されたこの賞の数。\"}}}},\"commentCount\":{\"type\":\"integer\",\"description\":\"投稿のコメント数。\"},\"content\":{\"type\":[\"object\",\"null\"],\"description\":\"Redditが提供する場合の投稿本文。値はnullの場合もあります。\",\"properties\":{\"html\":{\"type\":\"string\",\"description\":\"提供された場合の投稿本文のHTML表示。\"},\"markdown\":{\"type\":\"string\",\"description\":\"Redditが返信する場合のMarkdown形式の投稿本文。\"},\"preview\":{\"type\":\"string\",\"description\":\"提供された場合の本文プレビュー。\"},\"richtext\":{\"type\":\"string\",\"description\":\"Redditが利用可能な場合のシリアル化されたリッチテキストストリング。\"},\"richtextMedia\":{\"type\":\"array\",\"description\":\"投稿本文内で参照されているメディアアイテム。\",\"items\":{\"type\":\"object\",\"description\":\"投稿本文で参照されている一つのメディアアイテム。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"このメディアアイテムのピクセル単位の高さ。\"},\"id\":{\"type\":\"string\",\"description\":\"投稿本文内のメディアID。\"},\"mimetype\":{\"type\":\"string\",\"description\":\"投稿本文内のメディアアイテムのMIMEタイプ。\"},\"status\":{\"type\":\"string\",\"description\":\"投稿本文内のメディアアイテムの状態が報告された内容。\"},\"url\":{\"type\":\"string\",\"description\":\"投稿本文内のこのメディアアイテムのURL。\"},\"width\":{\"type\":\"integer\",\"description\":\"このメディアアイテムの幅、ピクセル単位で表示。\"}}}}}},\"createdAt\":{\"type\":\"string\",\"description\":\"投稿の作成時刻をテキスト形式で。Redditはコロンなしでタイムゾーンオフセットを返すことがあります。\"},\"domain\":{\"type\":\"string\",\"description\":\"Redditが報告する投稿のドメインラベル。\"},\"editedAt\":{\"type\":[\"string\",\"null\"],\"description\":\"投稿の編集時刻が利用可能な場合。\"},\"flair\":{\"type\":[\"object\",\"null\"],\"description\":\"利用可能な投稿フレア。\",\"properties\":{\"richtext\":{\"type\":[\"string\",\"null\"],\"description\":\"投稿フレアのシリアライズされたリッチテキスト内容（提供されている場合）。\"},\"text\":{\"type\":\"string\",\"description\":\"投稿フレアの表示テキスト。\"},\"type\":{\"type\":\"string\",\"description\":\"Redditで報告された投稿のフレアタイプ。\"}}},\"gallery\":{\"type\":[\"object\",\"null\"],\"description\":\"投稿に含まれるギャラリー。\",\"properties\":{\"items\":{\"type\":\"array\",\"description\":\"ギャラリー内のメディアエントリ。\",\"items\":{\"type\":\"object\",\"description\":\"一つのギャラリーエントリ。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ギャラリーエントリの識別子。\"},\"media\":{\"type\":\"object\",\"description\":\"このギャラリーエントリのメディア。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ギャラリーのメディアの高さをピクセルで表す。\"},\"id\":{\"type\":\"string\",\"description\":\"ギャラリーメディアのReddit識別子。\"},\"large\":{\"type\":\"object\",\"description\":\"大きな画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"medium\":{\"type\":\"object\",\"description\":\"中くらいの画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"mimetype\":{\"type\":\"string\",\"description\":\"ギャラリーメディアのMIMEタイプ。\"},\"small\":{\"type\":\"object\",\"description\":\"小さな画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"url\":{\"type\":\"string\",\"description\":\"ギャラリーメディアの返されるURL。\"},\"width\":{\"type\":\"integer\",\"description\":\"ギャラリーメディアのピクセル単位の幅。\"},\"xlarge\":{\"type\":\"object\",\"description\":\"特大の画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"xxlarge\":{\"type\":[\"object\",\"null\"],\"description\":\"ダブル特大の画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"xxxlarge\":{\"type\":[\"object\",\"null\"],\"description\":\"トリプル特大の画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}}}}}}}}},\"id\":{\"type\":\"string\",\"description\":\"Redditの完全な投稿ID、t3_プレフィックスを含む。\"},\"isArchived\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿をアーカイブ済みとしてマークするかどうか。\"},\"isCommercialCommunication\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿を広告通信としてマークするかどうか。\"},\"isContestMode\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿をコンテストモードにあるとマークするかどうか。\"},\"isCrosspostable\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿をクロス投稿に適しているとマークするかどうか。\"},\"isLocked\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿をロック済みとしてマークするかどうか。\"},\"isNsfw\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿を職場での安全でないものとしてマークするかどうか。\"},\"isPollIncluded\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿に投票機能が含まれていることを示すかどうか。\"},\"isScoreHidden\":{\"type\":\"boolean\",\"description\":\"Redditがスコアを隠されたとしてフラグ付けるかどうか。\"},\"isSelfPost\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿を自己投稿としてマークするかどうか。\"},\"isSpoiler\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿をスポイラーとしてマークするかどうか。\"},\"isStickied\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿をピン留めとしてマークするかどうか。\"},\"isTranslatable\":{\"type\":\"boolean\",\"description\":\"Redditがこの投稿を翻訳可能としてマークするかどうか。\"},\"isTranslated\":{\"type\":\"boolean\",\"description\":\"Redditが返される投稿を翻訳済みとしてマークするかどうか。\"},\"languageCode\":{\"type\":[\"string\",\"null\"],\"description\":\"投稿の報告された言語コード。\"},\"media\":{\"type\":[\"object\",\"null\"],\"description\":\"投稿に含まれるメディア。ギャラリーメディアには独自のセクションがあります。\",\"properties\":{\"download\":{\"type\":[\"object\",\"null\"],\"description\":\"Redditが提供する際にメタデータをダウンロードする。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"Redditから返されるメディアのダウンロードURL。\"}}},\"packagedMedia\":{\"type\":[\"object\",\"null\"],\"description\":\"Redditが提供する際のパッケージ化されたメディア。\",\"properties\":{\"muxedMp4s\":{\"type\":[\"object\",\"null\"],\"description\":\"品質別にグループ化されたパッケージ化されたMP4レンダイション。\",\"properties\":{\"high\":{\"type\":\"object\",\"description\":\"高品質のMP4レンダイション。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"パッケージ化されたMP4URL。\"}}},\"highest\":{\"type\":\"object\",\"description\":\"このコレクションで返される最高品質のMP4レンダイション。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"パッケージ化されたMP4URL。\"}}},\"low\":{\"type\":\"object\",\"description\":\"低品質のMP4レンダイション。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"パッケージ化されたMP4URL。\"}}},\"medium\":{\"type\":\"object\",\"description\":\"中品質のMP4レンダイション。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"パッケージ化されたMP4URL。\"}}},\"recommended\":{\"type\":\"object\",\"description\":\"Redditが推奨するMP4レンダイション。\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"パッケージ化されたMP4URL。\"}}}}}}},\"still\":{\"type\":\"object\",\"description\":\"投稿の静止画像。ソースとサイズ変更後のレンディションを含む。\",\"properties\":{\"large\":{\"type\":[\"object\",\"null\"],\"description\":\"大きな画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"medium\":{\"type\":[\"object\",\"null\"],\"description\":\"中くらいの画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"small\":{\"type\":[\"object\",\"null\"],\"description\":\"小さな画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"source\":{\"type\":\"object\",\"description\":\"静止画像のソース。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"xlarge\":{\"type\":[\"object\",\"null\"],\"description\":\"特大の画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"xxlarge\":{\"type\":[\"object\",\"null\"],\"description\":\"ダブル特大の画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}},\"xxxlarge\":{\"type\":[\"object\",\"null\"],\"description\":\"トリプル特大の画像レンディション。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"静止画像のURL。\"}}}}},\"streaming\":{\"type\":[\"object\",\"null\"],\"description\":\"Redditが提供するメタデータをストリームで送信する。\",\"properties\":{\"dashUrl\":{\"type\":\"string\",\"description\":\"DASHストリームマニフェストURL。\"},\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"duration\":{\"type\":\"integer\",\"description\":\"Redditが報告するストリームの持続時間値。\"},\"hlsUrl\":{\"type\":\"string\",\"description\":\"HLSストリームマニフェストURL。\"},\"isGif\":{\"type\":\"boolean\",\"description\":\"RedditがストリームをGIFスタイルのアニメーションとしてマークするかどうか。\"}}},\"typeHint\":{\"type\":[\"string\",\"null\"],\"description\":\"Redditが利用可能な場合に報告されるメディアタイプのヒント。\"}}},\"permalink\":{\"type\":\"string\",\"description\":\"この投稿の相対的なRedditパーマリンクパス。\"},\"postHint\":{\"type\":[\"string\",\"null\"],\"description\":\"Redditが利用可能な場合に報告される投稿提示ヒント。\"},\"postTitle\":{\"type\":\"string\",\"description\":\"投稿の報告されたタイトル。\"},\"score\":{\"type\":\"integer\",\"description\":\"Redditが報告した投稿のスコア。\"},\"subreddit\":{\"type\":\"object\",\"description\":\"このセクションが返される際の投稿に関連するコミュニティ。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Redditコミュニティの識別子。\"},\"isNsfw\":{\"type\":\"boolean\",\"description\":\"RedditがそのコミュニティをNSFWとしてマークしているかどうか。\"},\"isQuarantined\":{\"type\":\"boolean\",\"description\":\"Redditがそのコミュニティを隔離してマークしているかどうか。\"},\"name\":{\"type\":\"string\",\"description\":\"コミュニティの名前。\"},\"prefixedName\":{\"type\":\"string\",\"description\":\"Redditプレフィックス付きのコミュニティ名。\"},\"subscribersCount\":{\"type\":\"integer\",\"description\":\"そのコミュニティのサブスクライバー数。\"},\"title\":{\"type\":\"string\",\"description\":\"コミュニティの表示タイトル。\"},\"type\":{\"type\":\"string\",\"description\":\"Redditが報告したコミュニティのタイプ。\"}}},\"suggestedCommentSort\":{\"type\":[\"string\",\"null\"],\"description\":\"Redditが利用可能な場合に報告されるコメントの表示順序の提案。\"},\"thumbnail\":{\"type\":[\"object\",\"null\"],\"description\":\"投稿に含まれるサムネイル。\",\"properties\":{\"dimensions\":{\"type\":\"object\",\"description\":\"画像またはプレーヤーのピクセル単位のサイズ。\",\"properties\":{\"height\":{\"type\":\"integer\",\"description\":\"ピクセル単位の高さ。\"},\"width\":{\"type\":\"integer\",\"description\":\"ピクセル単位の幅。\"}}},\"url\":{\"type\":\"string\",\"description\":\"サムネイル画像のURL。\"}}},\"upvoteRatio\":{\"type\":\"number\",\"description\":\"投稿のアップボート比率が0から1の分数で報告される。\"},\"url\":{\"type\":\"string\",\"description\":\"投稿に関連するURL。\"}}}}}}}}}}},\"pageInfo\":{\"type\":\"object\",\"description\":\"現在の検索ページのページング情報。\",\"properties\":{\"endCursor\":{\"type\":\"string\",\"description\":\"hasNextPageがtrueの場合、同じキーワードを使用して次のページを要求する際に、このカーソルを変更せずに渡す。\"},\"hasNextPage\":{\"type\":\"boolean\",\"description\":\"Redditが後続のページが利用可能であるかどうかを報告するかどうか。\"},\"hasPreviousPage\":{\"type\":\"boolean\",\"description\":\"Redditが以前のページが利用可能であることを報告しているかどうか。\"},\"startCursor\":{\"type\":\"string\",\"description\":\"現在のページの開始位置で報告されたカーソル。\"}}}}}}}}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"有効でないリクエストパラメータまたはボディ。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"有効でないまたは無効なアクセストークン。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"権限拒否。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"リクエストレートまたは日次クォーターリミットを超過。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"内部サーバーエラー。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"サービスが一時的に利用できない。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"グローバルプロダクションAPI（デフォルト）\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/reddit/search/v1\"")' />

<p>オプションのcontinuation tokenを使用してRedditの投稿をキーワードで検索します。トピックに関連する議論を発見したり、追加の検索結果ページを続けて見たりするために使用します。</p>

## パラメータ

<div class="api-doc-table api-doc-table--params">

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | このAPIサービスのアクセストークン。 |
| <code>keyword</code> | query | <code>string</code> | はい | - | 検索クエリキーワード。 |
| <code>after</code> | query | <code>string</code> | いいえ | <code></code> | 次の結果セットを取得するためのページングトークン。 |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE'
```

```text [🤖 AIプロンプト]
私はJustOneAPIの"キーワード検索 (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE
APIエンドポイント: BASE_URL + /api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/reddit/keyword-search-v1-ja.json

パラメーター:
- token (query): このAPIサービスのアクセストークン。 (必須)
- keyword (query): 検索クエリキーワード。 (必須)
- after (query): 次の結果セットを取得するためのページングトークン。

返信形式：実際のContent-Typeに応じて、JSONまたはテキストを安全に処理する。

レスポンスの処理とエラーコード：
1. API の処理結果はレスポンス本文の「code」フィールドで判定します。code が 0 なら成功です。
2. 推奨タイムアウト：リクエストのタイムアウトは 120 秒に設定してください。120 秒が長すぎる場合でも、最低 60 秒を確保してください。一部のリクエストは、結果を受け取る前にタイムアウトすることがあります。
3. 処理結果コード：
   - 0: 成功
   - 100: 無効または停止中のトークン
   - 301: データの取得に失敗しました。再試行してください。
   - 302: 呼び出し頻度の上限を超えました
   - 303: 日次の利用上限を超えました
   - 400: パラメーターが無効です
   - 500: サーバー内部エラー
   - 600: アクセス権限がありません
   - 601: 残高不足
   - 602: トークンの予算上限に達しました
4. コード 601 はアカウントの共有残高不足を示します。コード 602 は使用中の API トークン固有の累積予算上限に達したことを示します。トークンに予算上限を設定しても、共有残高から資金が移動することはありません。

お手伝いください。私が好むプログラミング言語でこのAPIを呼び出し、レスポンスを処理するスクリプトを作成してください。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # オープンAPIサーバーによって提供される

url = BASE_URL + "/api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // オープンAPIサーバーによって提供される
const url = BASE_URL + "/api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // オープンAPIサーバーによって提供される
        final String url = BASE_URL + "/api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // オープンAPIサーバーによって提供される

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // オープンAPIサーバーによって提供される
$url = $BASE_URL . '/api/reddit/search/v1?token=YOUR_API_KEY&keyword=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/reddit/keyword-search-v1-ja.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI定義 (JSON)]</a>
</div>

## レスポンスフィールド

成功したレスポンスのキーフィールド（`code = 0`）。

<div class="api-doc-table api-doc-table--response">

| フィールドパス | タイプ | 説明 |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Redditの検索結果とページング情報。 |
| <code>data.search</code> | <code>object</code> | 検索結果データ。 |
| <code>data.search.dynamic</code> | <code>object</code> | 検索結果に返される動的結果データ。 |
| <code>data.search.dynamic.components</code> | <code>object</code> | 検索結果に返されるコンポーネント。 |
| <code>data.search.dynamic.components.__typename</code> | <code>string</code> | 検索コンポーネントオブジェクトのGraphQL型名。 |
| <code>data.search.dynamic.components.appliedState</code> | <code>object</code> | この応答で報告された検索フィルターと結果ペイン。 |
| <code>data.search.dynamic.components.appliedState.filters</code> | <code>array</code> | 検索結果に適用されたフィルターの報告。 |
| <code>data.search.dynamic.components.appliedState.filters[]</code> | <code>object</code> | 報告された検索フィルターの一つ。 |
| <code>data.search.dynamic.components.appliedState.filters[].key</code> | <code>string</code> | 報告されたフィルターの名前。 |
| <code>data.search.dynamic.components.appliedState.filters[].value</code> | <code>string</code> | 報告されたフィルターの値。 |
| <code>data.search.dynamic.components.appliedState.pane</code> | <code>string</code> | 検索の結果ペインの報告。 |
| <code>data.search.dynamic.components.main</code> | <code>object</code> | 主要な結果接続、結果エッジとページ情報を含む。 |
| <code>data.search.dynamic.components.main.edges</code> | <code>array</code> | ページ上の結果エッジ。エッジにはリスト、行、または別の検索コンポーネントが含まれることがある。 |
| <code>data.search.dynamic.components.main.edges[]</code> | <code>object</code> | 一つの結果エッジ。 |
| <code>data.search.dynamic.components.main.edges[].cursor</code> | <code>string</code> | この結果エッジで報告されたカーソル。 |
| <code>data.search.dynamic.components.main.edges[].node</code> | <code>object</code> | このエッジ上の検索コンポーネント。一部のコンポーネントタイプには投稿結果が含まれる。 |
| <code>data.search.dynamic.components.main.edges[].node.__typename</code> | <code>string</code> | 検索コンポーネントを識別するGraphQL型。 |
| <code>data.search.dynamic.components.main.edges[].node.children</code> | <code>array</code> | 存在する場合、コンポーネントの子結果。 |
| <code>data.search.dynamic.components.main.edges[].node.children[]</code> | <code>object</code> | 一つの子結果。投稿結果には投稿オブジェクトが含まれる。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].__typename</code> | <code>string</code> | 子結果を識別するGraphQL型。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post</code> | <code>object</code> | 存在する場合、投稿結果の投稿情報。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.__typename</code> | <code>string</code> | 投稿オブジェクトのGraphQL型名。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorFlair</code> | <code>object &#124; null</code> | このコミュニティでの著者フレア、利用可能な場合。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorFlair.richtext</code> | <code>string &#124; null</code> | 著者フレアのリッチテキストのシリアル化、提供されている場合。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorFlair.text</code> | <code>string</code> | 著者フレアの表示テキスト。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo</code> | <code>object</code> | 投稿者に関する公開情報。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.accountType</code> | <code>string</code> | 投稿者が報告したアカウントのタイプ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.iconSmall</code> | <code>object</code> | 小さな著者アイコン画像。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.iconSmall.dimensions</code> | <code>object</code> | 画像のピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.iconSmall.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.iconSmall.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.iconSmall.url</code> | <code>string</code> | 画像URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.id</code> | <code>string</code> | 投稿者のRedditでのフルID。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.isCakeDayNow</code> | <code>boolean</code> | Redditがこの投稿を著者のアカウントの周年記念としてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.name</code> | <code>string</code> | 投稿者のRedditユーザー名。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.newIcon</code> | <code>object</code> | 新しいアイコンフィールドに返される著者アイコン画像。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.newIcon.dimensions</code> | <code>object</code> | 画像のピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.newIcon.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.newIcon.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.newIcon.url</code> | <code>string</code> | 画像URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.profile</code> | <code>object</code> | 著者に関連する公開されたRedditプロフィール情報。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.profile.isNsfw</code> | <code>boolean</code> | Redditが著者のプロフィールをNSFWとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.snoovatarIcon</code> | <code>object &#124; null</code> | 利用可能な場合、著者のSnoovatar画像。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.snoovatarIcon.dimensions</code> | <code>object</code> | 画像のピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.snoovatarIcon.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.snoovatarIcon.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.authorInfo.snoovatarIcon.url</code> | <code>string</code> | 画像URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.awardings</code> | <code>array</code> | 該当投稿に関する賞の記録が返されました。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.awardings[]</code> | <code>object</code> | 一種類の賞とその数。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.awardings[].award</code> | <code>object</code> | 賞の種類に関する公開詳細。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.awardings[].award.id</code> | <code>string</code> | Redditの賞識別子。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.awardings[].award.name</code> | <code>string</code> | 賞の表示名。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.awardings[].total</code> | <code>integer</code> | 該当投稿で報告されたこの賞の数。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.commentCount</code> | <code>integer</code> | 投稿のコメント数。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content</code> | <code>object &#124; null</code> | Redditが提供する場合の投稿本文。値はnullの場合もあります。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.html</code> | <code>string</code> | 提供された場合の投稿本文のHTML表示。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.markdown</code> | <code>string</code> | Redditが返信する場合のMarkdown形式の投稿本文。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.preview</code> | <code>string</code> | 提供された場合の本文プレビュー。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtext</code> | <code>string</code> | Redditが利用可能な場合のシリアル化されたリッチテキストストリング。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia</code> | <code>array</code> | 投稿本文内で参照されているメディアアイテム。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[]</code> | <code>object</code> | 投稿本文で参照されている一つのメディアアイテム。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[].height</code> | <code>integer</code> | このメディアアイテムのピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[].id</code> | <code>string</code> | 投稿本文内のメディアID。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[].mimetype</code> | <code>string</code> | 投稿本文内のメディアアイテムのMIMEタイプ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[].status</code> | <code>string</code> | 投稿本文内のメディアアイテムの状態が報告された内容。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[].url</code> | <code>string</code> | 投稿本文内のこのメディアアイテムのURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.content.richtextMedia[].width</code> | <code>integer</code> | このメディアアイテムの幅、ピクセル単位で表示。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.createdAt</code> | <code>string</code> | 投稿の作成時刻をテキスト形式で。Redditはコロンなしでタイムゾーンオフセットを返すことがあります。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.domain</code> | <code>string</code> | Redditが報告する投稿のドメインラベル。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.editedAt</code> | <code>string &#124; null</code> | 投稿の編集時刻が利用可能な場合。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.flair</code> | <code>object &#124; null</code> | 利用可能な投稿フレア。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.flair.richtext</code> | <code>string &#124; null</code> | 投稿フレアのシリアライズされたリッチテキスト内容（提供されている場合）。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.flair.text</code> | <code>string</code> | 投稿フレアの表示テキスト。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.flair.type</code> | <code>string</code> | Redditで報告された投稿のフレアタイプ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery</code> | <code>object &#124; null</code> | 投稿に含まれるギャラリー。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items</code> | <code>array</code> | ギャラリー内のメディアエントリ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[]</code> | <code>object</code> | 一つのギャラリーエントリ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].id</code> | <code>string</code> | ギャラリーエントリの識別子。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media</code> | <code>object</code> | このギャラリーエントリのメディア。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.height</code> | <code>integer</code> | ギャラリーのメディアの高さをピクセルで表す。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.id</code> | <code>string</code> | ギャラリーメディアのReddit識別子。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.large</code> | <code>object</code> | 大きな画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.large.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.large.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.large.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.large.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.medium</code> | <code>object</code> | 中くらいの画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.medium.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.medium.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.medium.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.medium.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.mimetype</code> | <code>string</code> | ギャラリーメディアのMIMEタイプ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.small</code> | <code>object</code> | 小さな画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.small.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.small.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.small.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.small.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.url</code> | <code>string</code> | ギャラリーメディアの返されるURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.width</code> | <code>integer</code> | ギャラリーメディアのピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xlarge</code> | <code>object</code> | 特大の画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xlarge.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xlarge.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xlarge.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xlarge.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxlarge</code> | <code>object &#124; null</code> | ダブル特大の画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxlarge.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxlarge.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxlarge.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxlarge.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxxlarge</code> | <code>object &#124; null</code> | トリプル特大の画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxxlarge.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxxlarge.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxxlarge.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.gallery.items[].media.xxxlarge.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.id</code> | <code>string</code> | Redditの完全な投稿ID、t3_プレフィックスを含む。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isArchived</code> | <code>boolean</code> | Redditがこの投稿をアーカイブ済みとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isCommercialCommunication</code> | <code>boolean</code> | Redditがこの投稿を広告通信としてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isContestMode</code> | <code>boolean</code> | Redditがこの投稿をコンテストモードにあるとマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isCrosspostable</code> | <code>boolean</code> | Redditがこの投稿をクロス投稿に適しているとマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isLocked</code> | <code>boolean</code> | Redditがこの投稿をロック済みとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isNsfw</code> | <code>boolean</code> | Redditがこの投稿を職場での安全でないものとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isPollIncluded</code> | <code>boolean</code> | Redditがこの投稿に投票機能が含まれていることを示すかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isScoreHidden</code> | <code>boolean</code> | Redditがスコアを隠されたとしてフラグ付けるかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isSelfPost</code> | <code>boolean</code> | Redditがこの投稿を自己投稿としてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isSpoiler</code> | <code>boolean</code> | Redditがこの投稿をスポイラーとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isStickied</code> | <code>boolean</code> | Redditがこの投稿をピン留めとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isTranslatable</code> | <code>boolean</code> | Redditがこの投稿を翻訳可能としてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.isTranslated</code> | <code>boolean</code> | Redditが返される投稿を翻訳済みとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.languageCode</code> | <code>string &#124; null</code> | 投稿の報告された言語コード。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media</code> | <code>object &#124; null</code> | 投稿に含まれるメディア。ギャラリーメディアには独自のセクションがあります。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.download</code> | <code>object &#124; null</code> | Redditが提供する際にメタデータをダウンロードする。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.download.url</code> | <code>string</code> | Redditから返されるメディアのダウンロードURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia</code> | <code>object &#124; null</code> | Redditが提供する際のパッケージ化されたメディア。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s</code> | <code>object &#124; null</code> | 品質別にグループ化されたパッケージ化されたMP4レンダイション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.high</code> | <code>object</code> | 高品質のMP4レンダイション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.high.url</code> | <code>string</code> | パッケージ化されたMP4URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.highest</code> | <code>object</code> | このコレクションで返される最高品質のMP4レンダイション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.highest.url</code> | <code>string</code> | パッケージ化されたMP4URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.low</code> | <code>object</code> | 低品質のMP4レンダイション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.low.url</code> | <code>string</code> | パッケージ化されたMP4URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.medium</code> | <code>object</code> | 中品質のMP4レンダイション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.medium.url</code> | <code>string</code> | パッケージ化されたMP4URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.recommended</code> | <code>object</code> | Redditが推奨するMP4レンダイション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.packagedMedia.muxedMp4s.recommended.url</code> | <code>string</code> | パッケージ化されたMP4URL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still</code> | <code>object</code> | 投稿の静止画像。ソースとサイズ変更後のレンディションを含む。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.large</code> | <code>object &#124; null</code> | 大きな画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.large.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.large.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.large.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.large.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.medium</code> | <code>object &#124; null</code> | 中くらいの画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.medium.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.medium.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.medium.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.medium.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.small</code> | <code>object &#124; null</code> | 小さな画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.small.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.small.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.small.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.small.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.source</code> | <code>object</code> | 静止画像のソース。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.source.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.source.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.source.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.source.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xlarge</code> | <code>object &#124; null</code> | 特大の画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xlarge.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xlarge.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xlarge.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xlarge.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxlarge</code> | <code>object &#124; null</code> | ダブル特大の画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxlarge.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxlarge.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxlarge.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxlarge.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxxlarge</code> | <code>object &#124; null</code> | トリプル特大の画像レンディション。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxxlarge.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxxlarge.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxxlarge.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.still.xxxlarge.url</code> | <code>string</code> | 静止画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming</code> | <code>object &#124; null</code> | Redditが提供するメタデータをストリームで送信する。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.dashUrl</code> | <code>string</code> | DASHストリームマニフェストURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.duration</code> | <code>integer</code> | Redditが報告するストリームの持続時間値。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.hlsUrl</code> | <code>string</code> | HLSストリームマニフェストURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.streaming.isGif</code> | <code>boolean</code> | RedditがストリームをGIFスタイルのアニメーションとしてマークするかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.media.typeHint</code> | <code>string &#124; null</code> | Redditが利用可能な場合に報告されるメディアタイプのヒント。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.permalink</code> | <code>string</code> | この投稿の相対的なRedditパーマリンクパス。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.postHint</code> | <code>string &#124; null</code> | Redditが利用可能な場合に報告される投稿提示ヒント。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.postTitle</code> | <code>string</code> | 投稿の報告されたタイトル。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.score</code> | <code>integer</code> | Redditが報告した投稿のスコア。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit</code> | <code>object</code> | このセクションが返される際の投稿に関連するコミュニティ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.id</code> | <code>string</code> | Redditコミュニティの識別子。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.isNsfw</code> | <code>boolean</code> | RedditがそのコミュニティをNSFWとしてマークしているかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.isQuarantined</code> | <code>boolean</code> | Redditがそのコミュニティを隔離してマークしているかどうか。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.name</code> | <code>string</code> | コミュニティの名前。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.prefixedName</code> | <code>string</code> | Redditプレフィックス付きのコミュニティ名。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.subscribersCount</code> | <code>integer</code> | そのコミュニティのサブスクライバー数。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.title</code> | <code>string</code> | コミュニティの表示タイトル。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.subreddit.type</code> | <code>string</code> | Redditが報告したコミュニティのタイプ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.suggestedCommentSort</code> | <code>string &#124; null</code> | Redditが利用可能な場合に報告されるコメントの表示順序の提案。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.thumbnail</code> | <code>object &#124; null</code> | 投稿に含まれるサムネイル。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.thumbnail.dimensions</code> | <code>object</code> | 画像またはプレーヤーのピクセル単位のサイズ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.thumbnail.dimensions.height</code> | <code>integer</code> | ピクセル単位の高さ。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.thumbnail.dimensions.width</code> | <code>integer</code> | ピクセル単位の幅。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.thumbnail.url</code> | <code>string</code> | サムネイル画像のURL。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.upvoteRatio</code> | <code>number</code> | 投稿のアップボート比率が0から1の分数で報告される。 |
| <code>data.search.dynamic.components.main.edges[].node.children[].post.url</code> | <code>string</code> | 投稿に関連するURL。 |
| <code>data.search.dynamic.components.main.pageInfo</code> | <code>object</code> | 現在の検索ページのページング情報。 |
| <code>data.search.dynamic.components.main.pageInfo.endCursor</code> | <code>string</code> | hasNextPageがtrueの場合、同じキーワードを使用して次のページを要求する際に、このカーソルを変更せずに渡す。 |
| <code>data.search.dynamic.components.main.pageInfo.hasNextPage</code> | <code>boolean</code> | Redditが後続のページが利用可能であるかどうかを報告するかどうか。 |
| <code>data.search.dynamic.components.main.pageInfo.hasPreviousPage</code> | <code>boolean</code> | Redditが以前のページが利用可能であることを報告しているかどうか。 |
| <code>data.search.dynamic.components.main.pageInfo.startCursor</code> | <code>string</code> | 現在のページの開始位置で報告されたカーソル。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/reddit/search/v1\"")' />

