コメントの一覧
GET/v1/posts/{id}/comments
投稿のコメントツリーをページごとに返します。並べ替え、話での絞り込み、単一のスレッド、テキスト検索が使えます。
リクエスト
curl -g "https://api.nogitsu.com/v1/posts/{id}/comments"パラメーター
idパス必須
項目のID(UUID)。
テキスト
sortクエリ任意
結果の順序。
テキスト
使用できる値bestnewoldcontroversialunit既定値:best
unitクエリ任意
この話数に関するコメントのみ。特定の話に結び付かないコメントは general。
複数の形式のいずれか
threadクエリ任意
このコメントの下にあるスレッドのみ。
テキスト (uuid)
qクエリ任意
検索するテキスト。
テキスト
cursorクエリ任意
前のページの nextCursor の値。最初のページでは省略します。
テキスト
レスポンス
リクエストが成功すると、次のJSONとともに200が返ります。
items__schema0のリストidテキスト (uuid)authorオブジェクトnull になる場合ありusernameテキストdisplayNameテキストavatarUrlテキスト (uri)null になる場合あり
authorFlairテキストnull になる場合ありauthorProgressオブジェクトnull になる場合ありtrackingStatusテキスト使用できる値plannedcurrentcompletedpauseddroppedrewatchingprogressUnits数値null になる場合あり0以上
progressTotal整数null になる場合あり0〜9007199254740991
stateテキスト使用できる値publishedremoveddeletedbodyオブジェクトnull になる場合ありblocks複数の形式のいずれかのリスト選択肢1
typeテキスト使用できる値paragraphchildren任意の値のリスト
選択肢2
typeテキスト使用できる値headingchildren任意の値のリスト
選択肢3
typeテキスト使用できる値quotechildrenRichTextBlockのリスト
選択肢4
typeテキスト使用できる値listisOrderedtrue または falseitems任意の値のリストのリスト
選択肢5
typeテキスト使用できる値codetextテキスト
hasSpoilertrue または falseunitNumber数値null になる場合あり0以上
sourceSpoilerオブジェクトnull になる場合ありkindテキスト使用できる値mangamanhwamanhuawebtoonnovelotherunit数値null になる場合あり0以上
imagesオブジェクトのリストurlテキスト (uri)width整数0〜9007199254740991
height整数0〜9007199254740991
altテキストnull になる場合ありvariantWidths整数のリスト0〜9007199254740991
linkオブジェクトnull になる場合ありurlテキスト (uri)hostテキストtitleテキストnull になる場合ありdescriptionテキストnull になる場合ありimageオブジェクトnull になる場合ありurlテキスト (uri)width整数0〜9007199254740991
height整数0〜9007199254740991
altテキストnull になる場合ありvariantWidths整数のリスト0〜9007199254740991
isPendingtrue または false
score整数null になる場合あり-9007199254740991〜9007199254740991
reactionsオブジェクトのリストkindテキスト使用できる値lovelaughwowsadclapfirethinkangrypartycrycount整数0〜9007199254740991
isByPostAuthortrue または falseisByModeratortrue または falsecreatedAtテキスト (date-time)editedAtテキスト (date-time)null になる場合ありdepth整数0〜9007199254740991
replyCount整数0〜9007199254740991
replies__schema0のリスト
nextCursorテキストnull になる場合あり
エラー
他の操作と同様に、この操作も無効なパラメーターでは400、何も見つからない場合は404、リクエストが多すぎる場合は429を返すことがあります。すべてのエラーは同じ形式です。