{"openapi":"3.1.0","info":{"title":"Wikisource API","version":"1.0.0","description":"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.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/wikisource-api","description":"oanor gateway"}],"tags":[{"name":"Texts"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/search":{"get":{"operationId":"get_v1_search","tags":["Texts"],"summary":"Search the source-text library","description":"","parameters":[{"name":"q","in":"query","required":true,"description":"Search text, e.g. Gettysburg Address","schema":{"type":"string"},"example":"Gettysburg Address"},{"name":"limit","in":"query","required":false,"description":"Max results (1-50)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":10,"query":"Gettysburg Address","results":[{"url":"https://en.wikisource.org/wiki/Gettysburg_Address","title":"Gettysburg Address","words":77,"snippet":"of Gettysburg Address (1863) by Abraham Lincoln 1Gettysburg Address1863Abraham Lincoln Versions of Gettysburg Address include: Gettysburg Address (1863)"},{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Bliss_copy)","title":"Gettysburg Address (Bliss copy)","words":320,"snippet":"Gettysburg Address (1863) Abraham Lincoln 1150278Gettysburg AddressAbraham Lincoln ​Address delivered at the dedication of the cemetery at Gettysburg"},{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Nicolay_draft)","title":"Gettysburg Address (Nicolay draft)","words":299,"snippet":"titles, see Gettysburg Address. The Gettysburg address (1863) by Abraham Lincoln, edited by John George Nicolay Abraham Lincoln1150255The Gettysburg address1863John"},{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Lincoln_Memorial)","title":"Gettysburg Address (Lincoln Memorial)","words":330,"snippet":"Gettysburg Address (1922) by Abraham Lincoln 1150247Gettysburg Address1922Abraham Lincoln ​FOUR SCORE AND SEVEN YEARS AGO OUR FATHERS BROUGHT FORTH ON"},{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Everett_draft)","title":"Gettysburg Address (Everett draft)","words":313,"snippet":"Gettysburg Address (1864) Abraham Lincoln, given to Edward Everett 1150264Gettysburg Address1864Abraham Lincoln, given to Edward Everett ​Four score and"},{"url":"https://en.wikisource.org/wiki/Suggestive_programs_for_special_day_exercises%2FLincoln_Day%2FThe_Gettysburg_Address","title":"Suggestive programs for special day exercises/Lincoln Day/The Gettysburg Address","words":305,"snippet":"Hammond Address at Gettysburg by Abraham Lincoln 2511108Suggestive programs for special day exercises — Address at GettysburgAbraham Lincoln ​ ADDRESS AT GETTYSBURG"},{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Bancroft_draft)","title":"Gettysburg Address (Bancroft draft)","words":316,"snippet":"Gettysburg Address (1864) Abraham Lincoln, given to George Bancroft 1150276Gettysburg AddressAbraham Lincoln, given to George Bancroft ​Four score and"},{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Hay_draft)","title":"Gettysburg Address (Hay draft)","words":318,"snippet":"Gettysburg Address (1863) Abraham Lincoln, given to John Hay 1150269Gettysburg Address1863Abraham Lincoln, given to John Hay ​Four score and seven years"},{"url":"https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica%2FGettysburg","title":"1911 Encyclopædia Britannica/Gettysburg","words":1933,"snippet":"November 1863, President Lincoln delivered his celebrated “Gettysburg Address.” In 1864 the Gettysburg Battle-Field Memorial Association was incorporated, and"},{"url":"https://en.wikisource.org/wiki/The_American_Cyclop%C3%A6dia_(1879)%2FGettysburg","title":"The American Cyclopædia (1879)/Gettysburg","words":422,"snippet":"The American Cyclopædia Gettysburg 1524638The American Cyclopædia — Gettysburg GETTYSBURG, a borough and the capital of Adams co., Pennsylvania, situated"}]},"meta":{"timestamp":"2026-06-01T16:23:35.418Z","request_id":"6866faae-a437-4b2c-b308-55983f680941"},"status":"ok","message":"Search results retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/text":{"get":{"operationId":"get_v1_text","tags":["Texts"],"summary":"Full plain text of a work","description":"","parameters":[{"name":"title","in":"query","required":true,"description":"Work page title, e.g. Gettysburg Address (Bliss copy)","schema":{"type":"string"},"example":"Gettysburg Address (Bliss copy)"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"url":"https://en.wikisource.org/wiki/Gettysburg_Address_(Bliss_copy)","text":"←\n \n\n Gettysburg Address ( 1863 ) Abraham Lincoln \n \n →\n\n sister projects : Wikipedia article , Commons category , Wikidata item \n \n The Bliss copy, once owned by the family of Colonel Alexander Bliss, Bancroft's stepson and publisher of \"Autograph Leaves\", is the only manuscript to which Lincoln affixed his signature.\n\n For works with similar titles, see Gettysburg Address .\n\n 1150278 Gettysburg Address Abraham Lincoln \n\n \n ​ Address delivered at the dedication of the cemetery at Gettysburg.\n\n \nFour score and seven years ago our fathers brought forth, on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.\n\n Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. \n\n But, in a larger sense, we can not ​ dedicate—we can not consecrate—we can not hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us—that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion—that we here highly resolve that these dead shall not have died in vain—that this nation, under God, shall have a new birth of freedom—and that government of the people, ​ by the people, for the people, shall not perish from the earth.\n\n \n\n November 19, 1863. \n\n \n \n\n \n This work was published before January 1, 1931, and is in the public domain worldwide because the author died at least 100 years ago.\n\n \n \n\n \n Public domain Public domain false false","title":"Gettysburg Address (Bliss copy)","truncated":false,"characters":2180},"meta":{"timestamp":"2026-06-01T16:23:35.769Z","request_id":"73ff6d88-cd22-44e1-b55d-3876f169d387"},"status":"ok","message":"Text retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/work":{"get":{"operationId":"get_v1_work","tags":["Texts"],"summary":"A work metadata & preview","description":"","parameters":[{"name":"title","in":"query","required":true,"description":"Work title, e.g. Gettysburg Address","schema":{"type":"string"},"example":"Gettysburg Address"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"work":{"url":"https://en.wikisource.org/wiki/Gettysburg_Address","title":"Gettysburg Address","preview":"Gettysburg Address (1863), Nicolay draft\nGettysburg Address (1863), Hay draft\nGettysburg Address (1864), Everett copy\nGettysburg Address (1864), Bancroft copy\nGettysburg Address (1864), Bliss copy\nGettysburg Address (1922), inscribed on the southern interior wall at the Lincoln Memorial\n\n\n== Works about the Gettysburg Address ==\nInauguration of the Gettysburg Cemetery (1863), report in the Daily Illinois State Journal\n\n\n== See also ==\nGettysburg Oration, a speech given the same day as Lincoln's","characters":499,"description":"speech by U.S. President Abraham Lincoln"}},"meta":{"timestamp":"2026-06-01T16:23:35.959Z","request_id":"627f9b54-b86d-4ca5-950d-e9d74ac702de"},"status":"ok","message":"Work retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Usage notes","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Wikisource is Wikimedia's free digital library of original source texts — classic literature, poems and plays, historical speeches, treaties and constitutions, religious and philosophical works, court decisions, essays and more, all public-domain or freely licensed. /v1/search?q=Gettysburg Address = search the library, returning matching work/page titles with a snippet and word count; /v1/work?title=Gettysburg Address = a work's metadata (short description, a text preview, total character length and URL); /v1/text?title=Gettysburg Address = the full plain text of a work (capped at 60,000 characters, with a truncated flag when longer). Titles are Wikisource page names — many works are split into sub-pages or have multiple versions, so use /v1/search to find the exact page. 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.","source":"Wikisource — the free library of source texts (en.wikisource.org, a Wikimedia project)","endpoints":["/v1/search","/v1/work","/v1/text","/v1/meta"]},"meta":{"timestamp":"2026-06-01T16:23:36.044Z","request_id":"8effa824-0931-40d0-b05a-4cdfd86df34f"},"status":"ok","message":"Meta retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":3600,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":550,"monthly_call_quota":53000,"rps_limit":5,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1700,"monthly_call_quota":218000,"rps_limit":12,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":4800,"monthly_call_quota":755000,"rps_limit":35,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/wikisource-api"}