Skip to main content
POST
/
api
/
producthunt
/
forums
/
search
/producthunt/forums/search
curl --request POST \
  --url https://api.anysite.io/api/producthunt/forums/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "forum": "general",
  "keyword": "notion",
  "sort": "trending"
}
'
[
  {
    "id": "<string>",
    "alias": "<string>",
    "title": "<string>",
    "url": "<string>",
    "@type": "@product_hunt_forums_search_thread",
    "text": "<string>",
    "author": {
      "@type": "@product_hunt_forum_user",
      "id": "<string>",
      "name": "<string>",
      "alias": "<string>",
      "image": "<string>",
      "is_verified": true,
      "is_ambassador": true,
      "is_prominent": true
    },
    "forum": {
      "alias": "<string>",
      "@type": "@product_hunt_forum",
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "category_id": "<string>",
      "category_alias": "<string>",
      "category_name": "<string>"
    },
    "created_at": "<string>",
    "vote_count": 123,
    "comment_count": 123,
    "is_featured": true,
    "is_pinned": true
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.anysite.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of threads to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
forum
string | null

Forum slug ('general', 'notion') or forum URL ('https://www.producthunt.com/p/general'). If set, listing is scoped to this forum.

Pattern: ^(?:https?://[^\s]+|//[^\s]+|(?:www\.)?producthunt\.com[^\s]*|[A-Za-z0-9][A-Za-z0-9._-]*)$
Example:

"general"

keyword
string | null

Filter threads by keyword across all forums. Cannot be combined with forum filter.

Minimum string length: 1
Example:

"notion"

sort
enum<string>
default:trending

Sort order for the global threads feed. Ignored when forum or keyword is set.

Available options:
trending,
recent

Response

Successful Response

id
string
required
alias
string
required
title
string
required
url
string
required
@type
string
default:@product_hunt_forums_search_thread
text
string | null
author
ProductHuntForumUser · object
forum
ProductHuntForum · object
created_at
string | null
vote_count
integer | null
comment_count
integer | null
is_pinned
boolean | null