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

To create a page-specific social media preview with APITemplate.io, build an image template, enable its Direct URL option, and pass values for named template elements in the generated URL. Add that URL to the page’s og:image metadata. APITemplate.io also offers a REST API for applications that prefer a POST request and structured data.

How the Direct URL method works

Direct URL generation turns a reusable APITemplate.io image template into an image URL. The URL’s query parameters set dynamic template elements, such as a headline or background image. Put the resulting URL in the page’s Open Graph image tag so a social platform can use it when the page is shared.

APITemplate.io’s Direct URL documentation says each page can have a unique preview image by changing the query parameters. This approach is useful when you want to generate a share image from page data without first making a separate API request from your application.

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

Set up an image template and Direct URL

  1. Create an image template. In APITemplate.io, create a template and use its visual editor to lay out the image. Add the text, images, and other elements you want in the preview. Name elements that need dynamic values clearly, for example headline or background. Choose a preset size or enter custom dimensions.
  2. Enable Direct URL. Open the template’s Direct URL tab, create an auth code, and configure its quota and expiration before saving. Keep the auth code under your control: anyone who can use the URL may be able to generate images within the settings you configured.
  3. Check the element properties. Use the Direct URL tab’s URL-generation aid to see the available element names and properties. Common examples include headline.text for text and background.src for an image source.

Build a dynamic image URL

The documented URL pattern is:

https://rest.apitemplate.io/v2/create-image-url/{template_id}?auth={auth_code}&{element.property}={value}

Replace the template ID and auth code with those for your template. Then provide query parameters for the named elements you want to change. For example, a text element named headline can receive headline.text=Summer+Sale. Encode spaces and other reserved characters correctly; the plus sign represents a space in a query string. For image elements, pass the appropriate property, such as src, and a valid image URL.

Use the exact endpoint and parameter names shown in the current Direct URL documentation and in your template editor. An older APITemplate.io blog post refers to a past API base URL; the current Direct URL instructions use rest.apitemplate.io.

Add the generated image to the page

Place the generated image URL in the page’s HTML head as the Open Graph image value:

Rank #2
Weekly Productivity Planner - 8.5" x 11" Dashboard Desk Notepad Has 6 Focus Areas to List Tasks for Goals, Projects, Clients, Academic or Meal-Organize Your Daily Work Efficiently, 54 Weeks, Green
  • BOOST YOUR PRODUCTIVITY - This undated weekly productivity planner notepad focus on the important work and get organized. Weekly to do list notepad allowing you to categorize and prioritize your tasks effectively. Whether you're a small business owner, project manager, freelancer, academicians or master multitasker, the weekly to do list pad will be your new favorite daily office productivity tool.
  • UNDATED WEEKLY PLANNER - This weekly planner start any time with 54 weeks, Weekly planner notebook has plenty of space to write your goal plan, work plan, student plan or personal schedule, keep track of priorities, and write notes on the back. This versatile planner allows you to stay organized in 2026, 2027, or even as far ahead as 2028!
  • FEATURES - Weekly Theme and Highlights for at-a-glance planning Top 3 Priorities for the week 6 Focus Areas to segment and list tasks for goals, projects, or clients Daily Tracker for healthy habit-tracking and routine-tracking.
  • HIGH QUALITY - This weekly desk planner size of 8.5" x 11", it offers ample space for writing and planning your tasks, just the perfectly size to fit in your backpack. Is used to high quality 100gsm pure white paper, elastic band and a back pocket for extra space.
  • FUNDTIONAL DESIGN - This weekly deskpad planner will completely change how you structure your work: by segmenting your tasks by area and tracking the most important details, you'll feel less scattered and more organized.We believe in helping you be fulfilled with your life and productive at the same time by using a weekly to do list notepad.
<meta property="og:image" content="https://rest.apitemplate.io/v2/create-image-url/TEMPLATE_ID?auth=AUTH_CODE&amp;headline.text=Summer+Sale">

Replace the example values with your real template ID, auth code, and dynamic content. Add the tag through your site’s usual metadata mechanism so that it appears in the rendered page head. Give each page its own values when you need distinct previews.

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

Before publishing, inspect the rendered page and test its share preview with the intended platform’s own preview or debugging tool. Social platforms can fetch and cache metadata differently; the reviewed APITemplate.io documentation does not establish platform-specific refresh timing or crawler requirements. Check current requirements for the platforms you target rather than assuming one image size or cache rule applies everywhere.

Rank #3
Sale
Taja Weekly To Do List Notepad, Undated Weekly Planner Pad, 8.5" x 11"
  • Unleash Your Productivity Potential - Our weekly to do list notepad provides a complete system for managing your tasks. It includes a checklist, a top priority section, a low priority section, and a follow-up section, allowing you to categorize and prioritize your tasks effectively.
  • Undated Weekly Planner - Embrace the freedom of an Undated Weekly Planner with 52 weeks of undated planning pages. No more wasted spaces or skipped dates – start your planning journey exactly where you left off, any time you want. This versatile planner empowers you to master your schedule for the entire year.
  • Functional Design - Our notepad features premium quality covers and twin-wire binding, providing durability and flexibility for smooth page-turning. The sturdy cardboard backing ensures stability on any surface, making it a reliable companion for your daily tasks.
  • High-Quality Design - Our weekly desk planner is crafted with attention to detail, using premium quality 60-pound smooth white paper and a sturdy chipboard backing. Measuring at a convenient size of 11 X 8.5 inches, it offers ample space for writing and planning your tasks. The clean and elegant design adds a touch of sophistication to your workspace.
  • Versatile and Long-Lasting - Our desk planner is suitable for various uses, including office, home, school, or personal organization. It is made with high-quality paper to ensure durability throughout the year, making it a reliable companion for all your planning needs.

When to use the REST API instead

Use the REST image API when your backend or application should submit structured data to a template, rather than embedding a Direct URL in page metadata. APITemplate.io documents a POST to /v2/create-image?template_id=... with an X-API-KEY header and JSON overrides for dynamic elements; the response includes a download_url. See the provider’s Image Template Editor documentation for the request details.

The Direct URL is a GET-style image URL with its own configured auth code. It is not the same request pattern as the authenticated REST POST. APITemplate.io also lists integrations including Zapier, Make, Bubble.io, Airtable, and n8n for workflow-based generation; see its first-image guide.

Cache behavior and practical checks

APITemplate.io says generated images are cached and regenerated when the query parameters change or the template is updated. Its Direct URL documentation does not state a cache lifetime, so do not assume a particular duration. If a preview appears stale, confirm the page is emitting the intended URL and values, then use the target platform’s preview tool to check what it currently fetches.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Confirm the template ID, auth code, and element-property names match the template.
  • Check that dynamic values are URL-encoded and image-source URLs are valid.
  • Inspect the final page HTML head to ensure the expected og:image value is present.
  • Review the image itself and the target social platform’s current image guidance before relying on it in a live post.
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

If your goal is to capture an existing webpage as an image rather than compose a designed social card from template elements, ScreenshotNeo offers a screenshot API. One GET request returns a PNG, JPEG, WebP, or PDF. For example, this cURL request saves a screenshot as WebP; see the ScreenshotNeo API documentation for options and response details.

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

ScreenshotNeo removes cookie/consent banners, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides screenshot tools for AI agents, and the free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up free for ScreenshotNeo.

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.