get_post_details
Retrieve detailed Product Hunt post data including ID, name, description, tagline, votes, makers, topics, media, and paginated comments by specifying a post ID or slug.
Instructions
Retrieve detailed information about a specific Product Hunt post by ID or slug.
Parameters:
- id (str, optional): The post's unique ID.
- slug (str, optional): The post's slug (e.g., "product-hunt-api").
- comments_count (int, optional): Number of comments to return (default: 10, max: 20).
- comments_after (str, optional): Pagination cursor for fetching the next page of comments.
At least one of `id` or `slug` must be provided.
Returns:
- success (bool): Whether the request was successful.
- data (dict): If successful, contains:
- id, name, description, tagline, votes, makers, topics, media, and
- comments (paginated): { edges: [...], pageInfo: { endCursor, hasNextPage } }
- error (dict, optional): If unsuccessful, contains error code and message.
- rate_limits (dict): API rate limit information.
Notes:
- If neither `id` nor `slug` is provided, an error is returned.
- If the post is not found, an error is returned.
- The dedicated `get_post_comments` tool is deprecated; use this tool for paginated comments.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
comments_after | No | ||
comments_count | No | ||
id | No | ||
slug | No |
Input Schema (JSON Schema)
{
"properties": {
"comments_after": {
"default": null,
"title": "Comments After",
"type": "string"
},
"comments_count": {
"default": 10,
"title": "Comments Count",
"type": "integer"
},
"id": {
"default": null,
"title": "Id",
"type": "string"
},
"slug": {
"default": null,
"title": "Slug",
"type": "string"
}
},
"title": "get_post_detailsArguments",
"type": "object"
}