Hi,
there two main approaches:
try to find the data you want without JS (internal XHR endpoints, metadata, different URLs...). It's not always possible.
use headless browsers (Puppeteer, Selenium, Playwright). You can wait for certain data or selector. The downside is that they are much slower and harder to maintain.