Dynamic Pages Javascrpt

Good Morning,

Hope everyone is well.

I have built a few dynamic product pages with webflow where the data is being pulled from an API. The pages have at the end of the URLs ‘Record ID’ numbers, for e.g rec1234567778

I was wondering is it possible to add one button to the single dynamic product page but somehow get the data for the backend?

Apologises if this isnt clear but please get back to me if you can help.

Many Thanks,

Mark