Hacker News Summarizer

API Documentation

Endpoint: /api

This endpoint summarizes a Hacker News post and its comments.

HTTP Method: GET

Query Parameters:

Response:


{
  "articleSummary": string,
  "discussionSummary": [
    {
      "topic": string,
      "summary": string,
      "views": string[]
    }
  ]
}

Example Usage:


fetch('/api?url=https://news.ycombinator.com/item?id=12345&useCustomConfig=false')
  .then(response => response.json())
  .then(data => console.log(data));