in need a function in node which take shortner url as input and return its actual url

  Kiến thức lập trình

like for example as a input take this link and in output i need final url https://www.flipkart.com/realme-p1-pro-5g-phoenix-red-128-gb/p/itmc859edf8053dc?pid=MOBGZ8R6Y4FFFHQX&param=9897&otracker=clp_bannerads_1_8.bannerAdCard.BANNERADS_realme+p1+pro+5g+sale+on_mobile-phones-store_CKXPDU00VGFX&affid=admingopai&affExtParam1=E452B8570 restriction is that we cant use pupeeter cherio type similar library. we can use axios or http request i need a function which can give me actual url fast. when i am tryyin i got stucked since it has js redirection and where it getting statuscode200 then it not able to search for further it treatin it as actual url

New contributor

user24803769 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT