
GooLNK
- Category: URL Shorteners
Shorten URLs with the API
The Goolnk API provides an easy way to shorten long URLs using a simple
POST
/api/v1/shorten
5 Benefits of Using Goolnk API for URL Shortening
- Saves space by shortening long links
- Easier to share short links on social media
- Improves the readability of URLs
- Provides tracking and analytics of shortened links
- Enhances user experience with faster load times
Example Code in JavaScript
fetch('https://goolnk.com/api/v1/shorten', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ longUrl: 'https://example.com/long/url/with/special/characters?query=parameter' }) }) .then(response => response.json()) .then(data => console.log(data));
Note: In this example, the
longUrl