Swizec Teller - a geek with a hatswizec.com

    Do we rely on open APIs too much?

    • Friends

      Image by Kassel via Flickr

    Open API's have become the staple of the internets. If you have a website and it doesn't offer some kind of API then you're an idiot these days. One of those people stuck in the past. For the purpose of this swapping generalisation let's assume an RSS is a sort of basic API.

    When everything has an API it's very easy to create mashups, connect services and sometimes even create something wonderful - like for example the whole ecosystem Twitter has become.

    However, there is a dark side to this intercommingling of everything. There are two actually, but I'll focus on the first for now.

    What happens when a service provider decides to discontinue their API support? Or what happens when somebody begins a lock down procedure to improve their own profitability? Darker still, what when the provider's official API users automagically work and everybody else is in a sea of inexplicable trouble?

    Something similar happened to me yesterday night as I was readying Twitulater for release. I only had a few touch-ups to do here and there. But something dark and brooding came in between. Something drove a wedge right through my plans and slaughtered them whole.

    I was chatting to my girlfriend and wanted to give her a prank link. What better way to prank someone than first shortening the URL via a shortening service. I opted for my favourite, tr.im. But alas, the page greeted me with a warning only. It said they were unable to find a revenue stream and were simply shutting down, effective immediately.

    Luckily they pointed to another good provider, bit.ly, through which I could then shorten my url.

    But this left Twitulater in a dark spot, our primary and default url shortener didn't work. What now!? Well, I was up until about 4am that night, implementing bit.ly support. This of course wasn't easy, it could be easy, but it wasn't. For some reason bit.ly wants you to provide a username and a key and other strange things before you can use their API - on native Twitter of course it just automagically works.

    So in the end, because one service shut down and another is a bit silly with authentication, I was left with a very delayed release schedule and a usability nightmare hidden inside my application, for anyone to discover when they post a link.

    Thus I propose a question to everyone, are we becoming too reliant on open API's?

    PS: it has just come to my attention through the Zemanta plugin that tr.im decided not to die after all.

    Reblog this post [with Zemanta]

    Did you enjoy this article?

    Published on August 12th, 2009 in Online Communities, Twitter, Twitulater, Uncategorized

    Learned something new?
    Want to become an expert?

    Here's how it works 👇

    Leave your email and I'll send you thoughtfully written emails every week about React, JavaScript, and your career. Lessons learned over 20 years in the industry working with companies ranging from tiny startups to Fortune5 behemoths.

    Join Swizec's Newsletter

    And get thoughtful letters 💌 on mindsets, tactics, and technical skills for your career. Real lessons from building production software. No bullshit.

    "Man, love your simple writing! Yours is the only newsletter I open and only blog that I give a fuck to read & scroll till the end. And wow always take away lessons with me. Inspiring! And very relatable. 👌"

    ~ Ashish Kumar

    Join over 14,000 engineers just like you already improving their careers with my letters, workshops, courses, and talks. ✌️

    Have a burning question that you think I can answer? I don't have all of the answers, but I have some! Hit me up on twitter or book a 30min ama for in-depth help.

    Ready to Stop copy pasting D3 examples and create data visualizations of your own?  Learn how to build scalable dataviz components your whole team can understand with React for Data Visualization

    Curious about Serverless and the modern backend? Check out Serverless Handbook, modern backend for the frontend engineer.

    Ready to learn how it all fits together and build a modern webapp from scratch? Learn how to launch a webapp and make your first 💰 on the side with ServerlessReact.Dev

    Want to brush up on your modern JavaScript syntax? Check out my interactive cheatsheet: es6cheatsheet.com

    By the way, just in case no one has told you it yet today: I love and appreciate you for who you are ❤️

    Created by Swizec with ❤️