取得APIの契約とローカル変換の規則を分ける
GET経路、認証ヘッダー、UTC日付とページ上限を確認します。フラットな応答の読み方と、利用者が定義する型変換や欠損処理を区別します。
APIキーを取得APIエンドポイント
| メソッド | エンドポイント | パラメータ |
|---|---|---|
GET | /v1/search | q, subreddit, author, kind, from, to, min_score, limit, page |
GET | /v1/posts | q, subreddit, author, kind, from, to, min_score, limit, page |
GET | /v1/comments | q, subreddit, author, kind, from, to, min_score, limit, page |
GET | /v1/item | id |
GET | /v1/subreddits | prefix, limit |
GET | /v1/status | — |
クエリパラメータ
| パラメータ | 値・型・範囲 |
|---|---|
q | text |
subreddit | keyword |
author | keyword |
kind | post | comment |
from | ISO date |
to | ISO date |
min_score | integer |
limit | 1–100 |
page | 1–100 |
id | item ID |
prefix | subreddit prefix |