You need to figure out how the browser knows that user already passed the challenge (sometimes a cookie) and then pass those cookies to ScreeenshotAPI.