Settings
The settings object in your browser request allows you to configure various aspects of how your automation behaves. Below are all the available settings parameters you can use.
Screen Recording
Parameter: record_request (boolean)
By specifying record_request, you can ask Gaffa to screen record your automation and return a video in the response, allowing you to view the magic happening or to debug your automation.
Recording requests come at an additional cost.
Example:
{
"url": "https://example.com",
"settings": {
"record_request": true,
"actions": [...]
}
}Max Media Bandwidth
Parameter: max_media_bandwidth (integer or null)
If you're using Gaffa on a site with lots of images and videos but are more interested in the text data on the page, you can cap how much media content a page loads using the max_media_bandwidth setting. This makes your automation faster and prevents spending credits on data you aren't interested in.
Setting Options
You can set max_media_bandwidth in three ways:
"max_media_bandwidth": 0— Block all images and videos completely"max_media_bandwidth": 5— Cap media downloads at 5MB (or any number you specify)"max_media_bandwidth": null— No limit (default)
How It Works
When the max_media_bandwidth value is set, Gaffa monitors the data being downloaded by the page. When the downloaded media exceeds the specified MB limit, any further downloads of images or videos will be cancelled.
Common Use Cases
This setting is particularly useful for:
Scraping news articles for text only — Extract headlines and article content without downloading thumbnails
E-commerce price monitoring — Track product prices and descriptions without loading product images
Extracting reviews and text content — Capture customer reviews without profile pictures
SEO and content analysis — Analyze page structure, headings, and text without media files
Getting Started
Start with max_media_bandwidth: 0 for maximum savings, then adjust upward only if you encounter issues with specific sites. Setting a value of 0 will cause no images to load, which works well on most sites, but on some could lead to the site thinking you are using an ad blocker.
Example:
Learn more: See our detailed guide on optimizing browser requests with max_media_bandwidth, including real-world testing, use cases, and best practices.
Time Limit
Parameter: time_limit (integer)
Using the time_limit setting caps the maximum running time of the request in milliseconds. If this time expires, all incomplete actions will be cancelled, and the request will return an error.
This value cannot exceed your plan's maximum request runtime. If omitted, it defaults to 60 seconds irrespective of your plan.
Plan limits
Plan
Maximum time_limit (async)
Maximum time_limit (sync)
Pay As You Go
60,000 ms (60s)
60,000 ms (60s)
Starter
60,000 ms (60s)
60,000 ms (60s)
Startup
120,000 ms (2 min)
120,000 ms (2 min)
Growth
300,000 ms (5 min)
120,000 ms (2 min) — clamped
Example:
Ad Blocking
Parameter: block_ads (boolean)
If you are automating or scraping content on ad-heavy websites, third-party ad network requests can slow down your page load significantly, even though you don't need them. By enabling block_ads , Gaffa intercepts and immediately aborts requests to known ad-serving domains before they load, reducing page load times without affecting the core page content.
Setting options
You can set block_ads in two ways:
"block_ads": false— Ad blocking disabled (default)"block_ads": true— Ad blocking enabled
Example:
Redirect Logging
Parameter: log_redirects (boolean)
If you're automating a flow that passes through one or more redirects before landing on a final page such as an affiliate link, a shortened URL, a tracking pixel, or a marketing campaign link, log_redirects captures every URL the browser was sent through along the way, not just the final destination.
By enabling log_redirects, Gaffa records each redirect hop encountered during the request, whether triggered by the initial page load or by an action such as a click, and returns them in the redirects field of the response.
Setting options
"log_redirects": false— Redirect logging disabled (default). Theredirectsfield is omitted from the response entirely."log_redirects": true— Redirect logging enabled.redirectsis populated with every hop captured during the request.
Example
Tracking the redirect chain behind the marketing email link, from the shortened click-tracking URL through to the final landing page:
The relevant part of the response:
Common use cases
Marketing campaign QA — check that UTM parameters and click IDs on an email, ad, or social link survive the full redirect chain instead of getting dropped or overwritten partway through.
Affiliate and voucher link auditing — confirm that a "get code" or "shop now" link actually routes through the correct affiliate network and arrives at the intended retailer page, with tracking parameters (like
utm_source, click IDs) intact at each hop. Useful for verifying a partner integration is wired up correctly, or diagnosing why commission tracking isn't crediting properly.Redirect chain / SEO auditing — after a site migration or URL restructure, confirm old URLs resolve to the correct new destination in as few hops as possible. Long or looping redirect chains hurt both page speed and SEO.
Link safety verification — see every intermediate domain a link passes through before landing on its final destination, useful for checking that shortened or obfuscated links (in emails, ads, QR codes) aren't routing through anything unexpected.
Debugging unexpected destinations — when a request ends up somewhere you didn't expect (a geo-redirect, an A/B test split, a broken campaign link), the full chain shows exactly which hop diverged, rather than just the final URL.
Actions
Parameter: actions (array)
The actions parameter defines the specific tasks you want Gaffa to perform on the page once it loads. Actions are executed in the order they appear in your array and can include tasks such as waiting for elements, capturing screenshots, generating Markdown, printing to PDF, and more.
We support different types of actions, each designed for specific automation needs. Learn more about all available actions here.
Example:
Complete Example
Here's a browser request using multiple settings parameters:
Last updated