{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":null,"catalogType":"api","categories":["search-research"],"dataPlatform":"wikipedia","dataPlatformLogoUrl":"https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg","dataPlatformTranslations":{"ar":"ويكيبيديا","ja":"ウィキペディア","zh":"维基百科"},"dataProduct":"encyclopedia","description":"Get Wikipedia Revision Compare data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Wikimedia, configure supported query parameters and filters, and retrieve structured data including base revision identifier, target revision identifier, diff line number, diff record type code, and diff source text to review article edits, build a change viewer, and connect history to comparison.","descriptionTranslations":{"ar":"قارن مراجعتين للمقالة نفسها في Wikipedia عبر OpenAny REST لفحص التغييرات ضمن القراءة أو التحرير. أرسل معرّف المراجعة الأساسية والهدف، واستخدم سجلات الفروق وسياق الأسطر وبيانات الأقسام لإعداد مراجعة أو عارض تغييرات، ويتولى تطبيقك تفسير صيغة الفروق وعرض نص المصدر بأمان.","ja":"OpenAny REST で同じ Wikipedia 記事の二つのリビジョンを比較し、閲覧や編集のために変更を確認できます。基準と対象の ID を指定し、差分、行の文脈、節の情報からレビューや変更表示を作成でき、差分形式の解釈とソーステキストの安全な表示はアプリ側で行います。","zh":"通过 OpenAny REST 比较同一篇 Wikipedia 文章的两个版本，为阅读或编辑流程检查变化。提供基础版本与目标版本，使用差异记录、行上下文和章节信息准备编辑审阅或变更视图，由应用负责解释差异格式并安全展示源文本。"},"effectContentHtml":"","executionMode":"sync","id":"3d335b12-22fc-4020-a559-4b62def37b72","includedContentHtml":"","inputs":[{"description":"Base revision ID.","location":"path","minimum":"1","name":"from","nullable":false,"required":true,"type":"integer"},{"description":"Target revision ID from the same article.","location":"path","minimum":"1","name":"to","nullable":false,"required":true,"type":"integer"}],"logoUrl":"https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg","method":"GET","name":"Wikipedia Revision Compare API","nameTranslations":{"ar":"API لمقارنة مراجعات Wikipedia","ja":"Wikipedia リビジョン比較 API","zh":"Wikipedia 版本差异比较 API"},"overviewHtml":"\u003ch2\u003eWikipedia Revision Compare API\u003c/h2\u003e\n\u003cp\u003ePlace the base revision ID in from and the target revision ID in to. The response contains diff records plus from and to revision metadata, including section references where provided.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired path: from and to, positive revision IDs from the same article.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003ewikimedia · Wikipedia Revision Comparison\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eReview article edits\u003c/strong\u003e: Inspect source differences between two known revisions.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eBuild a change viewer\u003c/strong\u003e: Render diff records with revision identifiers and line context.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eConnect history to comparison\u003c/strong\u003e: Use revision IDs from a separate article-history lookup.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efrom.id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBase revision identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eto.id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTarget revision identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ediff[].lineNumber\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDiff line number\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ediff[].type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDiff record type code\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ediff[].text\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDiff source text\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ediff[].offset\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource offsets for comparison\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efrom.sections[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBase revision section metadata\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/wikimedia/revision/1382821990/compare/1382916556 \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The request below is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/3d335b12-22fc-4020-a559-4b62def37b72\"\u003ePublished Wikipedia Revision Compare API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eCan I compare revisions from different articles?\u003c/h3\u003e\n\u003cp\u003eUse revision IDs from the same article as required by the target revision input description.\u003c/p\u003e\n\u003ch3\u003eWhere do I find revision IDs?\u003c/h3\u003e\n\u003cp\u003eUse the Wikipedia Article Revision History API to obtain revid values for an article.\u003c/p\u003e\n\u003ch3\u003eIs diff.text rendered article HTML?\u003c/h3\u003e\n\u003cp\u003eIt is source text in a diff record and can contain wiki markup. It is not a complete rendered article.\u003c/p\u003e\n\u003ch3\u003eWhat does the numeric type mean?\u003c/h3\u003e\n\u003cp\u003eTreat type as a diff-format code. Use the relevant format documentation rather than inferring its meaning from one example value.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint monitor future edits automatically?\u003c/h3\u003e\n\u003cp\u003eNo. It compares two supplied revisions. Scheduling history checks and selecting revisions are application tasks.\u003c/p\u003e\n\u003ch3\u003eShould I render diff text as trusted HTML?\u003c/h3\u003e\n\u003cp\u003eNo. Escape or sanitize source content according to your application\u0026#39;s diff-rendering policy.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wikipedia/wikipedia-article-revision-history\"\u003eWikipedia Revision History API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wikipedia/wikipedia-article-wikidata-id\"\u003eWikipedia Article Wikidata ID API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/wikipedia/wikipedia-revision-comparison","providerId":"wikimedia","publicPath":"/v1/agent-apis/wikimedia/revision/{from}/compare/{to}","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":null,"headers":{},"path":{"from":1382821990,"to":1382916556},"query":{}},"response_body":{"diff":[{"lineNumber":94,"offset":{"from":12128,"to":12128},"text":"The [[Modern English]] word {{anchor|Name|Etymology}} ''Earth'' developed, via [[Middle English]], from an [[Old English]] noun most often spelled ''{{linktext|lang=ang|eorðe}}''.\u003cref name=\"oedearth\"\u003e{{cite book|title=Oxford English Dictionary|edition=3|chapter=earth, ''n.1''|publisher=[[Oxford University Press]]|place=[[Oxford]], England|year=2010|isbn=978-0-19-957112-3|doi=10.1093/acref/9780199571123.001.0001}}\u003c/ref\u003e It has cognates in every [[Germanic language]], from which {{lang|gem-x-proto|erþō}} has been reconstructed. In its earliest attestation, the word ''{{lang|ang|eorðe}}'' was used to translate the many senses of Latin ''{{linktext|lang=la|terra}}'' and Greek {{Wktl|grc|γῆ|gē}}: the ground, its soil, dry land, the human world, the surface of the world (including the sea), and the globe itself. As with [[Roman Empire|Roman]] {{langr|la|[[Terra (goddess)|Terra]]}} (or {{langr|la|Tellus}}) and [[Greeks|Greek]] {{langr|grc-Latn|[[Gaia]]}}, Earth may have been a [[earth goddess|personified goddess]] in [[Germanic paganism]]: late [[Norse mythology]] included {{langr|non|[[Jörð]]}} ('Earth'), a giantess often given as the mother of [[Thor]].\u003cref\u003e{{cite book|last=Simek|first=Rudolf|author-link=Rudolf Simek|translator-last=Hall|translator-first=Angela|title=Dictionary of Northern Mythology|page=179|publisher=[[D. S. Brewer]]|year=2007|isbn=978-0-85991-513-7}}\u003c/ref\u003e","type":0},{"lineNumber":95,"offset":{"from":13531,"to":13531},"text":"","type":0},{"highlightRanges":[{"length":4,"start":932,"type":1}],"lineNumber":96,"offset":{"from":13532,"to":13532},"text":"Historically, ''Earth'' has been written in lowercase. During the [[Early Middle English]] period, its [[Definite article|definite sense]] as \"the globe\" began being expressed using the phrase ''the earth''. By the period of [[Early Modern English]], [[Capitalization in English#History of English capitalization|capitalization of nouns began to prevail]], and ''the earth'' was also written ''the Earth'', particularly when referenced along with other heavenly bodies. More recently, the name is sometimes simply given as ''Earth'', by analogy with the names of the [[Solar System|other planets]], though ''earth'' and forms with ''the earth'' remain common.\u003cref name=\"oedearth\" /\u003e [[Style guide|House styles]] now vary: [[Oxford spelling]] recognizes the lowercase form as the more common, with the capitalized form an acceptable variant. Another convention capitalizes ''Earth'' when appearing as a name, such as a description of the \"Earth's atmosphere\", but employs the lowercase when it is preceded by ''the'', such as \"the atmosphere of the earth\". It almost always appears in lowercase in colloquial expressions such as \"what on earth are you doing?\"\u003cref\u003e{{cite book|title=The New Oxford Dictionary of English|edition=1st|chapter=earth|publisher=[[Oxford University Press]]|location=Oxford|year=1998|isbn=978-0-19-861263-6}}\u003c/ref\u003e","type":3},{"lineNumber":97,"offset":{"from":14871,"to":14867},"text":"","type":0},{"lineNumber":98,"offset":{"from":14872,"to":14868},"text":"The name ''Terra'' {{IPAc-en|ˈ|t|ɛr|ə}} {{respell|TERR|ə}} is occasionally used in scientific writing; it also sees use in science fiction to distinguish humanity's inhabited planet from others,\u003cref\u003e{{OED|Terra}}\u003c/ref\u003e while in poetry ''Tellus'' {{IPAc-en|ˈ|t|ɛ|l|ə|s}} {{respell|TELL|əs}} has been used to denote personification of the Earth.\u003cref\u003e{{OED|Tellus}}\u003c/ref\u003e ''Terra'' is also the name of the planet in some [[Romance languages]], languages that evolved from Latin, like Italian and Portuguese, while in other Romance languages the word gave rise to names with slightly altered spellings, like the Spanish {{lang|es|Tierra}} and the French {{lang|fr|Terre}}. The Latinate form {{lang|la|Gaea}} ({{IPAc-en|lang|'|dʒ|iː|.|ə}} {{respell|DJEE|ə}}) of the Greek poetic name {{tlit|grc|[[Gaia]]}} ({{IPA|grc|ɡâi̯.a|lang|label=}} or {{IPA|el|ɡâj.ja|}}) is rare, though the alternative spelling ''Gaia'' has become common due to the [[Gaia hypothesis]], in which case its pronunciation is {{IPAc-en|ˈ|g|aɪ|.|ə}} {{respell|GYE|ə}} rather than the more traditional English {{IPAc-en|ˈ|g|eɪ|.|ə}} {{respell|GAY|ə}}.\u003cref\u003e{{OED|Gaia}}\u003c/ref\u003e","type":0}],"from":{"id":1382821990,"sections":[{"heading":"== Etymology ==","level":2,"offset":12112},{"heading":"== Natural history ==","level":2,"offset":16956},{"heading":"=== Formation ===","level":3,"offset":17033},{"heading":"=== After formation ===","level":3,"offset":21087},{"heading":"=== Origin of life and evolution ===","level":3,"offset":28770},{"heading":"=== Future ===","level":3,"offset":37519},{"heading":"== Composition and structure ==","level":2,"offset":40987},{"heading":"=== Chemical composition ===","level":3,"offset":43321},{"heading":"=== Internal structure ===","level":3,"offset":44506},{"heading":"=== Internal heat ===","level":3,"offset":48459},{"heading":"=== Tectonic plates ===","level":3,"offset":51072},{"heading":"=== Crust ===","level":3,"offset":54372},{"heading":"=== \u003cspan class=\"anchor\" id=\"Surface\"\u003e\u003c/span\u003e Surface ===","level":3,"offset":56201},{"heading":"===Surface topography===","level":3,"offset":67817},{"heading":"=== Shape ===","level":3,"offset":68854},{"heading":"==Gravity and magnetic field==","level":2,"offset":73087},{"heading":"=== Magnetic field ===","level":3,"offset":73118},{"heading":"=== Gravitational field ===","level":3,"offset":78896},{"heading":"== \u003cspan class=\"anchor\" id=\"Earth–Moon system\"\u003e\u003c/span\u003e Moon and orbital space ==","level":2,"offset":80189},{"heading":"=== Moon ===","level":3,"offset":80315},{"heading":"=== Asteroids and artificial satellites ===","level":3,"offset":89669},{"heading":"== Orbit and rotation ==","level":2,"offset":92430},{"heading":"=== Rotation ===","level":3,"offset":92455},{"heading":"=== Orbit and location ===","level":3,"offset":94713},{"heading":"=== Axial tilt and seasons ===","level":3,"offset":97487},{"heading":"== Atmosphere and climate==","level":2,"offset":103535},{"heading":"===Exosphere===","level":3,"offset":107244},{"heading":"=== Upper atmosphere ===","level":3,"offset":108671},{"heading":"===Troposphere===","level":3,"offset":110349},{"heading":"=== Weather and climate ===","level":3,"offset":111574},{"heading":"== Hydrosphere ==","level":2,"offset":118842},{"heading":"== Biosphere ==","level":2,"offset":126252},{"heading":"===Challenges for life on Earth===","level":3,"offset":129751},{"heading":"== Human geography ==","level":2,"offset":133684},{"heading":"=== Natural resources and land use ===","level":3,"offset":140471},{"heading":"=== Environmental impact ===","level":3,"offset":145211},{"heading":"== In culture ==","level":2,"offset":152002},{"heading":"==See also==","level":2,"offset":164117},{"heading":"== Notes ==","level":2,"offset":164501},{"heading":"== References ==","level":2,"offset":167569},{"heading":"== External links ==","level":2,"offset":224462}],"slot_role":"main"},"to":{"id":1382916556,"sections":[{"heading":"== Etymology ==","level":2,"offset":12112},{"heading":"== Natural history ==","level":2,"offset":16952},{"heading":"=== Formation ===","level":3,"offset":17029},{"heading":"=== After formation ===","level":3,"offset":21083},{"heading":"=== Origin of life and evolution ===","level":3,"offset":28766},{"heading":"=== Future ===","level":3,"offset":37515},{"heading":"== Composition and structure ==","level":2,"offset":40983},{"heading":"=== Chemical composition ===","level":3,"offset":43317},{"heading":"=== Internal structure ===","level":3,"offset":44502},{"heading":"=== Internal heat ===","level":3,"offset":48455},{"heading":"=== Tectonic plates ===","level":3,"offset":51068},{"heading":"=== Crust ===","level":3,"offset":54368},{"heading":"=== \u003cspan class=\"anchor\" id=\"Surface\"\u003e\u003c/span\u003e Surface ===","level":3,"offset":56197},{"heading":"===Surface topography===","level":3,"offset":67813},{"heading":"=== Shape ===","level":3,"offset":68850},{"heading":"==Gravity and magnetic field==","level":2,"offset":73083},{"heading":"=== Magnetic field ===","level":3,"offset":73114},{"heading":"=== Gravitational field ===","level":3,"offset":78892},{"heading":"== \u003cspan class=\"anchor\" id=\"Earth–Moon system\"\u003e\u003c/span\u003e Moon and orbital space ==","level":2,"offset":80185},{"heading":"=== Moon ===","level":3,"offset":80311},{"heading":"=== Asteroids and artificial satellites ===","level":3,"offset":89665},{"heading":"== Orbit and rotation ==","level":2,"offset":92426},{"heading":"=== Rotation ===","level":3,"offset":92451},{"heading":"=== Orbit and location ===","level":3,"offset":94709},{"heading":"=== Axial tilt and seasons ===","level":3,"offset":97483},{"heading":"== Atmosphere and climate==","level":2,"offset":103531},{"heading":"===Exosphere===","level":3,"offset":107240},{"heading":"=== Upper atmosphere ===","level":3,"offset":108667},{"heading":"===Troposphere===","level":3,"offset":110345},{"heading":"=== Weather and climate ===","level":3,"offset":111570},{"heading":"== Hydrosphere ==","level":2,"offset":118838},{"heading":"== Biosphere ==","level":2,"offset":126248},{"heading":"===Challenges for life on Earth===","level":3,"offset":129747},{"heading":"== Human geography ==","level":2,"offset":133680},{"heading":"=== Natural resources and land use ===","level":3,"offset":140467},{"heading":"=== Environmental impact ===","level":3,"offset":145207},{"heading":"== In culture ==","level":2,"offset":151998},{"heading":"==See also==","level":2,"offset":164113},{"heading":"== Notes ==","level":2,"offset":164497},{"heading":"== References ==","level":2,"offset":167565},{"heading":"== External links ==","level":2,"offset":224458}],"slot_role":"main"}}}],"seoDescription":"Get Wikipedia Revision Compare data via REST or MCP powered by Wikimedia. Pay per call, no subscription or proxies. Built to review article edits.","updatedAt":"2026-12-03T02:37:00.251Z","usageInstructionsHtml":""}}