URL Shortener Endpoint - Free Public API
Endpoint URL:
https://aisenseapi.com/services/v1/url_shortener/https://developer.mozilla.org/
Description:
This endpoint generates a shortened URL for any full-length link you provide. It’s useful for creating shareable, concise links that redirect to the original. destination. Links expire automatically after 24 hours.
Response Format
- Content-Type: application/json
- Example Success Response: json
{
"short_url": "https://307.fi/AcTvSLsb", "expire_timestamp": 1738457158
}
Field Explanation
| Field | Type | Description |
|---|---|---|
| short_url | string | The newly generated short URL for your link |
| expire_timestamp | integer | Unix timestamp (seconds since epoch) indicating when the short URL expires |
Use Cases
- Social Sharing: Post shorter links on social platforms that have character limits.
- Analytics & Tracking: Use short links for easy click tracking and analytics.
- URL Management: Simplify long or complex URLs into more manageable ones.
How to Use
- Send a GET request to:
https://aisenseapi.com/services/v1/url_shortener/{LONG_URL}Replace
{LONG_URL}with the URL you want to shorten. The URL-encoding of certain characters may be required if your original URL contains special symbols. - Receive a JSON response containing the
short_urlfield and the expire timestamp.
No authentication or additional headers are required; just provide the long URL in the path.