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

ApiFlash can capture a webpage and return an image, but it does not automatically design a branded social card from a title and theme. To create a deliberate Open Graph preview, first render the card on a webpage, capture it with ApiFlash, publish the resulting image at a public URL, and set that URL as the page’s og:image.

Choose what ApiFlash should capture

ApiFlash’s /v1/urltoimage endpoint renders a supplied URL in Chrome and returns a screenshot. The key design decision is what page to give it:

  • Capture an existing page: quickest when that page already looks like the preview you want. The output reflects its browser layout, so it may not resemble a compact social card.
  • Build a dedicated card page: gives you control over composition, typography, colors, and layout. Create a route that renders just the preview at your chosen dimensions, then capture that route.

The dedicated-page approach is usually more consistent for branded previews. Make the route reachable by ApiFlash; if it requires authentication, use a supported authentication setup and keep credentials out of public client-side code.

Capture the page with ApiFlash

The endpoint is https://api.apiflash.com/v1/urltoimage. Requests support GET query parameters or POST form data. Supply a valid access key and a complete target URL beginning with https:// or http://. Encode query values when needed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
DJI Osmo Pocket 3 Creator Combo, Vlogging Camera with 1'' CMOS & 4K/120fps
  • Capture Stunning Footage - Osmo Pocket 3 vlogging camera features a 1-inch CMOS sensor and records in 4K resolution at an impressive 120fps. Capture breathtaking night views and sunsets with enhanced clarity.
  • Effortlessly Frame Your Shots - Get the ideal composition with Osmo Pocket 3's expansive 2-inch touch screen that rotates for both horizontal and vertical shooting.
  • Ultra-Steady Footage - Say goodbye to shaky videos! Osmo Pocket 3's advanced 3-axis mechanical stabilization delivers superb stability. Enjoy smooth footage while dancing, chasing pets, or hiking.
  • Create Captivating Vlogs With ActiveTrack 6.0 - Stay effortlessly in focus as you record on the go. Set Osmo Pocket 3 up on a tripod and jump, dance, or spin, but remain center-frame.
  • Fast and Accurate Focusing - Osmo Pocket 3 digital camera locks onto your subject for sharp, clear footage. Whether filming action-packed scenes or still shots, it ensures every detail is captured.

Example: download a PNG using cURL

Replace the key and target URL with your own. This example uses the documented endpoint and requests a PNG screenshot:

curl -G "https://api.apiflash.com/v1/urltoimage" 
  --data-urlencode "access_key=YOUR_API_KEY" 
  --data-urlencode "url=https://example.com/social-card" 
  --data-urlencode "format=png" 
  -o preview.png

Keep the access key on a server you control. Do not put a private key in JavaScript delivered to every site visitor. ApiFlash’s guides index includes material on placing a proxy in front of the API, including Nginx and Cloudflare Worker approaches: ApiFlash guides. Check the guide and current API reference for implementation details.

GET and POST options

GET requests put parameters in the URL; POST requests send them as form data. Either way, URL-encode values such as a target URL that contains its own query string. The default response is image data, so save the response body as an image file rather than trying to parse it as JSON.

Rank #2
Sale
Lmzour 4K Vlogging Camera, Pocket Digital Camera, 330° Rotating Lens
  • 🎥 【4K Digital Camera for Vlogging-Made for Beginners & First-Time Content Creators】Shoot stunning 4K video and capture 75MP photos for clear, shareable content. Create eye-catching videos without complicated settings. This easy-to-use camera is perfect for YouTube, TikTok, travel vlogs, and daily recording. Fast autofocus and a wide-angle lens ensure sharp and stable footage
  • 🌍【 Portable Pocket Camera for Travel & Daily Use】Compact and lightweight, this portable camera easily fits in your pocket—perfect for travel, vacations, outdoor trips, hiking, and everyday life recording. Capture high-quality moments anytime, anywhere
  • 🎬【Perfect for Solo Vlogging】Film yourself with confidence using the unique 330° rotating lens. Create travel vlogs, daily videos and outdoor content with natural-looking framing and less camera adjustment. Also supports time-lapse, slow motion and interval shooting for more creative storytelling.
  • 📱【WiFi Digital Camera for Content Creators】Built-in WiFi lets you wirelessly transfer photos and videos to your smartphone for quick editing and sharing. Perfect for YouTube, TikTok and social media content.
  • 📦 【 Vlogging Camera Kit with Accessories & Warranty】Comes with essential accessories so you can start filming immediately—no extra setup needed. Includes a camera, 16GB TF card, mini tripod, charging cable, wrist strap, and travel carrying bag. A perfect beginner camera kit, backed by 24/7 support and a 1-year warranty

To receive a JSON response containing a screenshot link instead, set response_type=json. JSON mode can also return extracted HTML or text when requested; consult the ApiFlash API documentation for the exact parameter names and current response structure.

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

Set capture dimensions, format, and readiness

ApiFlash documents a default viewport of 1920 by 1080, JPEG output, image response, and a cache TTL of 24 hours. These are capture defaults, not Open Graph protocol requirements. Set the viewport to match the page you designed; the screenshot depends on both viewport settings and the page’s responsive layout.

  • Format: JPEG, PNG, and WebP are supported. Choose a format that your publishing workflow and intended consumers handle. JPEG and WebP support a quality setting.
  • Viewport: width and height set browser viewport dimensions. The API documents a combined pixel-area limit, so verify the current limits before requesting unusually large captures.
  • Full-page capture: full_page=true captures the full page; when enabled, the height parameter is ignored. For a social card, a fixed viewport or an element capture is generally a better match than a long page screenshot.
  • Element capture: element selects the first element matching a CSS selector. Use it to capture a card within a larger page, and ensure the selector is unique enough to target the intended element.

Pages that render content asynchronously need a readiness condition. ApiFlash recommends wait_for or wait_until where suitable instead of relying on a fixed delay. The documented delay range is 0–10 seconds. A wait_for selector that does not appear within 15 seconds aborts with an error. Prefer a selector that indicates the card is fully rendered, rather than an arbitrary long delay.

Rank #3
Sale
DJI Osmo Pocket 3 Vlogging Camera with 1'' CMOS & 4K/120fps Video
  • Capture Stunning Footage - Osmo Pocket 3 vlogging camera features a 1-inch CMOS sensor and records in 4K resolution at an impressive 120fps. Capture breathtaking night views and sunsets with enhanced clarity.
  • Effortlessly Frame Your Shots - Get the ideal composition with Osmo Pocket 3's expansive 2-inch touch screen that rotates for both horizontal and vertical shooting.
  • Ultra-Steady Footage - Say goodbye to shaky videos! Osmo Pocket 3's advanced 3-axis mechanical stabilization delivers superb stability. Enjoy smooth footage while dancing, chasing pets, or hiking.
  • Create Captivating Vlogs With ActiveTrack 6.0 - Stay effortlessly in focus as you record on the go. Set Osmo Pocket 3 up on a tripod and jump, dance, or spin, but remain center-frame.
  • Fast and Accurate Focusing - Osmo Pocket 3 digital camera locks onto your subject for sharp, clear footage. Whether filming action-packed scenes or still shots, it ensures every detail is captured.

Other documented controls include CSS or JavaScript injection, cache TTL, and forcing a fresh capture. Their availability and precise parameter syntax should be checked in the live API reference, since API parameters and plan restrictions may change.

Store the screenshot at a public image URL

When ApiFlash returns image bytes, save them to storage your site can serve publicly, such as your application’s media storage or a suitable object store. Set the resulting stable, fetchable URL in the page metadata. If you use JSON mode, its screenshot link may fit your publishing workflow, but verify its access and persistence characteristics before relying on it as the long-term image URL.

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

The image must be retrievable by the systems that read your page’s metadata. A local file path, private storage URL, or URL that requires a logged-in browser will not serve as a dependable public preview image.

Rank #4
Sale
2026 Upgraded 4K Digital Camera 64MP WiFi 180° Flip Screen Autofocus, Black
  • 【4K Video & 64MP Photos】——Capture sharp Ultra HD footage and detailed high-resolution images with this 4K digital camera, designed for everyday shooting and creative recording. It works perfectly as a 4K digital camera for photography, helping you preserve travel memories, daily life, and special moments with clear and vibrant results.
  • 【WiFi Sharing Made Easy】——Built-in WiFi allows remote control, live preview, and fast wireless transfer to your smartphone, so you can edit and share instantly without extra cables. Whether posting online or creating content, it functions smoothly as a vlogging camera for YouTube and a convenient tool for modern creators.
  • 【180° Flip Screen for Selfies & Vlogs】——The 180° flip screen makes switching between selfies and regular shooting effortless, giving you flexible angles for travel videos, social media clips, and daily recording. Designed with simplicity in mind, it delivers an easy point and shoot digital camera experience for users of all skill levels.
  • 【Beginner-Friendly Autofocus】——Fast autofocus and intuitive button layout help reduce guesswork, allowing new users to capture sharp images confidently. This makes it a reliable digital camera for teens and beginners who want to start shooting right away without complicated manual settings.
  • 【Small, Compact & Travel Ready】——Lightweight and easy to carry, this small digital camera features a portable compact camera design that fits naturally into everyday travel and daily use. Ideal for spontaneous shooting, outdoor trips, or casual photography wherever you go.

Add Open Graph metadata to the shared page

The Open Graph protocol identifies four required properties for every page: og:title, og:type, og:image, and og:url. See the Open Graph protocol specification. Put them in the page’s HTML head and use the public URL of the captured image for og:image.

<meta property="og:title" content="Example article title">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/article">
<meta property="og:image" content="https://example.com/images/article-preview.png">
<meta property="og:image:alt" content="A description of the preview image">

Use a type appropriate to the page; the example’s website value is not mandatory for every kind of content. Optional image properties include og:image:width, og:image:height, og:image:type, og:image:secure_url, and og:image:alt. The protocol does not define one universal image dimension for all social platforms. Choose dimensions for your design and the consumers you care about, and do not mistake the ApiFlash viewport setting for a protocol-mandated card size.

Verify the image and diagnose problems

  1. Inspect the saved capture. Open the file and check that the card is fully rendered, legible, and composed as intended.
  2. Fetch the published image URL. Confirm it is public and returns the image rather than an HTML error, redirect to a login page, or expired link.
  3. Inspect the shared page’s HTML. Confirm the four required Open Graph properties are present in the rendered page head, and that og:image points to the published image.
  4. Refresh the capture if the page changed. ApiFlash caches screenshots; use its documented fresh option to force a new capture when appropriate.
  5. Allow for separate preview caching. ApiFlash’s screenshot cache is separate from the metadata or image cache maintained by a social platform. A fresh ApiFlash capture does not guarantee that a platform immediately refetches the changed image.

Common errors and fixes

  • Invalid or missing key: check that the request includes a valid access key and that it is being sent to the documented endpoint.
  • Target URL fails to load: include the full scheme, check that the URL is reachable from the capture service, and verify redirects or authentication requirements.
  • Selector wait times out: make sure the selector exists in the rendered page and appears within the documented 15-second wait limit; target a stable element or adjust the page’s rendering behavior.
  • Card is cut off or unexpectedly scaled: compare the card’s CSS dimensions with the requested viewport. For a page capture, layout may change at different viewport sizes; consider capturing a dedicated card route or the card element.
  • Old screenshot appears: check ApiFlash’s cache settings and request a fresh capture when needed. If the image itself is current but the shared preview is not, the social platform may still be using its own cache.
  • Preview image is missing for consumers: test the image URL without a logged-in session and ensure the page’s og:image value is an absolute public URL.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. A single request can capture a page as PNG, JPEG, WebP, or PDF; it is an alternative if you want an API workflow with built-in cleanup. It does not design a card for you, so point it at a page that already renders the intended preview.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
CGXUED Vlogging Camera, Mini Camcorder, Portable Handheld Video Camera
  • 【Mini Camcorder, Pocket Size Design】: Measuring only 5.35 × 1.56 inches, this handheld video camera easily fits in your pocket or bag. Designed for travel, daily recording, and spontaneous moments, it delivers a simple way to capture life anywhere.
  • 【One-Button Recording, Ready Out of the Box】: Start recording instantly with no app download, no QR code, and no complicated setup. Includes a 32GB memory card, making this mini video camera perfect for beginners, travelers, and everyday creators.
  • 【7-Hour Long Battery Life】: Built-in 2000mAh rechargeable battery supports up to 7 hours of continuous recording. Ideal as a travel camcorder, handheld video camera, outdoor recorder, or long-form vlogging camera without frequent charging.
  • 【180° Rotating Lens for Vlog & Self Recording】: 180° Rotating Lens for POV & Self-Recording((manual rotation required),Capture POV shots, selfies, and hands-free style videos with the flexible rotating lens. A compact alternative to bulky cameras for content creators, travelers, and anyone who enjoys simple everyday recording.
  • 【Designed for Everyday Moments】:While it is not designed to deliver DSLR-level image quality, its charm lies in capturing effortless and fun moments.This compact camera is made for simple and fun everyday recording, travel memories, and creative moments. For users looking for an easy-to-carry camera rather than bulky professional equipment. CGXUED products include an 18-month warranty and lifetime technical support. Have any questions? Just contact customer service!

Its capture flow accepts cookie or consent banners and removes 60+ known consent platforms, newsletter popups, and chat widgets before the screenshot; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. An MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

For an Open Graph card page already deployed at your own URL, this cURL request saves a WebP capture:

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

See the ScreenshotNeo documentation for request options. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo to try the free monthly allowance.

Frequently Asked Questions

Does ApiFlash generate an Open Graph design from text alone?

No. It captures a rendered webpage; create the design on a page or element first.

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

Does Open Graph require a particular image width and height?

No universal dimensions are specified by the Open Graph protocol; dimensions are a design and platform choice.

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.