How to Get a Graph of Your Instructable Statistics




Introduction: How to Get a Graph of Your Instructable Statistics

About: Swedish expat living now living in Malaysia after spending some years working in Dubai.

Given my relatively successful last two instructables I thought that it'd be interesting to see how and when the pageviews occurs over time.

Getting Featured or Popular should increase the rate of pageviews in a distinct way. Also getting onto a major blog would show up as a bump in the rate of pageviews.

To satisfy my own curiosity I slapped together a website that keeps track of the statistics of a set of instructables. Once every 15 minutes it gets the current statistics and stores it in a database. It can then on demand plot graphs of that data.

If you want to keep track you your (or any other) instructables just go to and register by just supplying your email address. You can then add the URL's of the instrutables that you're interested in.

It will of course take a while before any data shows up in the graphs since it can only get the current data and not any historical values from the Instrutables site. So add your instructables as soon as possible after you published them.

The InstruGraph site is using some "undocumented tricks" to get the data from Instrutables, so it might stop working any anytime if the Instructables team decides to change their coding in a non-compatible way. But until then, please make use of the service. It's free to use and doesn't have any obnoxious affiliate programs or ads.

It's in early beta so please report any bugs, errors, improvements, suggestions to me. Either on the site or as a comment or PM here.

Step 1: How to Add a New Instructable to Graph

(Instructables didn't like to have an instructable with just the intro step so I just added this info here to get it listed.)

To add a new instructable to be graphed you first go to the instructable and copy its URL. Then click on the "Add new graph" -link on the InstruGraph site and paste the URL in the form and click Add.

That's it. Now you just wait for 15 minutes and the graph begins to get built. Come back a day or two later and watch you statistics in amazement or horror... :-)



    • Water Contest

      Water Contest
    • Creative Misuse Contest

      Creative Misuse Contest
    • Metalworking Contest

      Metalworking Contest

    22 Discussions

    .  I'm open to suggestions. Sounds like it would be a bit of a resource hog, but it might be worthwhile for a small group.

    :( This no longer seems to work. It takes me to a "VIA" site that asks for a lot of personal information, including my passport number!

    Help,I did everything you said and it keeps saying Invalid Url whenever I paste the URL of the Instructable I made.

    1 reply

    I'm so very, very creeped out right now. My HDR photos with the GIMP instructable just got Popular status, and I found this site and thought "I'll get a graph of my page views to see how they do". So I went to the site, and out of the I don't know how many thousand Instructables to give me as the random one on the front page it gave... HDR photos with the GIMP. Get outta my head! Seriously, I hope the powers that be appreciate how many people would really like this as a feature of the site and do something similar.

    Too bad you made this after my Instructable got featured, it would have been sweet to see the spike in page-views (they skyrocketed! Already passed the one I posted in October.)

    4 replies

    Yea, I feel the same with my two last instructables. I'd been nice to seen a graph of them. But better "later than never", the system is in place and collecting data for our future projects... So we better make some new awesome instructables then, right? :-)

    Yea, lol. It's such an awsome site, it should be linked on the Instructables homepage (it's featured at least).

    Actually I have a secret hope that the Instructables team will implement the same function directly integrated in their system. They really should. But until then I'm happy to provide that service. And when they do, I'll be glad because imitation is the sincerest form of flattery.

    Nice one especially since I just posted make your own website, one of us makes a quick mirror and people can show off their latest instructable's performance. Was the coding difficult or was it just a case of using the values for views and copying them to a graph database automatically.

    1 reply

    It depends of how you define difficult. There's certainly no rocket science coding here. But there are no automatic functions used.

    From a PHP-script, that gets called from a cron-job every 15 minutes, I call the$uid&contentType=stats for each intructable I want to get the stats for and then pick out the interesting parts from the html code I get back from that call. The stats is then put into a database.

    When doing the actual graph I first fetch the stats that it needs from the database into two arrays (views and rating) an then I use the GD-function an load two pre-made graphic images. The first image is the template where the grid, ticks and logo is already on, the other image is a long list of numbers and months.

    To make the graph I copy parts of the number-image into the template so the dates and the values gets there. Then I use the standard line-drawing function and plots the two lines step-by-step.

    To reduce the load on the server I write the new image to a file and use that file directly for subsequent calls for it during the next 15 minutes. If the image is older then 15 minutes it gets recreated with fresh data.

    I just discovered that I botched the "add new graph" -code a bit. All new graphs were tagged to the first user on the system (me). And since I don't know what instructable graph that belongs to whom I just added them to all of you. If you don't want them all in your list just click on the "Remove graph from you listing"-link.

    If only this had come out before I posted my Instructable. It got over 10,000 views in ONE day! It was on Engadget and also got Featured and was Popular.