2. Which API is best for you?
4. Advanced Shorten
First of all, we'd like to thank you for your interest in Crum.bs! Crum.bs is a url shortening service with a
very simple API. All will be explained in this documentation, which will explore the options available, help
you decide which is right for you, and give examples as to how to actually develop with crum.bs in mind.
Good luck, and thanks again. If you have any questions, do not hesitate to contact us via twitter.
Which API is best for you?
Which API is best for you is a matter of what options you want your users to have when shortening their
urls, and whether you are prepared to use a more complicated request for data, as well as a more
complicated parsing of a response.
Below are a list of questions you should ask yourself to help decide which is better to use:
• Are you prepared to...
submit form data?
o parse JSON?
• Would your users benefit from...
o url limits and password protection?
o being able to edit the description?
• Do the features of the advanced API outweigh the potential extra code/libraries/complexity of it,
when compared with simpleshorten?
“Simpleshorten” is a very simple and easy way to generate shortened links. To use “Simpleshorten”,
simply use the following API syntax:
http://crum.bs/api.php?function=simpleshorten&url=[insert url here]
An example response:
One of the major drawbacks with simpleshorten is the lack of errors. If there is an error, simpleshorten
will send an empty response. Errors include malformed urls and no url. On the other hand, simpleshorten
is incredibly easy to build into your application. Because there is no JSON surrounding the url, or any extra
information, it greatly simplifies the process of getting the ur