I had some a to shorten URLs for an in-application Twitter client I’m working on and thought I would share my simple solution with you guys. It’s actually pretty straight forward and can be done in 1 line of code. I have broken it up into several for clarity. NSString *url = @"http://brandontreb.com"; NSString *apiEndpoint = [NSString stringWithFormat:@"http://api.tr.im/v1/trim_simple?url=%@",url]