Difference between revisions of "API"
|Line 1:||Line 1:|
Revision as of 15:49, 15 May 2010
How many people are using my widget?
If you run a site, and are using the widget, you might want to show elsewhere on your site how many people are using it. Well now you can do that easily.
|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.|
First thing you need, is the settingsID. This is in the widget URL you are using (last line in Manager "Prefs").
For example: widget.mibbit.com/?settings=42c110f3cbbaea489c0b0e40a40e6e18&channel=%23chat
The section in bold is the settingsID
Just replace <settingsID> with your particular ID.
Using the API
The link below outputs just the number of mibbitians using your widget. You could use this from PHP,Python,etc and get it to output in the page.
Usage (on your html-page):
There are <script src="http://api.mibbit.com/42c...e18.js"></script> people chatting
api-demo (full blown example)
You might prefer to use this link, it’s likely that later on this one will contain more useful info as well.
There are also a couple of graphs updated at
Last 4 weeks <img src="http://api.mibbit.com/graphs/42c...e18_month_mini.png"> user stats.
Request a Feature
New API features are in the works, and this page will be updated when they are available.