API
Reddit API
Redditは、フォーラム、スレッド、テキスト投稿、リンク、画像、コメントを通じて、約1億2100万人のアクティブユーザーにサービスを提供しており、コミュニティの洞察、評判トラッキング、製品フィードバック、ニッチ発見において重要です。
APIリファレンス バージョン: 1.0.0 14 エンドポイント 認証
ベース URL
https://api.pressmonitor.com 認証
すべてのリクエストはベアラートークン認証を使用します。すべての呼び出しにAuthorizationヘッダーを追加してください。
Authorization: Bearer YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID GET
/comments-by-username ユーザー別コメント
コード例
curl -X GET "https://api.pressmonitor.com/comments-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/get-cursor カーソルを取得
コード例
curl -X GET "https://api.pressmonitor.com/get-cursor" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/new-subreddits 新しいサブレディット
コード例
curl -X GET "https://api.pressmonitor.com/new-subreddits" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/popular-posts 人気の投稿
コード例
curl -X GET "https://api.pressmonitor.com/popular-posts" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/popular-subreddits 人気のサブレディット
コード例
curl -X GET "https://api.pressmonitor.com/popular-subreddits" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/post-details 投稿の詳細
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| post_url | string | query | はい | 投稿のURL |
コード例
curl -X GET "https://api.pressmonitor.com/post-details?post_url=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/posts-by-subreddit サブレディット別投稿
コード例
curl -X GET "https://api.pressmonitor.com/posts-by-subreddit" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/posts-by-username ユーザー別投稿
コード例
curl -X GET "https://api.pressmonitor.com/posts-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/rising-popular-posts 急上昇の人気投稿
コード例
curl -X GET "https://api.pressmonitor.com/rising-popular-posts" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/search-posts 投稿を検索
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| query | string | query | はい | 検索クエリ |
コード例
curl -X GET "https://api.pressmonitor.com/search-posts?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/search-subreddits サブレディットを検索
パラメータ
| 名前 | タイプ | 場所 | 必須 | 説明 |
|---|---|---|---|---|
| query | string | query | はい | 検索クエリ |
コード例
curl -X GET "https://api.pressmonitor.com/search-subreddits?query=VALUE" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/top-comments-by-username ユーザー別トップコメント
コード例
curl -X GET "https://api.pressmonitor.com/top-comments-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/top-popular-posts トップ人気投稿
コード例
curl -X GET "https://api.pressmonitor.com/top-popular-posts" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功
GET
/top-posts-by-username ユーザー別トップ投稿
コード例
curl -X GET "https://api.pressmonitor.com/top-posts-by-username" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" レスポンス
200 成功