About this endpoint
What it does
Fetches content from the provided URL and returns an LSA extractive summary of that content. The request body includes the source url and can optionally set how many summary sentences to return.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | The URL to fetch and summarize. |
| sentences | Integer | No | Number of sentences in the extractive summary. Default: 5; minimum: 1; maximum: 20. |
Response
Returns a JSON object with url, title, summary, input_length, summary_length, and summary_sentences fields. The response includes the fetched URL and title, the generated summary text, and integer length metrics for the input and summary.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | The URL that was summarized. |
| title | String | No | The title associated with the fetched content. |
| summary | String | No | The extractive summary text. |
| input_length | Integer | No | Length of the input content. |
| summary_length | Integer | No | Length of the summary. |
| summary_sentences | Integer | No | Number of sentences included in the summary. |