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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

URL2PNG can capture a webpage as an image, but creating that image is only one part of a social media preview. You must also make the image publicly reachable, add the target platform’s required metadata to the page, and check how the shared URL renders. URL2PNG’s API uses a signed request; the steps below show how to configure a capture without treating it as a social-card editor.

What URL2PNG does—and what it does not do

URL2PNG is a website screenshot API: it captures a target webpage and returns an image. Its documentation describes capture controls such as viewport size, full-page mode, rendering delay, and injected CSS; it does not describe a step that adds social metadata to your page or guarantees that a social network will display a preview. URL2PNG describes its service as capturing snapshots of websites for use in apps.

Think of the work as two separate jobs: create an image that suits your intended card, then configure and validate the page that people will share. The exact metadata and image acceptance rules depend on the platform; consult its current official guidance rather than assuming one universal card size or format.

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.

Capture a page with the URL2PNG v6 API

1. Decide what the image should show

Choose a target URL and decide whether the image should show a framed section of the page or its entire document. For a card-like image, set an explicit viewport and inspect the resulting composition. URL2PNG documents a default viewport of 1480×1037 and viewport-only capture by default; those are API defaults, not recommended dimensions for every social platform.

#1 Best Overall
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

2. Get credentials and sign the request

The documented v6 request includes an account API key, the target URL, and a security token. URL2PNG says the token is an MD5 hash of the complete query string and your secret key. Follow the official Quickstart Guide for the precise parameter ordering, escaping, and language-specific signing example. A URL that is nested inside a query string must be encoded correctly, and changing the query string after signing can invalidate the token.

Keep the secret key on a server you control. Do not put it in browser-side JavaScript, a public page, or a mobile app bundle where visitors can extract it. The examples below show request construction conceptually; create the token using URL2PNG’s current official signing instructions before sending the request.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

3. Choose capture options

  • viewport: Set the browser viewport dimensions to control the framing. Test the composition at the dimensions you intend to use; the API documentation does not establish one universally correct social-image ratio.
  • thumbnail_max_width: Limit or scale the output width. Use it when you need a smaller image, and check that text and important details remain legible.
  • fullpage: Enable full-document capture when the whole page is needed. It defaults to false, so the default image shows only the viewport.
  • delay and say_cheese: Use the documented delay or wait-for-element options when content appears after the initial page load. Waiting longer can help with delayed content, but adds capture time; wait for a meaningful element where possible rather than relying on an arbitrary pause.
  • custom_css_url: Apply CSS to the captured page when you need a capture-specific presentation. Verify that the CSS resource is reachable by the capture service and does not remove essential content.
  • unique and TTL: Use unique to request a fresh screenshot when the page has changed and an existing cached image would be stale. The documented default TTL is 2,592,000 seconds (30 days); choose freshness deliberately and check current documentation for behavior.
  • Language and user agent: The API documents overrides for these settings. Set them only when the page’s output needs to match a particular language or browser presentation.

4. Construct, sign, and send the request

The following is request-shape pseudocode, not a complete runnable URL2PNG call: the token must be calculated from the complete query string according to the current URL2PNG documentation. Use the official example for your programming language so the parameter ordering and encoding used to calculate the token match the request you send.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
GET https://api.url2png.com/v6/API_KEY/TOKEN/ENCODED_TARGET_URL?viewport=1200x630&fullpage=false

Replace the illustrative dimensions with a tested viewport for your use case. Do not copy the placeholder route as a live signed request; create the API key and token as documented at URL2PNG’s Quickstart Guide.

Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Publish the image as a social preview

  1. Save the returned screenshot or place it in storage that serves images publicly over a stable URL. Confirm that the URL can be fetched without a login or private network access.
  2. Add the social metadata required by the platform to the page that will be shared, pointing it to the intended image URL. URL2PNG’s capture request does not itself insert these tags.
  3. Share the page URL, not merely the screenshot URL, and use the target platform’s current preview or debugging tool to inspect the result.
  4. If the preview is wrong, check the page’s metadata, image accessibility, capture freshness, and platform cache separately. A successful screenshot response alone does not prove the platform will render a card.

Cost and caching considerations

URL2PNG’s plans page says newly generated screenshots count as renders and cached loads do not count against plan usage. The service’s plans and quotas can change, so check the current URL2PNG plans page before estimating recurring use. A longer TTL can reduce repeated rendering for an unchanged page; a fresh unique request is appropriate when you need an updated image, but may count as a new render.

Common problems and fixes

  • Authentication fails: Recheck the API key, secret, complete query string, parameter ordering, and URL encoding against the official signing example. Any mismatch between the signed string and the sent request can produce an invalid token.
  • The screenshot shows an early or incomplete state: Add a suitable delay or wait for a specific element with say_cheese. Confirm that the page actually renders the expected content in the capture context.
  • The image is cropped unexpectedly: Review viewport and whether fullpage is enabled. Full-page capture changes the image’s composition and may not suit a compact preview.
  • The image is old: Consider whether the cached screenshot is still within its TTL. Use unique when a fresh capture is necessary, then account for the possibility that it is a newly generated render.
  • The social post has no preview despite a valid screenshot: Check the page’s platform-specific metadata and whether the image URL is publicly reachable, then validate the shared page with the platform’s current preview tool. URL2PNG does not guarantee social-platform display.
  • Injected CSS has no effect: Check that the CSS URL is valid and accessible to the capture process, and that the selectors target the page as it is rendered.
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 for developers. One GET request can return an image or PDF. Its documented differentiators include accepting cookie and consent banners before capture and removing more than 60 known consent platforms, newsletter popups, and chat widgets; those steps can be turned off. It also identifies bot checks, blank pages, timeouts, failed loads, and cache hits in response headers, and bills only clean shots. Its MCP server offers screenshot and page-information tools for AI agents.

Here is the cURL request pattern; replace the target URL as needed. See the ScreenshotNeo documentation for authentication and capture options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black
  • PRIVACY DISPLAY: Automatically hide your screen from those beside you. The built-in privacy display can be preset¹ to turn on when receiving notifications, typing passwords, or using specific apps
  • TYPE IT IN. TRANSFORM IT FAST: Enhance any shot in seconds on your smartphone by using Photo Assist² with Galaxy AI.³ Add objects, restore details, or apply new styles by simply typing or tapping
  • NIGHTS, CAPTURED CLEARLY: From gigs to city lights, record and capture moments after dark with clarity using Nightography so your photos and videos stay crisp and clear on your Samsung Galaxy
  • MAKE IT. EDIT IT. SHARE IT: Turn everyday moments into something personal with creative tools built right into your mobile phone, whether it’s a special contact photo, custom wallpaper, an invitation or more⁴
  • HELP THAT KEEPS UP: Stay in the moment while Now Nudge with Galaxy AI helps you respond faster and stay organized with smart suggestions⁵ that appear exactly when you need them on your phone
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo’s free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

Quick Recap

Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Activating is easy, just 3 steps.
  • ACTIVATION Promotion: Includes 1500 min, 1500 texts & 1500 MB Data + add more as you need it
  • CAMERA SYSTEM: 50MP Quad Pixel camera. Capture sharper, more vibrant photos day or night with 4x the light sensitivity.
  • PERFORMANCE: Blazing-fast Qualcomm performance. Get the speed you need for great entertainment with a Snapdragon 680 processor and 4GB of RAM.
  • 64GB built-in storage. Get plenty of room for photos, movies, songs, and apps. Made for US

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.