text = requests.get(f'https://app.vidiq.com/v0/trendy?q%5B%5D=Любой тег&limit=50', headers={"Authorization":мой токен", "user-agent": ua.random}, verify=False).json()
text ="\n".join(list(json.loads(text).values()))
text = text[:text.rfind("\n")] if len(text) > 500 else text