Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To send a custom header to the page being screenshotted, set it in the screenshot provider’s target-page rendering options. A header used to authenticate your request to the screenshot API is separate; it is not automatically forwarded to the target website. The exact option name, encoding, and forwarding scope depend on the provider.

Keep API authentication separate from target-page headers

A screenshot request can involve two different HTTP exchanges:

  • Your app to the screenshot service: may include an API key or other credentials that authorize use of the service.
  • The service’s browser to the target page: may need a target-specific header, such as an Authorization bearer token or an X-Request-Id.

Putting a header on the first exchange does not establish that the screenshot service will send it on the second. Configure the header using the provider’s documented rendering option. For example, Screenshot API’s docs show Authorization: Bearer ... and X-API-Key for authenticating the API call, but do not establish that these configure headers sent to the page. Check the service’s API documentation for its target-header support.

Use the format your provider documents

There is no universal screenshot API parameter or encoding for target-page headers. These examples illustrate different formats and scopes; they are not interchangeable.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

HTML/CSS to Image

HTML/CSS to Image documents a headers parameter for requests to the page specified by url. The requested URL’s origin is allowed by default. To allow another origin, use additional_header_origins. Headers are sent to subrequests such as CSS, images, and JavaScript only if include_headers_on_subrequests is enabled. Review its API documentation for the applicable request format and forwarding rules.

Screenshots.Dev

Screenshots.Dev documents a headers parameter containing semicolon-separated key-value pairs. For query-string use, URL-encode its value. Its documentation treats cookies separately from headers. See the Screenshots.Dev documentation for current syntax.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

ScreenshotCenter

ScreenshotCenter’s help page shows custom headers as JSON objects in a header array, including examples with X-Request-Id and Authorization. Follow its help documentation for the request shape supported by your endpoint.

Build and verify a request safely

  1. Identify the target’s requirement. Confirm the exact header name and value expected by the page. Do not confuse a target-page token with the credential for your screenshot provider.
  2. Check the provider’s official reference. Find its target-render header option, whether it accepts GET, POST, or both, and the required encoding. Do not copy another provider’s parameter shape.
  3. Check where the header is sent. Determine whether it applies only to the initial page request, whether redirects or additional origins are allowed, and whether subresources receive it.
  4. Make a controlled capture. Test against a page and credential you control. Inspect the returned image or PDF and, where available, response diagnostics to determine whether the page loaded as intended.

This generic JSON is illustrative only; a provider may require a query parameter, a differently named field, or another structure:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
{
  "url": "https://example.com/private-page",
  "headers": {
    "Authorization": "Bearer TARGET_PAGE_TOKEN",
    "X-Request-Id": "capture-123"
  }
}

Limit credential exposure

Send target credentials only to the origin that needs them. If a provider supports origin allowlists or separate subrequest controls, use those rather than assuming the header stays on the original request. A page may load scripts, images, stylesheets, or follow redirects to other origins; consult the provider’s forwarding rules before enabling broader propagation.

Or skip the browser setup

ScreenshotNeo accepts custom headers for the page it captures. For example, this cURL request sends an authorization header to the target page:

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
curl -G "https://api.screenshotneo.com/v1/shot" 
  -d access_key=YOUR_API_KEY 
  --data-urlencode url=https://example.com/private-page 
  --data-urlencode 'headers={"Authorization":"Bearer TARGET_PAGE_TOKEN"}' 
  -o shot.webp

See the ScreenshotNeo API documentation for the supported request parameters and header format. ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients. The Free plan includes 1,000 shots per month without a card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan and get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot missing or rejected headers

  • The page still asks you to sign in: Check that you set the target-render header option, not just the API authentication header. Verify the header name, value, and token format against the target site’s requirements.
  • The main page works but an asset does not: The provider may not forward headers to subrequests by default. Check its subrequest setting and origin rules; avoid sending credentials to unrelated origins.
  • A redirected page loses access: Header forwarding to redirect destinations can be restricted. Check the provider’s documented redirect and origin behavior before allowing additional destinations.
  • The request fails to parse: Confirm the vendor’s expected structure and encoding. A URL-encoded semicolon-separated parameter is not the same as a JSON object or JSON array.
  • The API returns a capture but the content is wrong: Confirm the target URL and whether the page needs additional cookies, client-side state, or a different authentication mechanism. A custom header alone may not satisfy the site’s access flow.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to compare when selecting an API

Before relying on custom headers in an application, check these documented differences:

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Question Why it matters
What option name and encoding are required? Providers use different parameter names and shapes, such as a URL-encoded query value or JSON objects.
Which request methods support the option? Your integration must match the provider’s GET or POST interface and encoding rules.
Do headers reach subresources? Stylesheets, images, and scripts may be fetched separately from the main document.
How are redirects and additional origins handled? Forwarding limits can affect authenticated pages and help prevent credentials from reaching unintended origins.
Are service credentials distinct from page credentials? Keeping the two exchanges separate avoids assuming that an API key for the screenshot provider is sent to the website.

Provider behavior can change. Documentation reviewed on October 3, 2026, describes the examples above; confirm the selected vendor’s official reference when implementing.

Frequently Asked Questions

Does the screenshot API’s Authorization header authenticate me to the target website?

Not necessarily. API authentication and the remote browser’s request to the target page are separate; configure the latter with the provider’s documented rendering option.

Can custom headers be sent to every resource on the page?

That depends on the provider’s forwarding controls. Some distinguish the main page request from subrequests and other origins.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.