Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
FREEDOM251

Freedom251 › Blog › API

How to Capture Mobile Viewport Screenshots of Indian Ecommerce Websites with ApiFlash

By Freedom251 Team · · 6 min read

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

To capture an Indian ecommerce page at a mobile viewport with ApiFlash, call its /v1/urltoimage endpoint with a valid access key, the complete page URL, and explicit width and height values. Keep full_page=false for a viewport-only image. You can also set language, timezone, and page-load waits, but those controls do not guarantee that a merchant will show a particular localized page or allow the capture.

Make a mobile viewport capture with ApiFlash

ApiFlash returns image data by default. The request below is a template: replace YOUR_ACCESS_KEY and the target URL with values you are authorized to use. The 390-by-844 viewport is an example, not a prescribed Indian phone size.

As an Amazon Associate I earn from qualifying purchases.

curl -G "https://api.apiflash.com/v1/urltoimage" 
  --data-urlencode "access_key=YOUR_ACCESS_KEY" 
  --data-urlencode "url=https://www.example.in/product" 
  --data-urlencode "width=390" 
  --data-urlencode "height=844" 
  --data-urlencode "full_page=false" 
  --data-urlencode "format=png" 
  --data-urlencode "accept_language=en-IN" 
  --data-urlencode "time_zone=Asia/Kolkata" 
  -o mobile.png

Use a real, complete HTTPS URL in place of the example. Keep your access key out of public repositories and client-side code. For other request parameters, see ApiFlash documentation.

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

Why the viewport settings matter

ApiFlash’s documented default dimensions are 1920 by 1080 pixels, so a request without explicit dimensions is desktop-sized. The API accepts width and height values from 0 to 16,350 pixels, subject to a total area limit of 33,177,600 pixels. For a viewport screenshot, leave full_page=false; setting it to true captures the whole page and causes the supplied height to be ignored.

#1 Best Overall
Sale
Smartphone Holder/Vertical and Horizontal Tripod Mount Adapter | Premium Rotatable Bracket, 1/4 in Screw, Adjustable Clip for iPhone, Android Cell Phone, Selfie Stick, Camera Stand
  • FEATURE: the tripod phone mount is adjustable by screw mechanism, 360 degree rotating, vertical(portrait mode) and horizontal(landscape mode) or any angle as you need, not necessary to take your cell phone out of a standard tripod or small tripod.
  • EASY TO USE: two options for using tripod phone holder: 1. screw it directly to the tripod or selfie stick with pivoting arm, being able to 360 degrees rotating, 2. remove the phone clamp from pivoting arm and then mount on a tripod or monopod.
  • ADJUSTABLE WIDTH: 2.2inch-4.1inch(55mm-105mm), attachable to any regular-size smartphone, tripod, selfie stick, monopod or camera; two standard 1/4 x 20mm female thread interfaces meeting your various needs. Very functional and compact.
  • MATERIAL: the black part made of sturdy plastic, the female threads inserted are brass, the male screw is steel and soft non-slipping silica gel pads, which protect your cellphone from scratch and hold the phone securely.
  • ATTACHABLE TO: most mobile phones, tripods, unipods, selfie sticks, cameras, camcorders, pico projectors, including iPhone 11/11 Pro/11 Pro Max/X/XS/XR/XS Max/8/7/6/6s Plus/SE/5s/5/5c, Samsung Galaxy S10/10+/S9/S9+/S8/S8+/S7/S6/S6 edge, Note10/10+/9/8 and Android phones.

scale_factor=2 produces a higher-definition image than the default scale factor of 1, at the cost of a larger file. If using WebP, the dimensions after applying the scale factor must remain within 16,350 pixels in each direction.

Set the page context for an India-facing test

Localization controls affect different parts of the request and should not be treated as interchangeable. Use the settings that match the scenario you are testing:

Rank #2
Syncwire Tripod Phone Mount, Universal Smartphone Mount Adapter | 2 Cold Shoe Mounts, 1/4"-20 Thread, 360° Rotation & 180° Tilt, Adjustable Cell Phone Clamp Holder, for Mobile Photography
  • Dual Cold Shoe Mounts: This phone tripod mount features 2 rotatable cold shoe mounts for attaching microphones, LED lights, and other accessories. Easily adjust accessory angles for photography, video recording, and vlogging.
  • Universal 1/4"-20 Thread: The smartphone tripod adapter features a standard 1/4"-20 threaded mount for compatibility with tripods, selfie sticks, monopods, cameras, stabilizers, and other compatible photography accessories.
  • 360° Rotation & 180° Tilt: Adjust your phone angle with 360° rotation and 180° tilt to switch easily between portrait and landscape orientations. The adjustable phone mount allows flexible positioning without an additional ball head.
  • Wide Phone Compatibility: This universal cell phone tripod mount fits smartphones measuring 2.16"–3.7" wide (5.5–9.4 cm), including iPhone 18 Pro Max and Samsung Galaxy S26 Ultra. For the best fit, avoid clamping directly over side buttons. With thick cases or protruding buttons, adjust the clamp position slightly higher or lower.
  • Secure, Non-Slip Grip: Thick, non-slip silicone pads help hold your smartphone securely and protect it from scratches. The adjustable phone clamp accommodates compatible devices with many types of phone cases for stable mounting during photos and videos.
  • accept_language sets the request’s Accept-Language header. Choose a language tag relevant to your test, such as en-IN; this does not force a store to offer that language.
  • time_zone sets the timezone context. Use a database name such as Asia/Kolkata when page content depends on local time.
  • Latitude and longitude emulation can provide geographic coordinates. A proxy is a separate setting. ApiFlash documents ip_location only for custom enterprise plans; it is the documented option that associates a country with the proxy IP.
  • user_agent sets the User-Agent header. Use it when testing a specific user-agent scenario, but do not treat it as proof of exact phone hardware or browser emulation.
  • Custom headers and cookies are available for request context, where your use case and authorization permit them.

Language, timezone, geolocation, proxy, cookies, and headers influence different signals. A merchant may use its own rules, account state, inventory, or bot checks, so none guarantees a particular shopper’s view. ApiFlash’s FAQ says: “While ApiFlash does its best to bypass bot protection, some strict protections may still block access.”

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.

Choose when ApiFlash captures the page

The documented default wait_until condition is network_idle. Alternatives are dom_loaded and page_loaded. If the product card, price, or navigation appears asynchronously, wait for a stable CSS selector instead of relying only on a fixed pause.

Rank #3
Sale
Metal Phone Tripod Mount 3 Cold Shoes & Arca Port, 360° Smartphone Tripod
  • 🏆【Latest Metal Phone Tripod Mount】: 360° rotation smartphone holder with 2 side cold shoe and 1 back cold shoe & 1/4" Expand Hole Design, you can attach additional LED light, microphone or other film device. It helps you film steady vlogging video for Facebook, Youtube, and platforms as well as live streaming channels.
  • 🏆【Back Cold Shoe & Two 1/4" Expand Hole Design】: There is a cold shoe on the back, which solves the problem that the wireless microphone cannot be fixed during mobile phone recording. Two 1/4" screw hole help you expand the devices you want.
  • 🏆【Standard Arca Mount on Bottom】- ULANZI Iron Man IV with a standard Aka quick release plate port, quick installation. A 1/4 screw port is added at the bottom to connect tripods. It is all aluminum metal made. Solid, Durable and Safer.
  • 🏆【Side Double Cold Shoe Design】: ULANZI ST-27 with 2 cold shoes on the side, you can mount your fill light & microphone at same time. It is be the best choice for your vlog.
  • 🏆【Extra Wide Compatibility】: Ulanzi phone tripod mount compatible with iPhone17 16 15 14 13 12/12Pro/12Pro Max/11/11Pro/11Pro Max/X/Xs/XR/Xs Max,8/7/6/6s, iPhone 6/6s plus, iphone SE,Samsung Galaxy s10s10 plus S9/S9+,S8/S8+/S7/S6/S6 edge, Note 10 9 8 5 4 3 and many other brands and models
  • wait_for accepts a CSS selector, which must appear within 15 seconds or the capture aborts. URL-encode the selector when placing it in a query string.
  • wait_until_timeout can be set from 1 to 30 seconds. If the selected condition is not met by the timeout, capture proceeds using the page state available then.
  • delay adds a pause, which can help with a short animation. ApiFlash recommends using wait_for or wait_until when possible because they are more reliable than an arbitrary delay.
  • scroll_page=true scrolls through the page before capture and can help trigger lazy-loaded content or animations. It changes the page state being captured, so use it only when that behavior is part of the test.

Example selector parameter, URL-encoded for a query string: wait_for=%5Bdata-testid%3D%22product-title%22%5D. Replace the selector with one that actually exists on the target page.

Decide whether to show banners and ads

By default, capture the page as a shopper might encounter it when the purpose is to document the visible experience. For a separate diagnostic view, ApiFlash offers:

Rank #4
Sale
Liphisy 64” Tripod for Cell Phone & Camera with Remote and Phone Holder | Sturdy & Stable Height Adjustable Multi-Angle Shot Selfie Stick Tripod for Video Recording
  • 【Sturdy and Stable】: Made of premium aluminum alloy and stainless steel, Liphisy phone tripod with remote keeps your device stay securely in place for still shots and video recording.
  • 【Multi-angle Shot】: With a max height of 64”, this tripod stand with a 210-degree rotation head and 360-degree rotation holder allows you to capture shots from any angle, catering to different photography needs.
  • 【Wireless Remote Included】: Package includes a wireless remote that connects to your cell phone easily, making it a breeze to snap photos or video recordings.
  • 【Height Adjustable】: The height of this cell phone tripod with remote can be adjusted from 17” to 64” and the easy lock mechanism makes it really easy to set up. It gives you an excellent vantage point for capturing photos and videos.
  • 【Wide Application】: Compatable with different phone and camera, this tripod is great for photography and video recording, perfect for travel and home use.
  • no_cookie_banners=true to suppress common cookie banners and popups.
  • no_ads=true to block popular ad networks and hide common ad spaces.

These options alter the screenshot; they are not neutral cleanup if the banner or ad is part of what you are evaluating. Keep an unmodified capture as the baseline, then make a separate capture with suppression enabled if useful.

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

Choose output format and cache behavior

  • format can be png, jpeg, or webp. JPEG and WebP accept a quality setting from 0 to 100.
  • fresh=true bypasses cached screenshots. By default, identical requests may return a cached image for 86,400 seconds.
  • The documented cache TTL can be set from 0 to 2,592,000 seconds (30 days). Use an appropriate freshness setting when checking rapidly changing prices, stock, or promotions.
  • response_type=json returns a JSON object containing the screenshot URL and may include extracted content links, rather than returning image bytes directly.

Compare captures without changing multiple variables

When assessing how a page changes across mobile scenarios, keep the target URL constant and vary only the condition you intend to test. Record these settings alongside each image:

  • Viewport width and height, plus user-agent scenario and scale factor.
  • Accept-Language and timezone; add geographic or proxy settings only when relevant to the test.
  • Wait condition, selector, timeout, and any delay.
  • Whether cookie-banner or ad suppression and page scrolling are enabled.
  • Cache freshness and output format.

The best viewport dimensions for your audience should come from your own device analytics or test plan; ApiFlash’s controls do not establish which dimensions represent Indian shoppers.

Best Value
SMALLRIG Universal Phone Holder Mount with Cold Shoe - 4382 | Adjustment Metal Phone Support for Tripods & Cages, for iPhone 18/17/16/15/14 & for Samsung, with 1/4" Screw+Shoe for Mic/LED
  • Universal Phone Holder: This multifunctional phone clamp can be mounted on the top of a camera or tripod through 1/4"-20 threaded hole or cold shoe at the bottom for photography, live-streaming, vlogging, interviews, etc
  • Support Landscape and Portrait Modes: The phone holder can be quick switching between landscape and portrait modes, and securely lock when rotated to 90° degrees. Two rotary joints supports 180 degrees adjustment
  • Universal Compatibility: It supports smartphones with a width of 57-88mm / 2.5-3.5in (for Samsung, for iPhone 18 / 18 Pro / 18 Pro Max / 17 /17 Pro/17 Pro Max/16/16 Pro/16 Pro Max/15/15 Pro /15 Pro Max / for iPhone 14/14 Pro /14 Pro Max / for iPhone 13 /13 Pro /13 Pro Max / for iPhone 12 Pro Max and so on)
  • Threaded Holes & Cold Shoe: Designed with well-spaced threaded holes to facilitate the installation of power bank holders (ID: 2336 / 2790). There is a cold shoe mount on top for microphone or light
  • Package Included: phone holder x 1. Please note that the load capacity is 500g
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Understand limits and troubleshoot failures

Request limits

ApiFlash documents a rate limit of 20 requests per second with a burst size of 400. Requests beyond the burst can receive HTTP 429. Repeated identical requests that fail to capture are separately limited to five attempts per hour. Successful calls expose quota headers, and ApiFlash documents a quota endpoint.

Common response codes

Response Documented meaning What to check
400 Invalid parameters or an uncapturable URL. Check the URL, parameter names and values, encoding, and whether the target can be captured.
401 Invalid or revoked access key. Verify the key and ensure it has not been revoked; keep credentials private.
402 Quota exhausted. Check quota information and the account’s available quota.
403 A requested feature is unsupported by the plan. Identify the plan-restricted option and check plan availability.
429 Rate limit exceeded. Reduce request frequency and retry after the rate limit allows.
500 Internal capture failure. Retry cautiously; if the failure persists, inspect the target and the response details.

When the image is blank, stale, or missing content

  • For a stale image, use fresh=true or adjust the TTL to suit the test.
  • For missing asynchronous content, wait for a selector that identifies the needed element or choose an appropriate load condition; check that the selector exists and can appear within the 15-second wait_for limit.
  • For lazy-loaded content, consider scroll_page=true, recognizing that it changes the capture behavior.
  • For an unexpected language or regional view, validate Accept-Language, timezone, and any intended geographic or proxy settings separately. A setting cannot guarantee merchant-specific localization.
  • If a bot check, CAPTCHA, or other strict protection blocks the capture, ApiFlash may not be able to access the page. No individual Indian ecommerce domain is established here as reliably accessible.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its one-call API can return a screenshot or PDF, and its documented controls include viewport dimensions and page waits. For India-facing pages, supply the target URL and any relevant request context supported by its API.

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

See the ScreenshotNeo API documentation. Example cURL request:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://www.example.in/product -o shot.webp

ScreenshotNeo removes cookie banners, popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.

Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Can I capture a page as a full-page image instead of a mobile viewport?

Yes. Set full_page=true for a whole-page capture; ApiFlash then ignores the supplied height.

Does a 390 by 844 capture represent a typical Indian phone?

No. Those dimensions are an illustrative viewport only. Choose sizes based on the devices and audience in your own test plan.

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.

APIApiFlashIndian Ecommercemobile screenshotswebsite screenshots

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.