Menu

I built an API that summarizes any text, web page or PDF (no AI model needed)
📰

I built an API that summarizes any text, web page or PDF (no AI model needed)

DEV Community: nlp·Dani·about 7 hours ago
#STSGt8B1
#devtonlp#devto#dev#summary#sentences
Reading 0:00
15s threshold

Long documents are everywhere: reports, papers, blog posts, meeting notes, whole books. Most of the time I just want to know what they say before deciding whether to read every word.

So I built Doc Summarizer : send it text, a link or a file, and it gives back a short summary, key points, keywords, the reading time, and a summary of every chapter. It's the third and last of the reading APIs I've been building, after the Public Domain Book Finder and Clean PDF Reader .

What it does

Endpoint What you send

POST /summarize/text Text as JSON

GET /summarize/url A link to a web page, PDF or text file

POST /summarize/file An uploaded PDF, .txt or .md file

Every response has the same shape:

summary : the most important sentences, in their original order

key_points : other important sentences from across the document, ready for bullets

keywords : the words and short phrases it's most about

word_count and reading_time_minutes

sections : a short summary of each chapter or heading

Summarize a link

import os…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.