apyhub
MARKETING · SMART GENERATION

Extract and Generate Editorial Digest from Multiple Web Pages API

What it does

Newsletter Digest turns multiple web pages into a single digest. Send an array of URL strings in urls, and it returns a digest object with the original sources, a summary, and a list of key_takeaways.

Use it when you need to review several articles, blog posts, or announcements without reading each page end to end. The output is designed for newsletter workflows, editorial triage, research briefings, and internal updates where you want the main points pulled together from a set of links.

Newsletter Digest keeps the response focused on the source URLs you provide and distills them into a compact, readable result. Developers can pass article links from a content queue, then store the summary and takeaways for downstream publishing, review, or display.

Because the response includes the input sources, you can trace each digest back to the pages that were used to generate it.

POST
Generate a newsletter digest from multiple web pages
http://localhost:8080/namastesumalya/generate-newsletter-digest
QUICKSTARTGUIDE

Quickstart

Send a list of article URLs to generate a newsletter digest.

curl -X POST "http://localhost:8080/namastesumalya/generate-newsletter-digest" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com/article1","https://example.com/article2"]}'

What you'll get back

Returns a JSON object with an optional digest object. When present, digest contains sources as an array of strings, summary as a string, and key_takeaways as an array of strings.

{
  "digest": {
    "sources": [
      "https://example.com/article1",
      "https://example.com/article2"
    ],
    "summary": "This digest combines insights from multiple articles discussing advancements in AI-driven content systems.",
    "key_takeaways": [
      "AI is transforming content workflows",
      "Automation improves scalability"
    ]
  }
}
TRY ITLIVE · 1000 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*
urls*
A required array of URL strings pointing to the target web pages to be digested.

About this endpoint

What it does

Generates a newsletter digest from multiple web pages you provide as URLs. The response returns a digest object containing the source URLs used, a text summary, and an array of key takeaways.

Request Body

ParameterTypeMandatoryDescription
urlsString ArrayYesA required array of URL strings pointing to the target web pages to be digested.

Response

Returns a JSON object with a digest object field. The digest object contains sources as a string array, summary as a string, and key_takeaways as a string array.

ParameterTypeMandatoryDescription
digestObjectNoThe digest payload returned by the service.
digest.sourcesString ArrayNoThe source URLs used to generate the digest.
digest.summaryStringNoA summary combining the provided web pages.
digest.key_takeawaysString ArrayNoThe main takeaways extracted from the input pages.

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.