MAR11

11 Useful Free APIs for Developing Twitter Apps

1. Twitter API

http://apiwiki.twitter.com/REST+API+Documentation

This is the main API you’ll use for interacting with twitter accounts: getting friend and follower details, following and unfollowing, and most importantly, posting status updates.

The API is very easy to use (thanks to REST: just make GET or POST requests to various URLs), and thankfully no registration is required; just pass your twitter account details in using HTTP Basic Authentication for the actions that need it.

Although the service is rate-limited to 100 requests per hour, many of the most important actions (such as posting a status update, or following a user) are not included in the rate limits.

2. Twitter Search API

http://apiwiki.twitter.com/Search+API+Documentation

Although it’s also run by Twitter, it currently feels like quite a separate service, probably because it has been largely untouched since Twitter bought the Summize search application that it runs from.

The great thing about the Search API is that, within reason, there are no limits on request frequency. So, you can even use it to replace some of the rate-limited actions of the main Twitter API, such as retrieving a (public) user’s timeline, e.g. http://search.twitter.com/search.atom?lang=en&q=from%3Azambonini

The Search API will only serve you up to about 1,500 results from recent history. If you plan on doing serious data mining, you’ll have to periodically poll the API and store the aggregated data locally. Also be aware that it has a few little idiosyncrasies (such as how it treats IDs), so where possible use a library to make your API calls, to more easily upgrade your app when the API is made more consistent in the near future.

3. Yahoo! Term Extractor

http://developer.yahoo.com/search/content/V1/termExtraction.html

If you’re interested in semantically analyzing or categorizing tweets, take a look at the Yahoo! API that extracts ‘significant’ terms from text. You’ll need to register for an API key (it’s quick and painless), but once you have it, the API calls are really simple REST. The service is limited by IP address to 5,000 calls per day.

See Also:

4. Google Charts

http://code.google.com/apis/chart/

Want to produce some nice bar, line, scatter or pie charts from Twitter data, but can’t be bothered with researching and installing a PHP, Javascript or Flash library? The Google Charts API is the answer! No registration is required, and you just have to create the relevant query string with your data and embed the image URL on your page: Google will do the rest and display the graph.

There are no limits on the number of calls you can make, but Google asks that you let them know if you intend on making more than 250,000 calls per day.

5. Yahoo! GeoPlanetTM

http://developer.yahoo.com/geo/

Location-based services are all the rage right now, and Twitter is becoming one of the cornerstones for this burgeoning industry. So you want to extract the ‘location’ from somebody’s tweet and convert it to latitude and longitude, ready for plotting on a Google Map? Yahoo! GeoPlanet does this really well: just pass it a string of text that includes a location, and it will intelligently return a latitude and longitude for the location, along with other useful information.

You’ll need an API key to make requests, but if you signed up for the Yahoo! Term Extractor mentioned above, then you’re halfway there already. Requests are limited to 50,000 per day.

See Also:

6. Compete

http://developer.compete.com/

A large proportion of tweets include links to other websites, so you may want to perform some analysis on these links. The Compete API will return some useful information about a given website, such as how trusted it is and it’s history of traffic.

As with the other APIs in this list, it’s an easy REST over GET API (just pass your parameters via the query string to a URL). You’ll need to sign-up for an API key, and there’s a limit of 1,000 calls per day unless you negotiate for more (and pass their review/audit).

See also:

7. TwitterCounter

http://twittercounter.com/pages/api

Another simple REST over GET API that returns information about twitter users’ follower numbers such as historical growth numbers, predictions, averages, and so on.

No registration or authentication is required.

8. TwitPic

http://twitpic.com/api.do

The de-facto service for embedding images into tweets offers a simple, albeit sparsely documented, API.

Uploading a photo is very simple – just POST the API the binary data associated with the image, together with the twitter username and password for the relevant account. No registration/API key is required.

9. bit.ly

http://bit.ly/app/developers

Need to embed a long URL into a limited-space tweet? Bit.ly is the answer. It has a slightly shorter domain than tinyurl.com, and doesn’t have the horrible frame of ow.ly! The API is more complicated than the simple Tinyurl equivalent (see link below). You’ll need to register for a key, but it is far more feature rich, with expansion and statistics features joining the main shortening function.

See Also:

10. Tweetshrink

http://tweetshrink.com/api

Another way of squeezing more information into each tweet is to use abbreviations and text-speak. The Tweetshrink API will quickly do these for you: it’s an incredibly simple REST over GET API, with no registration/key required.

11. Yahoo! Spelling Suggestion

http://developer.yahoo.com/search/web/V1/spellingSuggestion.html

Need to check those words before sending a status update, but have no local access to a dictionary or spell-checker? The Yahoo! Spelling Suggestion API is here to save you. Pass it a string of text (again, REST over either GET or POST), and it will do it’s best to return a corrected version.

As with the other Yahoo! APIs mentioned, you’ll have to register for an API key, and requests are limited to 5,000 per day per IP address.

28 comments

  1. Nermal said on 12th Mar 2009

    http://tr.im can be used to trim urls (and then tweet them straight to twitter). It's also a letter shorter than bit.ly :)

  2. Darragh Curran said on 12th Mar 2009

    Blatant self promotion ;) My API for http://www.longurlplease.com/ fits nicely with this list. It converts short urls into their originals, which helps you make better decisions about what/when to click on links. Here's a list of some of the twitter apps using it so far: http://www.longurlplease.com/apps

  3. Dan Zambonini said on 13th Mar 2009

    @Darragh Ah, yes! I should have included that - an invaluable service! I didn't realise you had an API. Excellent stuff.

  4. Jake Good said on 29th Mar 2009

    Also check out Drop.io (http://api.drop.io) as you can send images, videos, documents, or any other file...

  5. Den said on 31st Mar 2009

    Annotated links API: http://linkstore.ru/al/api.jsp

  6. Skelly said on 24th Apr 2009

    Speaking of location-based mashups being all the latest rage -- Geonames.org offers a great JSON based API for this type of thing.

  7. Twitter Loco said on 26th Apr 2009

    tr.im is an excellent tool aswell!

  8. Twitter API said on 17th May 2009

    The twitter oAuth api is definitely better than the basic authentication.

  9. Justin K. said on 25th Jun 2009

    Great post! There a so many cool tools and apps out there. While it might not be a tool for Twitter App Developemnt, I personally love ref.ly (http://ref.ly). It's a great tool for people who want to share Bible verses on Twitter.

  10. US poker rooms said on 26th Aug 2009

    The twitter oAuth api is definitely better than the basic authentication.

  11. Geek Blog said on 27th Aug 2009

    Awesome API list! We will be reporting on some of these soon.

  12. Direct Mail List Brokers said on 28th Aug 2009

    The fact that all these API's are available is testament to the foresight of the people that run Twitter. Microsoft should take note and open their doors a little more frequently

  13. games said on 17th Sep 2009

    Great post about twitter APIs. Just bookmarked it.

  14. sohbet said on 21st Sep 2009

    thanks, Speaking of location-based mashups being all the latest rage -- Geonames.org offers a great JSON based API for this type of thing.

  15. Chris Rosenstein said on 12th Sep 2010

    And lets not forget http://www.webpurify.com to get rid of any tweets that contain profanity

  16. Free Return Address Labels said on 30th Sep 2011

    Personally I like tr.im best.

  17. LtLoveProseSharer said on 4th Nov 2011

    This tweet about famous poetry is amazingly insightfull.. I cherish poetry... This other poetry page i visit a bucket load is called famous myownverse poetry ...

  18. Pragnigradaks said on 14th Dec 2011

    xGgkBhrYb ugg boot uk qVwoAbuJu uggs gTzaEraEk uggs oStzKrcKs http://uggsforsale33.webnode.nl/ kXsmHtbYz http://www.artslant.com/ew/groups/show/227541

  19. opeplaroreste said on 18th Jan 2012

    aMM ghd curls aFH http://www.constructionreunited.com/guccireplica118/blog/cheap-ghd-along-with-the/ hEO ghd australia shop pFX http://guccireplica118.tradea.org/501064/sure+that+ghd+wholesale+to+clean.html lTY ghd precious yQU http://articlesnare.info/finance/ghd-iv-hair-styling/ tBH hermes constance bTO http://www.sexhealthmatters.org/member/19246

  20. speareespuck said on 19th Jan 2012

    idaho pharmacy board http://sundrugstore.net/products/atacand.htm bristol ri pharmacy s

  21. ApambVak said on 23rd Jan 2012

    shoprite pharmacy http://sundrugstore.net/products/detrol.htm intermountain pharmacy residency

  22. Eryncoccatty said on 27th Jan 2012

    pharmacy divtionaty http://sundrugstore.net/products/imitrex.htm data flow diagram of a pharmacy

  23. Eryncoccatty said on 27th Jan 2012

    now hiring pharmacy techs to work from home http://sundrugstore.net/products/serophene.htm mexico pharmacy no prescription

  24. Zededurse said on 30th Jan 2012

    xanax usa pharmacy fedex http://sundrugstore.net/products/prednisone.htm price of vytorin at wallmart pharmacy

  25. orersolibennyuI said on 30th Jan 2012

    Если потерять чувство юмора, что останется?
    картинки морские ракушки

  26. orersolibennyuI said on 30th Jan 2012

    Если потерять чувство юмора, что останется?
    видеопроектор с частотой развертки 100 герц

  27. orersolibennyuI said on 30th Jan 2012

    Если потерять чувство юмора, что останется?
    тинa кaроль люблю его скaчaть видео

  28. astorkappek said on 2nd Feb 2012

    BqejfgqxgdeihcOD hermes birkin replica CxhpacziquboshBG http://www.matthewmucker.com/hermes-outlet-c-23.html

    Post Comment

    About The Author

    Dan Zambonini
    Dan Zambonini is the Technical Director of Box UK. He is the original architect of the Amaxus Content Management System, conceived clickdensity, has participated in industry-shaping think tanks, and has had articles featured in international websites and magazines. He is passionate about making use of the latest technologies in everyday life, and believes people and communities are key to innovation. For more, you can visit him on his personal website at danzambonini.com.

    We're hiring

    Want to work with people like us?

    Check out our vacancies.