MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "2583": {
                "pageid": 2583,
                "ns": 0,
                "title": "API",
                "revisions": [
                    {
                        "user": "Freephile",
                        "timestamp": "2017-12-19T16:36:28Z",
                        "slots": {
                            "main": {
                                "contentmodel": "wikitext",
                                "contentformat": "text/x-wiki",
                                "*": "Commentary and examples of using the APIs (Application Programming Interface) for software like [http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API CiviCRM], [[MediaWiki]], Drupal and web services.  Both API documentation and API tools. OS and Internet API references.\n\n[[wp:ApplicationProgrammingInterface|Application Programming Interface]] ([[wp:API|API]]) is the information about the exposed or 'public' variables, methods and objects or classes that a system makes available to the developer who wishes to interface with the system programmatically.  If you make an API, documenting the API is a critical software development function.  In documentation terms, the API must almost be treated like a separate piece of software within or \"attached\" to the main program.\n\n== Programming APIs ==\nSWIG [[wp:Swig]] ([http://www.swig.org/exec.html Executive Summary]) helps application developers create an API.  Several open source projects leverage SWIG, such as Subversion, wxPython and wxWindows.  In turn, other developers can enhance these generic APIs to customize them for a particular programming language.  For example Python developers can use [http://pysvn.tigris.org/docs/pysvn_prog_guide.html pySVN] while work is underway to expand the PHP interface.  See more in the Subversion manual http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.developer.usingapi\n\n== Resources ==\n* http://gotapi.com publishes several API references for everything from HTML and CSS to DocBook and Drupal.  This organized list of API references also features fast, as-you-type search.\n* Some other documentation resources:\n** http://api.kde.org/ APIs of the K Desktop Environment\n** http://doc.trolltech.com/ APIs of the Qt GUI Toolkit \n\n== MediaWiki API ==\nMediaWiki has a strong '''action''' API (also called the web service API) which has it's endpoint at api.php. See the docs at https://www.mediawiki.org/wiki/API:Main_page  \n\nSince MW 1.27, there is also a SpecialPage [[mw:Special:ApiSandbox|Special:ApiSandbox]] [https://demo.qualitybox.us/wiki/Special:ApiSandbox Demo site] for interacting with the API - just like the API explorer for CiviCRM. (previously it was an extension)\n\nAn example of the MediaWiki API in use is at the \"[https://freephile.org/wikireport/index.php Wiki Report]\" project.  Another very interesting example is the [https://wikiapiary.com/wiki/Freephile_Wiki Wiki Apiary] (clever name!)\n\nSimilarly, there is a [[wp:Module:Sandbox|Module:Sandbox]] for testing Lua scripts\n\n===Example Questions ===\nHere are some example requests to the API\n# https://freephile.org/w/api.php?action=query&meta=siteinfo&siprop=extensions With no 'format' argument, you will get a \"pretty\" HTML output that you can read in your browser.\n# https://freephile.org/w/api.php?action=query&meta=siteinfo&siprop=extensions&format=json With *json* explicitly requested as the format, you can get values suitable for actual programming.\n\n== Developer Tools ==\nAmong other tools, you're going to need to look at HTTP requests and responses to develop web services using APIs.  So, check out tools like [[Wireshark]] (https://www.wireshark.org/),  the [https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor Network Monitor]<ref>The \"Live HTTP Headers\" add-on still exists, but that is no longer neccessary given the development of the core features of the in-browser developer tools</ref> in [https://developer.mozilla.org/en-US/docs/Tools Developer Tools] for [[Firefox]], or [https://developer.chrome.com/devtools Chrome Developer Tools]\n\n== Integrators ==\nCompanies like [https://platform.ifttt.com/docs IFTTT] (If This Then That) and [https://www.crunchbase.com/organization/zapier#/entity Zapier] offer API integrations so that you can tie together applications via their APIs without any coding.\n\n{{References}}\n\n[[Category:Applications]]\n[[Category:Help]]\n[[Category:Development]]\n[[Category:Software]]\n[[Category:Best Practices]]"
                            }
                        },
                        "comment": "Adds API Sandbox links"
                    }
                ]
            },
            "5": {
                "pageid": 5,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Admin",
                        "timestamp": "2023-05-23T14:42:15Z",
                        "slots": {
                            "main": {
                                "contentmodel": "wikitext",
                                "contentformat": "text/x-wiki",
                                "*": "We used to make \"QualityBox\" which was a hosted enterprise-grade knowledge platform with Wikipedia at it's core. That is discontinued, however most of this site is dedicated to showcasing the [[features]] and solutions of \"Enterprise MediaWiki\" - defined as the Knowledge Platform for organizations.\n\nCheck out our latest [[Video]]s !\n\n== Freephile Wiki ==\nFreephile Wiki is a site about [[FreeSoftware|free technology]].  It was started by [[User:Freephile|Greg Rundlett]] of {{CompanyName}}.  This site is a ''[[wp:Wiki|wiki]]'' that ''you'' can edit.  Contact [[User:Freephile|Greg]] to request an account.\n\n<table style=\"border: dotted 1px gray; -moz-border-radius:15px;\">\n<tr>\n<td style=\" -moz-border-radius:15px;background-color:#FDFFD0;width:50%; padding:10px;\">\n<!-- panel 1 -->\n<div class=\"floatright\">[[Image:Tux.png|FOSS Experts|128px|right|link=Local experts]]</div> [[People]] and [[Local experts]] are available to answer your specific questions and go beyond what you can do on your own.\n</td>\n<td style=\" -moz-border-radius:15px;background-color:#D0E3FF;width:50%; padding:10px;\">\n<!-- panel 2 -->\n<div class=\"floatright\">[[Image:Krfb.svg|Free Software|128px|right|link=Applications]]</div> [[Applications]] are specific tools that you can use in business, home, education and life.\n</td>\n</tr>\n<tr>\n<td style=\" -moz-border-radius:15px;background-color:#E5FFD0; padding:10px;\">\n<!-- panel 3 -->\n<div class=\"floatright\">[[Image:Help-contents.svg.green.png|Help|128px|right|link=Help:Contents]]</div>\nThe [[Help:Contents|Help system]] will get you started quickly, and is a trusty resource whenever you need [[Help]].\n</td>\n<td style=\" -moz-border-radius:15px;background-color:#FFD0D0; padding:10px;\">\n<!-- panel 4 -->\n<div class=\"floatright\">[[Image:Edit-find.svg|Search|128px|right|link=Special:Search]]</div>\nThe [[Special:Search|powerful search]] in this wiki will help you find whatever you are looking for.\nSee the [[Index]] for a complete list of articles.  [[Search]] is also a complete category.\n</td>\n</tr>\n</table>\n__NOTOC__\n\n\n<!-- @FIXME this section needs to be served over https\n== Status ==\n{{#widget:Embed|param1=http://wiki.freephile.org:20000/api/v1/badge.svg?chart=elasticsearch_local.cluster_health_status&alarm=elasticsearch_last_collected&refresh=auto}}\n\n-->\n== What's New ==\n=== POTD ===\n[[File:Potd-logo.svg|link=http://commons.wikimedia.org/wiki/Commons:Picture_of_the_day|thumb|click here for the Picture Of The Day]]\n\n=== Articles ===\n{{Special:Newpages/limit=10,shownav,namespace=Main}}\n[[Special:Newpages/namespace=Main|more]] [[Image:Go-next.svg|16px|more|link=Special:Newpages/namespace=Main]]\n\n=== Revisions ===\n{{Special:RecentChanges/days=90,limit=10,hidebots,hideminor}}\n[[Special:RecentChanges|more]] {{More|Special:RecentChanges}}\n\n=== Files ===\nSee the following links:\n[[Special:NewImages|more]] {{More|Special:NewImages}}\n\n=== Templates ===\n{{Special:Newpages/limit=10,shownav,namespace=Template}}\n[[Special:Newpages/namespace=Template|more]] [[Image:Go-next.svg|16px|more|link=Special:Newpages/namespace=Template]]"
                            }
                        },
                        "comment": "change intro line"
                    }
                ]
            }
        }
    }
}