extract short url from Cutt.ly api code using Javascript

I have written some of the code for shortening urls using cutt.ly api in javascript .

I can see that urls are shortend but I am not able to extract shortened link from the response.
Please help

cuttly api info page link: https://cutt.ly/api-documentation/cuttly-links-api

My code =====

let res = await fetch("https://cutt.ly/api/api.php?key=[keyHere]&short=https://www.google.com", {
      method: 'POST',
  });
  let shorturl = [];
  shorturl = res.json();

5 thoughts on “extract short url from Cutt.ly api code using Javascript”

  1. 684114 197117I discovered your blog internet site on google and appearance a couple of of your early posts. Keep up the exceptional operate. I just extra the RSS feed to my MSN News Reader. Seeking for forward to reading far more on your part later on! 158545

    Reply
  2. 944874 180681Not long noticed concerning your web website and are nonetheless already reading along. I assumed ill leave my initial comment. i do not verify what saying except that Ive enjoyed reading. Nice blog. ill be bookmarking maintain visiting this web website actually generally. 564970

    Reply

Leave a Comment