if you don't want to reverse engineer the javascript
Most of the time you don't need to, just open up devtools, look at the network tab, locate the right request(s).
I've once used Selenium to run javascript in the webpage to steal a few dynamic tokens required by the sites API to reuse in my more well-trodden python-requests workflow.