Api is a good idea but it may cost you or you need certain certain amount to pay for it. Here i found no need of any api simply you can read all te instagram hashtags from https://insta-hashtags.com/ site then you can reorganize them inside a array and display on your api or function whereever you wants, As this websites keep change its viral hashtags or insta hashtags regularly you will get the updated or fresh one.