{"openapi":"3.1.0","info":{"title":"Article Extractor & AI Summarizer - URL, Text, PDF","description":"Summarize any article, text, PDF or DOCX: summary, key points and TL;DR in 50+ languages; plus clean article text and metadata from a URL.","version":"v1"},"servers":[{"url":"https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/summarizer/summarize":{"post":{"tags":["Summarization"],"summary":"Text or URL (article, PDF, DOCX) to a summary, key points and TL;DR","description":"Summarize a `text` or a `url` (web article, PDF, DOCX, TXT, Markdown,\nHTML) into a summary, key points and TL;DR, using only facts from the\nsource. Up to 100,000 words. 20 credits up to 2,000 words, +10 per started\n2,000 words beyond, +10 for `long`.","operationId":"summarizeTextOrUrl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeRequest"},"examples":{"Summarize Text or URL":{"summary":"Summarize Text or URL","value":{"text":"The James Webb Space Telescope (JWST) is a space telescope designed to conduct infrared astronomy. Its high-resolution and high-sensitivity instruments allow it to view objects too old, distant, or faint for the Hubble Space Telescope. It was launched on 25 December 2021 on an Ariane 5 rocket from Kourou, French Guiana, and arrived at the Sun-Earth L2 point in January 2022. Its primary mirror consists of 18 hexagonal segments of gold-plated beryllium which together create a 6.5 m diameter mirror.","url":"https://en.wikipedia.org/wiki/Okapi","length":"medium","format":"all","language":"en"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeResponse"},"examples":{"Summarize Text or URL":{"summary":"Summarize Text or URL (real response)","value":{"title":"Putting Ideas into Words","summary":"Writing is a rigorous process that reveals the incompleteness and imprecision of one's thoughts. By committing ideas to words and reviewing them from the perspective of a neutral reader, one discovers new insights and refines existing knowledge. This practice is a necessary test for developing fully formed ideas, as internal thoughts often remain vague or flawed until subjected to the discipline of writing.","key_points":["Writing forces a person to confront the gaps and inaccuracies in their thinking, often leading to the discovery of new ideas during the process.","Evaluating one's own writing from the perspective of a neutral stranger is a necessary, albeit difficult, step to ensure ideas are clear and complete.","Because writing is a necessary condition for fully formed ideas, those who never write about nontrivial topics likely lack fully developed thoughts."],"tldr":"Writing is a necessary test that transforms vague, incomplete thoughts into precise, fully formed ideas by forcing the author to articulate them clearly for a neutral reader.","language":"en","output_language":"English","source_words":1210,"summary_words":162,"reading_time":{"source_minutes":5.1,"summary_minutes":0.3,"saved_minutes":4.8},"chunks":1,"unverified_numbers":[],"source":{"type":"url","file_type":"html","name":"https://paulgraham.com/words.html"},"article":{"url":"https://paulgraham.com/words.html","final_url":"https://paulgraham.com/words.html","title":"Putting Ideas into Words","site_name":"paulgraham.com"},"notices":[],"credits":20}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Summarize Text or URL"}},"/v1/summarizer/summarize/upload":{"post":{"tags":["Summarization"],"summary":"Uploaded PDF, DOCX, TXT, Markdown or HTML file to a summary","description":"Same as /summarize, for a file sent as multipart/form-data (field\n`file`) with the same options: reports, papers, contracts, books and\nlong texts (JSON bodies are capped at 64 KB). Scanned PDFs have no text\nto read: run them through our PDF to Text API first. Same credits.","operationId":"summarizeFile","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_Summarize_File"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeResponse"},"examples":{"Summarize File":{"summary":"Summarize File","value":{"title":"Okapi","language":"en","output_language":"English","source_words":5850,"summary_words":262,"reading_time":{"source_minutes":24.6,"summary_minutes":1.1,"saved_minutes":23.5},"chunks":1,"source":{"type":"url","file_type":"html","name":"https://en.wikipedia.org/wiki/Okapi"},"article":{"url":"https://en.wikipedia.org/wiki/Okapi","final_url":"https://en.wikipedia.org/wiki/Okapi","title":"Okapi","byline":"Jane Doe","published":"2026-11-20","site_name":"Wikipedia","language":"en","page_type":"article"},"notices":[{"code":"pages_without_text"}],"credits":10}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Summarize File"}},"/v1/summarizer/extract":{"get":{"tags":["Article Extraction"],"summary":"URL to the article's clean text, Markdown and metadata, no AI","description":"Extract the main article of a web page without menus, ads or comments,\nno AI: title, byline, date, site, lead image, language, plain text and\nMarkdown, word count. Pages that need JavaScript, a login or a subscription\nget 400 `page_empty` / `page_paywalled` (not billed). 1 credit.","operationId":"extractArticle","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"description":"The web page of an article, blog post or any page.","examples":["https://en.wikipedia.org/wiki/Okapi"],"title":"Url"},"description":"The web page of an article, blog post or any page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleResponse"},"examples":{"Extract Article":{"summary":"Extract Article","value":{"url":"https://en.wikipedia.org/wiki/Okapi","final_url":"https://en.wikipedia.org/wiki/Okapi","title":"Okapi","byline":"Jane Doe","published":"2026-11-20","site_name":"Wikipedia","language":"en","page_type":"article","word_count":5850,"reading_time_minutes":24.6,"truncated":false}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Extract Article"}}},"components":{"schemas":{"ArticleMetadata":{"properties":{"url":{"type":"string","title":"Url","description":"The URL asked for.","examples":["https://en.wikipedia.org/wiki/Okapi"]},"final_url":{"type":"string","title":"Final Url","description":"After redirects.","examples":["https://en.wikipedia.org/wiki/Okapi"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","examples":["Okapi"]},"byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline","description":"Author(s) as given on the page.","examples":["Jane Doe"]},"published":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published","description":"Publication date as given by the page (YYYY-MM-DD).","examples":["2026-11-20"]},"site_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Name","examples":["Wikipedia"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The page's own description (meta / Open Graph)."},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image","description":"Lead image URL (Open Graph)."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language declared by the page.","examples":["en"]},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type","description":"Open Graph type when declared: article, website, product...","examples":["article"]}},"type":"object","required":["url","final_url"],"title":"ArticleMetadata"},"ArticleResponse":{"properties":{"url":{"type":"string","title":"Url","description":"The URL asked for.","examples":["https://en.wikipedia.org/wiki/Okapi"]},"final_url":{"type":"string","title":"Final Url","description":"After redirects.","examples":["https://en.wikipedia.org/wiki/Okapi"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","examples":["Okapi"]},"byline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byline","description":"Author(s) as given on the page.","examples":["Jane Doe"]},"published":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published","description":"Publication date as given by the page (YYYY-MM-DD).","examples":["2026-11-20"]},"site_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Name","examples":["Wikipedia"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The page's own description (meta / Open Graph)."},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image","description":"Lead image URL (Open Graph)."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language declared by the page.","examples":["en"]},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type","description":"Open Graph type when declared: article, website, product...","examples":["article"]},"text":{"type":"string","title":"Text","description":"The main content as plain text."},"markdown":{"type":"string","title":"Markdown","description":"The main content as Markdown (headings, lists, tables)."},"word_count":{"type":"integer","title":"Word Count","examples":[5850]},"reading_time_minutes":{"type":"number","title":"Reading Time Minutes","examples":[24.6]},"truncated":{"type":"boolean","title":"Truncated","description":"True when text and Markdown were cut at 200,000 characters.","default":false}},"type":"object","required":["url","final_url","text","markdown","word_count","reading_time_minutes"],"title":"ArticleResponse"},"Body_Summarize_File":{"properties":{"file":{"type":"string","title":"File","description":"PDF with a text layer, DOCX, ODT, TXT, Markdown or HTML, up to 30 MB and 100,000 words.","format":"binary"},"length":{"type":"string","enum":["short","medium","long"],"title":"Length","description":"`short` (about 60 words and 3 key points), `medium` (about 150 words and 5 key points) or `long` (about 350 words and 8 key points). Never longer than a third of the source.","default":"medium"},"sentences":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Sentences","description":"Exact number of sentences (or bullets) of the summary, 1-20. Overrides `length` for the summary itself."},"format":{"type":"string","enum":["all","paragraph","bullets","key_points","tldr"],"title":"Format","description":"`all` (summary paragraph, key points and TL;DR), `paragraph` (summary and TL;DR), `bullets` (the summary as bullet points, and TL;DR), `key_points` (key points and TL;DR) or `tldr` (the one-line TL;DR only).","default":"all"},"language":{"type":"string","maxLength":20,"title":"Language","description":"Language of the summary: an ISO 639-1 code (`en`, `fr`, `de`, `es`, `ja`, `zh`, `pt-br`...) or an English name (`French`). Default: the source's language."},"focus":{"type":"string","maxLength":200,"title":"Focus","description":"Optional topic to give more room to, e.g. 'pricing and costs' (200 characters max). A hint only: the summary stays faithful to the whole source."}},"type":"object","required":["file"],"title":"Body_Summarize File"},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"ReadingTime":{"properties":{"source_minutes":{"type":"number","title":"Source Minutes","examples":[24.6]},"summary_minutes":{"type":"number","title":"Summary Minutes","examples":[1.1]},"saved_minutes":{"type":"number","title":"Saved Minutes","examples":[23.5]}},"type":"object","required":["source_minutes","summary_minutes","saved_minutes"],"title":"ReadingTime"},"SummarizeRequest":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Text","description":"The text to summarise (up to 50,000 characters; upload a file for longer texts). Send `text` or `url`.","examples":["The James Webb Space Telescope (JWST) is a space telescope designed to conduct infrared astronomy. Its high-resolution and high-sensitivity instruments allow it to view objects too old, distant, or faint for the Hubble Space Telescope. It was launched on 25 December 2021 on an Ariane 5 rocket from Kourou, French Guiana, and arrived at the Sun-Earth L2 point in January 2022. Its primary mirror consists of 18 hexagonal segments of gold-plated beryllium which together create a 6.5 m diameter mirror."]},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url","description":"A web page (its main article is extracted first) or a direct link to a PDF, DOCX, TXT, Markdown or HTML file.","examples":["https://en.wikipedia.org/wiki/Okapi"]},"length":{"type":"string","enum":["short","medium","long"],"title":"Length","description":"`short` (about 60 words and 3 key points), `medium` (about 150 words and 5 key points) or `long` (about 350 words and 8 key points). Never longer than a third of the source.","default":"medium"},"sentences":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":1.0},{"type":"null"}],"title":"Sentences","description":"Exact number of sentences (or bullets) of the summary, 1-20. Overrides `length` for the summary itself."},"format":{"type":"string","enum":["all","paragraph","bullets","key_points","tldr"],"title":"Format","description":"`all` (summary paragraph, key points and TL;DR), `paragraph` (summary and TL;DR), `bullets` (the summary as bullet points, and TL;DR), `key_points` (key points and TL;DR) or `tldr` (the one-line TL;DR only).","default":"all"},"language":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Language","description":"Language of the summary: an ISO 639-1 code (`en`, `fr`, `de`, `es`, `ja`, `zh`, `pt-br`...) or an English name (`French`). Default: the source's language.","examples":["en"]},"focus":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Focus","description":"Optional topic to give more room to, e.g. 'pricing and costs' (200 characters max). A hint only: the summary stays faithful to the whole source."}},"type":"object","title":"SummarizeRequest"},"SummarizeResponse":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The source's title, or a short title written by the AI.","examples":["Okapi"]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"The summary: prose, or Markdown bullet lines ('- ...') with format=bullets. Null with format key_points or tldr."},"key_points":{"items":{"type":"string"},"type":"array","title":"Key Points","description":"The main points, most important first (format all or key_points)."},"tldr":{"type":"string","title":"Tldr","description":"One sentence."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Detected language of the source (ISO 639-1).","examples":["en"]},"output_language":{"type":"string","title":"Output Language","examples":["English"]},"source_words":{"type":"integer","title":"Source Words","examples":[5850]},"summary_words":{"type":"integer","title":"Summary Words","examples":[262]},"reading_time":{"$ref":"#/components/schemas/ReadingTime"},"chunks":{"type":"integer","title":"Chunks","description":"Parts read in parallel for long sources (1 = read in one pass).","default":1},"unverified_numbers":{"items":{"type":"string"},"type":"array","title":"Unverified Numbers","description":"Numbers written in the output that were not found in the source (empty when every figure checks out). Worth a second look."},"source":{"$ref":"#/components/schemas/SummarySource"},"article":{"anyOf":[{"$ref":"#/components/schemas/ArticleMetadata"},{"type":"null"}],"description":"For a web page: its metadata."},"notices":{"items":{"$ref":"#/components/schemas/SummaryNotice"},"type":"array","title":"Notices"},"credits":{"type":"integer","title":"Credits","description":"Credits this call consumed.","examples":[10]}},"type":"object","required":["tldr","output_language","source_words","summary_words","reading_time","source","credits"],"title":"SummarizeResponse"},"SummaryNotice":{"properties":{"code":{"type":"string","title":"Code","examples":["pages_without_text"]},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"SummaryNotice"},"SummarySource":{"properties":{"type":{"type":"string","enum":["text","url","file"],"title":"Type","examples":["url"]},"file_type":{"anyOf":[{"type":"string","enum":["html","pdf","docx","odt","text"]},{"type":"null"}],"title":"File Type","examples":["html"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"File name or final URL.","examples":["https://en.wikipedia.org/wiki/Okapi"]},"pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pages","description":"PDF pages."}},"type":"object","required":["type"],"title":"SummarySource"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Summarization","description":"Text, URL or file to a summary, key points and TL;DR, by AI."},{"name":"Article Extraction","description":"Clean article text, Markdown and metadata from a URL. No AI."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}