There and Back Again

Webthumb API released

Webthumb now has an API. Its a simple REST API based on posting some simple XML.

It gives you the ability to request thumbnails, check on there status, and even download files.

To use the API register and then goto your user page, your API key is shown there.

Basic docs on the Webthumb API are available.

If you have any comments or suggestions leave them as comments.

The API is currently in beta so im sure there will be some changes and additions, but its a very usable state. If someone wraps the API for easy PHP access i’d be interested in hosting the code so if you write a wrapper please get in touch with me.

8 thoughts on “Webthumb API released

  1. Hasin Hayder

    Hi
    Its awesome. I just used the API and its great. I am creating wrapper class using PHP and hopefully you will get it by tomorrow.

    Regards.
    Hasin

  2. Joshua Eichorn Post author

    Hasin:
    Thanks for writing the wrapper. All those requests are keeping my processing queue nice and full. I’ll be looking at solutions to speeding up processing time in the next week or so. But at least part of that will be some rate limits.

  3. Robin

    Very nice application I must say. I have been toying with it and it works well. I may have been making too many requests at a time, sorry about that, I have limited my requests to one per 15 seconds. What I am planning on using it for is to fetch my thumbnails for http://globalwarminginthenews.com and the associated environmental sites. Each site may have 10 or so articles per day which I will select from about 20 – so I may be making 100 plus calls to your API per day – is that OK? If so I will probably set a Cron to pull them in once per hour. Thanks again for an excellent system.

  4. Robin

    FYI: I changed the delay to 30 seconds now as I may still be polling your box too quickly… Also…

    Some URLs it fails at:

    http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104&STORY=/www/story/09-15-2006/0004433700&EDATE=
    http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104&STORY=/www/story/09-15-2006/0004433703&EDATE=

    These it seems to take forever (no results back yet)

    http://news.com.com/Curbing+the+CO2+that+comes+from+PC+use/2100-11398_3-6116121.html
    http://www.telegram.com/apps/pbcs.dll/article?AID=/20060915/NEWS/609150366/1003/NEWS03
    http://www.sfgate.com/cgi-bin/article.cgi?file=/news/archive/2006/09/15/national/a062235D29.DTL

  5. Joshua Eichorn Post author

    Robin: The system is queue based so its not a big deal to make multiple requests at once. Polling for results somewhere around 30-60 seconds is fine.

    Number of requests wise you should only be able to make 250 requests a month. Email me (josh@bluga.net) and we can work something out to get past that.

  6. Joshua Eichorn Post author

    On that urls that fail its because its not getting through the url validation code.

    My url validator (PEAR Validate) doesn’t seem to like / in the query string. I’ll look into changing that but i’d rather be more scrict on that account rather then less. You should be able to urlencode the / and things will work.

  7. Robin

    I’ve sent you a couple of emails Josh – and that’s fine – I can urlencode – I just didn’t realize that was the problem…

    Thanks again!

    - Robin.