Webflow API - require is not defined

Hi, I have a hard time to make API work in VSCode with Live server. I have installed webflow API from npm but I’m not able to connect to get some data back. When I follow Github description I get an error require is not defined
I’m able to connect via Postman or from the terminal but I can’t make it work in JS file in VSCode running Live Server.

I have watched and read a lot but still can’t make it work. Is there ant step by step article or video how to?


Here is my site Read-Only:
(how to share your site Read-Only link)