apyhub
ARTIFICIAL INTELLIGENCE · DATA EXTRACTION

Extract Article Summary API

What it does

URL Content Summary fetches a web page, extracts its readable content, and returns an LSA-based extractive summary. Send a url and, optionally, sentences to control how many summary sentences you want back.

The response includes the original url, the page title, the generated summary, and basic length metrics: input_length, summary_length, and summary_sentences. That makes it useful when you need a compact representation of an article, blog post, or news page without building your own crawler and summariser.

Use it to preview long-form content, power reading lists, generate internal digests, or compare how much text was reduced after extraction. Because the summary is extractive, it stays close to the source wording and is better suited to factual pages where preserving phrasing matters.

If you already have article URLs in your workflow, URL Content Summary gives you a structured way to turn them into concise, machine-readable summaries.

POST
Fetch, extract, and return an LSA extractive summary
http://localhost:8080/dosvak/summarize-url-content
QUICKSTARTGUIDE

Quickstart

Summarize the article at a URL into a short extractive summary.

curl -X POST "http://localhost:8080/dosvak/summarize-url-content" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://bbc.com/news/article-123","sentences":5}'

What you'll get back

Returns a JSON object with url, title, summary, input_length, summary_length, and summary_sentences fields.

{
  "url": "https://bbc.com/news/article-123",
  "title": "BBC News Article",
  "summary": "First sentence. Second sentence. Third sentence. Fourth sentence. Fifth sentence.",
  "input_length": 1840,
  "summary_length": 312,
  "summary_sentences": 5
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Number of sentences in the extractive summary

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

ParameterTypeMandatoryDescription
urlStringYesThe URL to fetch and summarize.
sentencesIntegerNoNumber 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.

ParameterTypeMandatoryDescription
urlStringNoThe URL that was summarized.
titleStringNoThe title associated with the fetched content.
summaryStringNoThe extractive summary text.
input_lengthIntegerNoLength of the input content.
summary_lengthIntegerNoLength of the summary.
summary_sentencesIntegerNoNumber of sentences included in the summary.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.