Hacker News Story Comments API
Retrieve available comments for the specified Hacker News content.
/v1/hackernews/story/commentsCoverage is rolling out during preview. Test the endpoint you need before integrating. Unavailable operations return an explicit error and use no credits.
Try this endpoint
Enter the documented inputs, run a protected browser test, and inspect the JSON response.
curl -X GET 'https://socialquery.dev/v1/hackernews/story/comments?id=8863' \
-H "x-api-key: $SOCIALQUERY_API_KEY"Request contract
Parameters
Pass these fields as query parameters. Production requests also require your server-side API key.
idRequired- Provide id in the format shown in the example.Example: 8863
sinceOptional- Provide since in the format shown in the example.Example: —
untilOptional- Provide until in the format shown in the example.Example: —
Build a reliable integration.
Keep your key server-side
Pass your SocialQuery key in the x-api-key header. Never expose credentials in a browser bundle.
Check the response
Read success before using data. Preserve request_id when logging errors or contacting support.
Account for coverage
Test the fields you need. Provider availability varies, and unavailable operations use no credits.
More Hacker News endpoints
View all →Hacker News Search API
Search Hacker News using the documented query and filters, and return structured results.
Hacker News Story API
Retrieve a Hacker News story with its public content and discussion context.
Hacker News Profile API
Retrieve the public profile details available for a Hacker News account.