What are you writing an API for? An API is just a formalized set of public methods for accessing something so its no more complicated than writing anything else. Are you talking about doing something like the flickr API? The biggest hurdle I think you’ll have is the token based authentication which, honestly, isn’t that complicated either.