Skip to main content
POST
/
api
/
indiehackers
/
posts
/
search
/indiehackers/posts/search
curl --request POST \
  --url https://api.anysite.io/api/indiehackers/posts/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "query": "",
  "sort": "popular",
  "group": "Growth"
}
'
[
  {
    "id": "<string>",
    "@type": "IndiehackersPost",
    "item_id": "<string>",
    "item_key": "<string>",
    "item_type": "<string>",
    "post_title": "<string>",
    "text": "<string>",
    "group_name": "<string>",
    "upvote_count": 123,
    "reply_count": 123,
    "link_click_count": 123,
    "part_number": 123,
    "is_featured": false,
    "has_poll": false,
    "link_url": "<string>",
    "link_title": "<string>",
    "link_description": "<string>",
    "link_image": "<string>",
    "user_id": "<string>",
    "username": "<string>",
    "created_at": 123,
    "updated_at": 123
  }
]

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 posts to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
query
string
default:""

Free-text search over discussion title and body

Examples:

"stripe"

"seo"

sort
enum<string>
default:popular

Result ordering

Available options:
popular,
newest
group
string | null

Restrict to a community group by name

Example:

"Growth"

Response

Successful Response

id
string
required
@type
string
default:IndiehackersPost
item_id
string | null
item_key
string | null
item_type
string | null
post_title
string | null
text
string | null
group_name
string | null
upvote_count
integer | null
reply_count
integer | null
part_number
integer | null
has_poll
boolean
default:false
user_id
string | null
username
string | null
created_at
integer | null
updated_at
integer | null