DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon 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×
Skip to content
World desk5 min

CaptureKit Screenshot API Example in Node.js for Indian Developers

Call CaptureKit’s screenshot endpoint from Node.js with a protected API key, choose an output format, and understand credits and common errors.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use CaptureKit from a Node.js backend with a GET request to https://api.capturekit.dev/v1/capture, the page address in the url query parameter, and your API key in the x-api-key header. PNG is the documented default; you can request JPEG, WebP or PDF instead. The documented integration is the same for Indian developers: the available sources do not establish India-specific API behavior, pricing, payment, latency or data-residency arrangements.

What you need before making the request

  • A CaptureKit account, an API key created in its dashboard at app.capturekit.dev, and credits. See the CaptureKit getting-started documentation for current account and key setup.
  • A Node.js server-side runtime with the global fetch API available. Keep the key in a server-side environment variable; never place it in browser JavaScript or a public repository. CaptureKit explicitly warns against exposing API keys in client-side code or public repositories (CaptureKit Docs, Introduction).
  • A publicly reachable page URL to capture, unless the endpoint’s current documentation specifies a supported way to access a private page.

Make a screenshot request in Node.js

This example builds the query safely with URL, sends the key as a header, checks for an HTTP error before reading the response, then saves the returned bytes as a PNG. It is a server-side request pattern based on the documented endpoint, not a claim of tested execution.

import { writeFile } from "node:fs/promises";

const apiKey = process.env.CAPTUREKIT_API_KEY;
if (!apiKey) {
  throw new Error("Set CAPTUREKIT_API_KEY in the server environment.");
}

const endpoint = new URL("https://api.capturekit.dev/v1/capture");
endpoint.searchParams.set("url", "https://example.com");
endpoint.searchParams.set("format", "png");

const response = await fetch(endpoint, {
  headers: { "x-api-key": apiKey }
});

if (!response.ok) {
  const detail = await response.text();
  throw new Error(`CaptureKit request failed (${response.status}): ${detail}`);
}

const image = Buffer.from(await response.arrayBuffer());
await writeFile("capture.png", image);
console.log("Saved capture.png");

Set the key in the process environment before starting your application, for example with your deployment platform’s secret manager. Avoid logging the key or returning it to a browser client. The exact response handling can depend on the requested output and current API behavior; consult the CaptureKit capture endpoint reference before building format-specific or S3-upload handling.

Choose an output format

Format Use it when Request setting
PNG You want the documented default, or need a lossless image for further processing. format=png, or omit format for the documented default.
JPEG/JPG Your downstream workflow accepts JPEG output. Use the format value accepted by the current endpoint reference.
WebP Your destination supports WebP and you prefer that image format. format=webp
PDF You need a document rather than a raster image. Use the PDF format value and handle the returned bytes as a PDF.

The endpoint documents PNG, JPEG/JPG, WebP and PDF, with PNG as the default. Confirm accepted spelling and response details in the endpoint reference when changing formats.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0

Credits, pricing and India-specific considerations

The capture endpoint documentation says one screenshot call costs one credit. CaptureKit’s general billing documentation distinguishes successful synchronous calls from errors, which are generally free subject to endpoint-specific exceptions; do not assume every HTTP status has identical billing treatment. This example is synchronous and does not use asynchronous capture or polling. Check the current CaptureKit pricing page for live plan allowances and prices: as listed when reviewed in 2026, the page advertises 100 free credits and paid monthly tiers, including plans with 1,000, 10,000 and 50,000 credits. These vendor-listed allowances and prices can change.

For a workload estimate, start with expected successful screenshot calls in a month, since a synchronous screenshot call consumes one credit. If you need to upload results to S3 rather than save or serve them through your own application, consult the endpoint’s documented S3 parameters. The available documentation does not establish India-specific taxes, payment methods, regional latency, or data residency; verify any of those requirements directly with the provider rather than inferring them from a global plan page.

Rank #2
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Troubleshoot common response errors

Status Documented meaning What to check
400 Bad request. Check that url is present and valid, and that any optional parameters such as format match the endpoint reference.
401 Invalid, inactive or expired key. Confirm the current dashboard-issued key is in CAPTUREKIT_API_KEY and sent in the x-api-key header. The February 2026 migration announcement says the new dashboard issues a new API key.
402 Payment required. Check available credits and the account’s current plan in the dashboard.
Rate limit Rate limit response. Reduce request frequency or apply retry handling appropriate to the current limit. The available introduction does not state a numeric limit, so do not hard-code one from this guide.
500 Internal error. Retry cautiously and inspect the response body; if it persists, contact CaptureKit support with the status and request context, omitting secrets.

CaptureKit’s introduction says asynchronous calls, where supported, have separate billing behavior and polling is free. This code does not enable asynchronous mode, so do not apply those polling terms to this synchronous request.

Migration note: use the current endpoint and header

Older examples may use a different authentication parameter or endpoint path. CaptureKit’s February 2026 migration announcement says current endpoints use the /v1/ path, the API base remains https://api.capturekit.dev, and the new dashboard issues a new key. For this example, use https://api.capturekit.dev/v1/capture and the x-api-key header—not an older access_key query parameter. See the CaptureKit documentation for current version details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Capture Card, USB Video Capture Card Device, Audio Video Converter Grabber for RCA to USB-Convert VHS Mini DV VCR Hi8 DVD to Digital, for PC TV Tape Player Camcorder, MAC Windows Vista Compatible
  • AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
  • Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
  • Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
  • Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
  • Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you want a screenshot API with cleanup steps built in, ScreenshotNeo accepts a URL in one GET request. Its clean-shot flow accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets; each step can be turned off. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, with the response indicating the page verdict and billing status in headers. ScreenshotNeo also provides an MCP server with take_screenshot, get_page_info and capture_pdf tools for AI agents.

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo API documentation for request options and response handling. ScreenshotNeo includes 1,000 screenshots per month free with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Does CaptureKit have a separate API setup for India?

The available CaptureKit documentation does not establish an India-specific setup or regional API behavior; the documented Node.js request pattern is the same.

Rank #4
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.

Can I put the CaptureKit API key in frontend JavaScript?

No. Keep it server-side in an environment variable and send it in the x-api-key header.

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.

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.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

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.