https://api.querying.ai/browser and its API key to your querying.ai vt_ key. Features, limits, concurrency and prices are on the Browser API page.
1. Set your API key
2. Create a browser and drive it
stealth: truegives the browser a fresh fingerprint, a residential exit and automatic captcha solving. Traffic through the residential exit is billed per GB. See Billing.browser_live_view_urlopens the live view in any browser tab.kernel.browsers.live_view.create(session_id)issues a read-only (default) or control URL;scopeandttl_secondsset the access and an optional expiry.cdp_ws_urlcarries a token for this session, so Playwright connects with no API key. Puppeteer connects withpuppeteer.connect({ browserWSEndpoint: browser.cdp_ws_url }).- Deleting the browser stops its charges. A browser that has no client connected for
timeout_seconds(60 by default) ends on its own.
3. Send an HTTP request through the browser
browsers.curl sends a request through the browser’s network and returns the status and body:
browsers.request, browsers.stream and browsers.fetch are unavailable at this base URL. Use browsers.curl.
4. Keep a site signed in with Managed Auth
Store the site’s login as a credential and link it to a profile with a connection.login() signs the profile in. The connection then checks the login every health_check_interval seconds (3600 by default, at least 300) and signs in again with the credential when the site has signed the profile out.
- A browser that opens the profile starts signed in to the site.
- A login that needs a person, such as an SMS or email code, an account choice or an approval, pauses at
hosted_url, where the person finishes it in the live view. When an automatic re-login needs a person, the connection moves toNEEDS_AUTHwith anerror_codesuch assms_code_required, andcan_reauth_reasonnames what the next login needs. With atotp_secreton the credential, re-logins enter authenticator codes themselves. auth.connections.timeline(id)lists logins, re-logins and health checks. Calllogin()right before work that needs the session: while the profile is signed in, it reachesSUCCESSat once.- Health checks and re-logins run in headful browsers billed as browser time. Once a check finds the profile signed out, a connection that cannot sign in again on its own is not checked until the next
login(). See Billing.