Browser API Quick Start Examples
Run these basic examples to check that your Browser API is working (remember to swap in your credentials and target URL):For advanced examples, such as handling captchas, see the Code Examples section.
- NodeJS
- Python
- C#
Single Navigation Per Session
Browser API sessions are structured to allow one initial navigation per session. This initial navigation refers to the first instance of loading the target site from which data is to be extracted. Following this, users are free to navigate the site using clicks, scrolls, and other interactive actions within the same session. However, to start a new scraping job, either on the same site or a different one, from the initial navigation stage, it is necessary to begin a new session.Session Time Limits
Browser API has 2 kinds of timeouts aimed to safeguard our customers from uncontrolled usage.- Idle Session Timeout: in case a browser session is kept open for 5 minutes and above in an idle mode, meaning no usage going through it, Browser API will automatically timeout the session.
- Maximum Session Length Timeout: Browser API session can last up to 30 minutes. Once the maximum session time is reached the session will automatically timeout.