Use this first for the captured visual appearance. It stays reliable even when a page depends heavily on JavaScript.

How to Upload Files and Get Public URLs with One API Call - DEV Community