producthunt について
producthuntは、公式GraphQL APIを通じてProduct Huntの投稿、トピック、ユーザー、コレクションを取得するスキルです。トピック、日付、ユーザーなどで絞り込むスクリプトを備えています。
主な機能
- 01slugまたはIDで投稿を取得
- 02注目投稿やトピック別投稿を検索
- 03トピックの検索と一覧表示
- 04ユーザーと投稿履歴を取得
- 05コレクションと注目コレクションを取得
- 06投稿コメントを取得
活用シーン
- 01当日の注目プロダクトを閲覧
- 02トピック内のプロダクトを検索
- 03ユーザーの投稿履歴を確認
- 04投稿コメントやコレクションを調査
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ resciencelab/ opc-skills --skill producthuntインストール後、Claude Code で/producthuntを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
.claude-plugin/plugin.jsonscripts/credential.pyget_collection.pyget_collections.pyget_post_comments.pyget_post.pyget_posts.pyget_topic.pyget_topics.pyget_user_posts.pyget_user.pyproducthunt_api.py詳細
ProductHunt Skill
公式 GraphQL API を使って、Product Hunt の投稿、トピック、ユーザー、コレクションを取得します。
前提条件
~/.zshrc にアクセストークンを設定します。
export PRODUCTHUNT_ACCESS_TOKEN="your_developer_token"
トークンはこちらから取得できます:https://www.producthunt.com/v2/oauth/applications
クイックチェック:
cd <skill_directory>
python3 scripts/get_posts.py --limit 3
コマンド
すべてのコマンドはスキルディレクトリから実行します。
投稿
python3 scripts/get_post.py chatgpt # Get post by slug
python3 scripts/get_post.py 12345 # Get post by ID
python3 scripts/get_posts.py --limit 20 # Today's featured posts
python3 scripts/get_posts.py --topic ai --limit 10 # Posts in topic
python3 scripts/get_posts.py --after 2026-01-01 # Posts after date
python3 scripts/get_post_comments.py POST_ID --limit 20
トピック
python3 scripts/get_topic.py artificial-intelligence # Get topic by slug
python3 scripts/get_topics.py --query "AI" --limit 20 # Search topics
python3 scripts/get_topics.py --limit 50 # Popular topics
ユーザー
python3 scripts/get_user.py rrhoover # Get user by username
python3 scripts/get_user_posts.py rrhoover --limit 20 # User's posts
コレクション
python3 scripts/get_collection.py SLUG_OR_ID # Get collection
python3 scripts/get_collections.py --featured --limit 20
API 情報
- エンドポイント:https://api.producthunt.com/v2/api/graphql
- 種類:GraphQL
- レート制限:15 分あたり 6250 複雑度ポイント
- ドキュメント:https://api.producthunt.com/v2/docs
コメント
Markdown 対応