API Documentation

ucla.in attempts to be fully compatible with bit.ly’s REST API with three exceptions:

  1. Only links "in" UCLA can be shortened. View the list of allowed domains.
  2. You do not need to authenticate to the api and provide the login or apiKey variables (though you can specify them if you do not want to change a software library).
  3. The endpoint for the rest API is: http://www.ucla.edu/uclain/api (This means that you use this location in lieu of http://api.bit.ly in the bit.ly API documentation).

Examples

/v3/shorten

http://www.ucla.edu/uclain/api/v3/shorten?uri=http://www.ucla.edu/&format=txt

/v3/expand

http://www.ucla.edu/uclain/api/v3/expand?shortUrl=http://ucla.in/c1FZRB&format=txt

Rate Limiting

It is important to note that this API is rate limited on a per-minute, per-hour and per-ip basis. If you abuse this service you may be blocked.