October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk7 min

URL2PNG API Setup in WordPress for Website Thumbnails

Generate signed URL2PNG v6 screenshot URLs server-side for WordPress thumbnails, understand the API options, and avoid relying blindly on a legacy plugin listing.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a new WordPress integration, generate a URL2PNG v6 screenshot URL on the server and render it as an image in your theme or plugin. Keep the URL2PNG secret off the public page, and build the signature from exactly the same query string you send. The available URL2PNG WordPress plugin is a legacy listing last updated in 2014, so verify it on staging rather than assuming it works with current WordPress.

Choose a WordPress integration route

Route What the available documentation establishes Best fit
Legacy URL2PNG Screenshots plugin The directory listing documents a theme-callable PHP function, getScreenshot(). It lists version 1.0.1, 10+ active installations, last updated February 15, 2014, and compatibility tested up to WordPress 3.2.1. Those are historical listing details, not evidence of current compatibility. Plugin listing. Only if you can install and validate it safely on a staging copy of your site.
Custom v6 API integration URL2PNG’s current guide documents the v6 URL format and signature contract, but the sources do not prescribe a supported modern WordPress implementation or caching/security architecture. URL2PNG API documentation. A new integration where you can manage credentials, signing, output markup, and refresh behavior yourself.
Cloudinary URL2PNG add-on Cloudinary documents an integration that requires a Cloudinary account and add-on registration. Generated URLs by default require signing or eager generation unless unsigned add-on transformations are enabled. Cloudinary URL2PNG documentation. A site already using Cloudinary that prefers to manage the workflow there.

The WordPress Shortcode API lets plugin developers create dynamic content editors can insert into posts and pages, but the URL2PNG Screenshots listing documents a PHP theme function, not a shortcode for that plugin. See the WordPress Shortcode API if you choose to build your own shortcode.

Generate a URL2PNG v6 request URL

The documented request format is https://api.url2png.com/v6/{APIKEY}/{TOKEN}/png/?{query_string}. URL2PNG assigns the API key during signup; the guide says it begins with “P”. The token is the MD5 hash of the entire query string and the secret key. The target website URL must be URL-encoded. Use the precise encoding and ordering prescribed by the official v6 guide: if the text hashed differs from the query string actually sent, the signature can fail.

The following PHP example illustrates the signing contract for a server-side WordPress integration. Confirm the exact parameter syntax and encoding requirements against URL2PNG’s guide before deployment. Keep the secret in server configuration, not in JavaScript, page HTML, or a public repository.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
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.
<?php
// Configure these outside the public web root or through your host's
// protected environment-variable mechanism.
$apiKey = getenv('URL2PNG_API_KEY');
$secret = getenv('URL2PNG_SECRET');

$target = 'https://example.com/';
$params = [
    'url' => $target,
    'viewport' => '1480x1037',
    'fullpage' => 'false',
    'thumbnail_max_width' => '600',
    'ttl' => '2592000',
];

// Build the query exactly once, then use that same string for both
// the signature input and the request URL. Verify the required encoding
// and signing sequence with the current URL2PNG v6 guide.
$query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);
$token = md5($query . $secret);
$imageUrl = 'https://api.url2png.com/v6/' . rawurlencode($apiKey)
    . '/' . $token . '/png/?' . $query;

// Escape the generated URL before placing it into HTML.
echo '<img src="' . htmlspecialchars($imageUrl, ENT_QUOTES, 'UTF-8')
    . '" alt="Website screenshot">';

This is an implementation pattern, not a URL2PNG-certified WordPress plugin recipe. The URL2PNG guide is authoritative for the signing input, parameter names, and encoding. Do not change the order or representation of query construction between hashing and sending; if you alter parameters, regenerate the token from the final query.

Set capture options for thumbnail use

Keep the first request simple, then add options only when they solve a real display or freshness requirement. The API guide documents these controls and defaults:

Rank #2
Sale
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.
Option Effect for a WordPress thumbnail Documented default or note
viewport Sets the browser viewport dimensions used to capture the target page. 1480×1037 pixels.
fullpage Attempts to capture the whole document rather than only the visible viewport. Off by default; a full-page result may be less suitable for a compact thumbnail.
thumbnail_max_width Constrains the output image width to suit the space in your WordPress layout. Choose a value appropriate to the rendered thumbnail; no default is stated here.
unique Varies the screenshot request when you need to force a fresh capture rather than reuse a cached result. Use a changing value only when refresh behavior is intentional.
delay Waits after document readiness and asset loading, useful when a target renders important content shortly afterward. Longer waits can increase capture time; use only as needed.
ttl Sets how long the capture may be cached. 2,592,000 seconds (30 days).
Custom CSS Applies styles to the captured page, where you need to adjust its appearance. Follow the API guide’s parameter format.
User agent and accepted language Lets the capture request specify browser identity and language preference. Follow the API guide’s parameter format.

These are the values and options documented in URL2PNG’s guide at the time represented by the available documentation. Check the live guide before relying on a default. For a thumbnail grid, a viewport capture and a width limit are a sensible starting point; full-page capture is useful only when the entire long page must be visible in the image.

Render the image in WordPress

Custom theme or plugin integration

Generate the signed image URL in PHP, then output it in the relevant template or plugin-rendered content. Escape the URL for HTML and provide meaningful alternative text. For a repeated set of thumbnails, avoid regenerating signatures or making a separate capture request on every page view unless live freshness is required; choose a storage or caching approach that fits your hosting setup. The reviewed API and WordPress sources do not define a supported WordPress caching architecture, so treat this as your implementation decision.

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.

Legacy plugin function

The plugin listing describes getScreenshot('Website URL', WIDTH, HEIGHT, IMAGETAG, CLASS) as a theme function. Its example uses the fourth argument as true to return an image tag. The historical listing does not establish present-day installation safety or compatibility. If you test it, do so on staging, inspect the generated output, and confirm it works with your active WordPress and PHP versions before putting it on a public site.

Editor-insertable shortcode

If editors need to insert screenshots into post content, a custom shortcode can call your own server-side implementation. Register it through a plugin using WordPress’s Shortcode API; validate shortcode attributes, escape output, and keep API credentials in server-side configuration. Do not assume the URL2PNG Screenshots plugin provides this shortcode: its listing documents the theme function only.

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

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP, or PDF; its documented capture options include viewport and full-page behavior, making it an alternative when you would rather request the image than manage a browser setup. The code below follows the documented API pattern; see the ScreenshotNeo API documentation for request options.

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

ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are never billed. Its MCP server gives AI agents tools to take screenshots. The Free plan includes 1,000 screenshots per month with no card, and paid plans start at $5 for 3,000. Sign up for the free plan.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common problems

  • Signature or authorization failure: Compare the exact query string used for the MD5 input with the query string sent in the URL. Check encoding, parameter spelling, ordering, API key, and secret against the current URL2PNG v6 guide.
  • Screenshot shows the wrong page or an error: Confirm the target URL is correctly encoded and publicly reachable by the capture service. Test with a simple page URL before adding optional parameters.
  • Important content is missing: If the page renders content after initial readiness, try an appropriate documented delay. Use fullpage=true only if content below the fold belongs in the thumbnail.
  • Thumbnail is too large for the layout: Set thumbnail_max_width and ensure the WordPress markup or CSS constrains the displayed image as intended.
  • Old image keeps appearing: Review the documented ttl and use the unique option when a deliberate refresh is needed. A changing unique value on every request can defeat reuse and increase unnecessary capture work.
  • Plugin function is unavailable or breaks the site: The listing is old and offers no evidence of current compatibility. Disable it on staging, restore the previous theme/plugin state, and use a maintained custom integration if the legacy code cannot be validated.
  • Shortcode is printed as text: The legacy plugin listing documents a theme function rather than a shortcode. Register a shortcode in your own plugin or call the function from a theme template.

Performance, reliability, and cost decisions

For a thumbnail that changes rarely, a longer cache lifetime reduces repeated capture work but can leave the image stale. For frequently updated pages, choose a shorter lifetime or an explicit refresh strategy. The documented default TTL is 2,592,000 seconds (30 days); URL2PNG’s guide describes the API settings, but the sources do not establish current API pricing, capture latency, service-level reliability, or a WordPress-specific storage recommendation. Confirm those requirements with the provider and your own hosting constraints before launch.

Best Value
Sale
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.

Protect the URL2PNG secret as you would any server credential. A signed image URL placed in an img element is visible to visitors, even when the signing secret is not; keep the secret and token-generation code on the server, and avoid embedding the secret in client-side scripts or editor-authored content.

Frequently Asked Questions

Does URL2PNG Screenshots provide a WordPress shortcode?

The plugin listing documents the theme function getScreenshot(), not a shortcode. A shortcode would need to be implemented separately with WordPress’s Shortcode API.

What is URL2PNG’s documented default cache lifetime?

The v6 API guide documents a default TTL of 2,592,000 seconds, or 30 days.

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.

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
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.