Get Item api not working in Webflow project

Hi Guys,
I want to get my collection items using API in my webflow project. I know I can get access to them directly by using webflow collection but I need to access them through API for advanced work.
Here is my site Read-Only: [Webflow - search][1]

I have embedded the script in the page, but it still shows an error “Uncaught SyntaxError: missing : after property id” in my console.

Could you please help me with that? Thank you.


If you are trying to use the API from a Webflow site you can’t unless you leverage a middleware layer.