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": {
            "339": {
                "pageid": 339,
                "ns": 0,
                "title": "API",
                "revisions": [
                    {
                        "user": "Hercule",
                        "timestamp": "2012-02-11T20:13:38Z",
                        "comment": "tools. is gone",
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{articles}}\n{{widget}}\n{{RightTOC}}\n\n==What is an API==\n\nAn application programming interface (API) is an interface implemented by a software program that enables it to interact with other software. It facilitates interaction between different software programs similar to the way the user interface facilitates interaction between humans and computers.\n\n===Accessing the API===\n\nThe Mibbit API allows you to gather information on your widget.  You have to have a manager account, and a settings ID for the API to work.  Where you see <settingsID> in this document, replace it with your own settings ID.  This is in the widget URL you are using or in the example links on the [[Manager]]'s \"Connection\" page).\n\nFor example:\nwidget.mibbit.com/?settings='''42c110f3cbbaea489c0b0e40a40e6e18'''&channel=%23chat\n\n==Number of Users on a Widget==\n\nIf you run a site, and are using the widget, you might want to show elsewhere on your site how many people are using it. We provide multiple formats for this information.\n\n{{notice|The results are '''updated every 20 minutes''', so should give you a reasonable '''idea''' of how many mibbitians are chatting but '''not''' the '''exact''' number.}}\n\nIn the example output section, we assume there are 15 users using the widget.\n\n===Direct Number===\n\nA file containing only the number.\n\nFormat:  '''<nowiki>http://api.mibbit.com/<settingsID></nowiki>'''\n\nThis is most useful for server side languages, such as PHP.\n\nOutput:\n 15\nExample:<br>\n[http://api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18 api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18]<br>\n\n\n===Javascript Function===\n\nThis format outputs a snippet of javascript which will write to the document the current number. So you can include this in your HTML, without any server-side changes needed.\n\nFormat:  '''<nowiki>http://api.mibbit.com/<settingsID>.js</nowiki>'''\n\nUsage (in an HTML page):\n There are <nowiki><script src=\"http://api.mibbit.com/42c...e18.js\"></script></nowiki> people chatting \n\nOutput:\n document.write(\"15\")\nExamples:<br>\n[http://api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18.js api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18.js] (Javascript example)<br>\n[http://tools.mibbit.com/pub/api-demo.htm api-demo] (full blown example)\n\n===JSON Object===\n\nYou might prefer to use this link, it\u2019s likely that later on this one will contain more useful info as well.\n\n'''<nowiki>http://api.mibbit.com/<settingsID>.json</nowiki>'''\n\nDelivers data as json object to be processed by your javascript (e.g. ajax call): \n {mibbitians:15}\nExample: [http://api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18.json api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18.json]\n\n===JSONP====\n\nAlso available, as requested:\n\n'''<nowiki>http://api.mibbit.com/<settingsID>.jsonp</nowiki>'''\n\n(details will follow)\n\nExample: http://api.mibbit.com/42c110f3cbbaea489c0b0e40a40e6e18.jsonp?callback=some_function\n\n===Graphical Image===\n\nThe following formats give you access to an image showing the amount of users in the pass week of month.\n\n'''<nowiki>http://api.mibbit.com/graphs/<settingsID>_week_mini.png</nowiki>''' (thumbnail)\n\n'''<nowiki>http://api.mibbit.com/graphs/<settingsID>_month_mini.png</nowiki>''' (thumbnail)\n\nThe following graphs may have a wrong scaling (will be fixed as soon as possible)\n\n'''<nowiki>http://api.mibbit.com/graphs/<settingsID>_month.png</nowiki>'''\n\n'''<nowiki>http://api.mibbit.com/graphs/<settingsID>_week.png</nowiki>'''\n\nUsage:\n Last 4 weeks<nowiki> \n<img src=\"http://api.mibbit.com/graphs/42c...e18_month_mini.png\">\nuser stats.</nowiki>\n\n==View Settings==\n\nWhen the Mibbit Widget loads, it makes an API call that returns the settings changed from the default values.  The settings change is a Javascript file that sets a few global variables.\n\nFormat:  '''<nowiki>http://api.mibbit.com/settings/<settingsID>.js</nowiki>'''\n\nUsage:  Used internally, does not seem to be a current usage externally.\n\nOutput:  var LOADED_SETTINGS={/* modified settings */}; var PREMIUM_DOMAIN=\"\"; var CONNECT_SERVER=\"\"; var CONNECT_CHANNEL=\"\";\n\n==Request a Feature==\n\nNew API features are in the works, and this page will be updated when they are available.\n\nFor any feature requests for the new API, ask axod at [http://chat.mibbit.com/#help #help on irc.mibbit.net] or add them to the [[WishList]]\n\n[[Category:Features]]\n[[Category:Widget]]\n[[Category:Development]]\n{{DEFAULTSORT:Api}}"
                    }
                ]
            },
            "1": {
                "pageid": 1,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "Havondale",
                        "timestamp": "2022-06-04T11:16:45Z",
                        "comment": "",
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{articles}}\n{{RightTOC}}\n== About Mibbit ==\nMibbit is an online chat client that supports a variety of [[Platforms]] including all popular web browsers: Internet Explorer, Firefox, Chrome, Safari and Opera. It does this without any special browser plugins; a Javascript-enabled browser/device is all that is required. The Mibbit Widget Manager is used by many webmasters to provide a real time chat window embedded onto their websites.\n<br>\n:* [[Features]]\n:* [[Reviews]]\n:* [[Websites Using Mibbit]]\n:* [[Logo graphics]]\n\n=== Why use Mibbit? ===\n* '''Security''' - Unlike Java chat applets which require not only a download of a file to your machine, but also requires 'trusted' access to your machine, Mibbit provides enhanced security and utilises the web browser's built-in security features over which you have full control.\n* '''Ease''' - Now you can access chat rooms without the need to install a desktop client on every machine you use.\n* '''Portability''' - You can use Mibbit from your laptop, desktop or phone.\n* '''Extra features''' - Some features of Mibbit are now easily implemented in desktop clients, such as image thumb nails, typing notification, recent chat history and much more.\n\n== Using Mibbit ==\n=== Using the <span class=\"plainlinks\">[http://Chat.Mibbit.com Mibbit (main) client]</span> ===\n==== Make your own place to chat ====\nIf you'd like your own chatroom, the easiest thing is to create a channel on irc.mibbit.net . Simply connect to the server, and then follow the guides [[Create Your Own Nickname]] or [[Create Your Own Channel]].\n\n==== Set it up just how you like it ====\n* [[:Category:Preferences|Preferences]]\n* [[Alias]] - You can setup aliases for your frequently used commands.\n* [[Filters]] - You can use filters to replace text you send and/or receive.\n* [[Autoconnect]] - Get Mibbit to automatically connect to your favorite servers and channels.\n* [[Special:Allpages|Index]]\n\n=== Using the Mibbit IRC [[Widget|Widget]] on your website ===\nIf you have/create your own irc channel you can also use a [[Widget]] to embed a chatroom on your own website, allowing your visitors to easily interact, and stay on your site longer. It adds a lot to any community to be able to chat with each other. People get to know each other, and come back to your site more often. To learn more about the Mibbit widget, [[Widget|click here]].\n\nYou can also link to Mibbit, and have some information [[pre-filled]] into the connect form. You may pass server,channel, nick over in the URL. These must be URL encoded.\n\n==== Mibbit [[Modules|Modules]] for existing software ====\nThere are also several [[Modules]] for existing software. So if you're already using a wiki/forum for your website, there may be a handy Mibbit plugin for it already.\n\n==== [[Skins]] ====\nIf you don't like the default settings, there are some ready made [[Skins]] you can use. Alternatively you can create your own.\n\n=== [[ServerList|IRC Servers]] ===\nAll of the connections to IRC servers come from the same IP address. However, Mibbit is not, and will never be an anonymizer. Mibbit has a couple of methods it uses to notify the IRC servers of the visitors real IP address, so that the user can still be identified, and banned if needed.\nMost IRC servers have a 'session limit' which may mean that you cannot connect from mibbit. If you are unable to connect somewhere, please email us, and we will request a limit increase from them.\nAll of the [[ServerList|IRC servers listed]] in the drop down are servers we have agreements with already.\nIf you manage an IRC network, or your own server, please check out [[Enable_Mibbit_on_Your_IRC_Server|how to enable your own IRC server]].\n\n== Sponsors ==\nMibbit is sponsored by:\n\n[[File:Dcm-logo-mibbit.jpg|link=https://www.dotcom-monitor.com/synthetic-monitoring/]]\u2007\n[[File:Loadview-logo-mibbit.jpg|link=https://www.loadview-testing.com/load-testing/]]\u2007\n[[File:whb-wp-mibbit.jpg|link=https://webhostingbuddy.com/bluehost-coupon-codes/]]\u2007\n[[File:sgthq-logo-mibbit.jpg|link=https://www.securityguardtraininghq.com/]]\u2007\n[[File:dc-logo-mibbit.jpg|link=https://www.drivencoffee.com/wholesale/]]\u2007\n[[File:Fme-logo-mibbit.jpg|link=https://www.findmyelectric.com/sell-my-tesla/]]"
                    }
                ]
            }
        }
    }
}