Back

#source-texts

1 APIs with this tag

Wikisource API

Wikisource as an API — the Wikimedia free digital library of original source texts. Wikisource collects public-domain and freely-licensed primary texts: classic literature, poetry and plays, historical speeches, treaties and constitutions, religious and philosophical works, landmark court decisions, essays, letters and more, faithfully transcribed. This API wraps the official Wikisource MediaWiki service into clean JSON. /v1/search?q=Gettysburg Address searches the library and returns matching work and page titles with a text snippet and word count. /v1/work?title=Gettysburg Address returns a work's metadata — a short description, a text preview, the total character length and the canonical URL. /v1/text?title=Gettysburg Address (Bliss copy) returns the full plain text of a work (rendered and cleaned from the wiki source, capped at 60,000 characters with a truncated flag when longer) — the actual readable document, including transcribed works that template-based pages assemble. Many works are split into sub-pages or exist in several versions, so use /v1/search to find the exact page title first. Ideal for digital-humanities and literature apps, e-reading and quotation tools, NLP corpora of historical texts, and education. Content is public domain or CC BY-SA. Distinct from book-metadata catalogues and encyclopaedias — this is the actual full text of primary sources and classic works. For free textbooks use the Wikibooks API, for the encyclopaedia the Wikipedia API.

api.oanor.com/wikisource-api