How to use Sholi's API to shorten URLs

Your Ultimate Free URL Shortener

A URL shortener is a web-based service that takes a long, complex URL and creates a shorter version of it. This shortened link is much easier to share, as it takes up less space. In addition, it can also be used to track clicks, as each link is unique. This means you can monitor who is visiting your website and how often. Using a URL shortener is a great way to make your website and content more accessible and user-friendly. Whether you're sharing a link on social media, in an email, or even in a text message, using a URL shortener can help streamline the process and make it easier for people to click through. Another great benefit of using a URL shortener is that you can customize the link with a keyword or phrase. For example, if you were promoting a product, you could create a shortened link with the product name as the keyword. This makes it easier for people to remember the link, and it can also help to boost your SEO.

With Sholi's Powerful API you can integrate your platform with Sholi to generate Short URLs.

This tutorial shows you how to use Sholi's API to generate Short URLs.

To Use the API follow these steps:

  • Register On Sholi
  • Login On Sholi
  • Click your name on the right top corner
  • From the Menu click settings
  • Choose Basic Settings from left navigation
  • Copy the Access Token
How to shorten URLs with Sholi's API

Here is the PHP example Request

$client = new \GuzzleHttp\Client();
$response = $client->post(
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        'json' => [
            'large_url' => '',
$body = $response->getBody();
print_r(json_decode((string) $body));

Here is the PHP example Response

    "data": {
        "large_url": "",
        "short_url": "",
        "id": 111,
        "qrcode_url": ""
    "message": "Success"

For more information please see the docs