Shorten long URLs.
TinyURL API is a free URL Shorteners API that requires apiKey authentication, is served over HTTPS and does not support CORS, so it should be called from a server.
Details from tinyurl.com.

Unified API suite · now live
Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.
The TinyURL API is provided by TinyURL (tinyurl.com).
Yes. The TinyURL API is listed in the URL Shorteners category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.
Yes. The TinyURL API uses apiKey authentication, so you need to register for credentials before making requests.
Not directly. The TinyURL API does not allow CORS, so call it from a server, serverless function or proxy instead of front-end JavaScript.
Yes. The TinyURL API is served over HTTPS, so it's safe to use in production.