Skip to content

Billing and tips Beta ​

Billing ​

Sessions are billed by traffic: the data that goes through the session's proxy, in MB, rounded up and charged when the session ends. Sessions that never start (for example, an unused connect_url) are free. See the pricing page for the rate.

Tips ​

  1. Close the browser when you are done. browser.close() ends the session at once; otherwise it runs until the idle timeout.
  2. Block what you don't need. Images, fonts and media count as traffic:
    js
    await page.setRequestInterception(true);
    page.on('request', (r) => ['image', 'font', 'media'].includes(r.resourceType()) ? r.abort() : r.continue());
  3. Set a traffic cap with max_mb to bound the cost of one session.
  4. Use premium proxies for protected sites. Many anti-bot systems challenge datacenter IPs more often.
  5. Pick a country only when you need one. Leaving country out gives the widest choice of exits.