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.

Use Figma’s GET https://api.figma.com/v1/images/{file_key} endpoint. Pass the frame or layer’s node ID in ids, authenticate with a token that has file_content:read, and download the temporary URL returned in the images map immediately. The endpoint can render PNG, JPG, SVG, or PDF, with scale, version, and bounds controls.

What the Figma image endpoint does

The Figma REST API renders nodes from a file rather than taking a browser photograph. A node can be a frame, component, group, text layer, or another renderable object. The request URL is:

GET https://api.figma.com/v1/images/{file_key}

file_key identifies the Figma file. The ids query parameter identifies one or more nodes. Figma returns an images object whose keys are the requested node IDs and whose values are temporary image URLs.

This is usually preferable to automating a logged-in browser: it is deterministic, supports pinned file versions, and can render several nodes in one request. It does not reproduce browser-only behavior such as hover states or interactive animations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
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.

Prerequisites and permissions

  • A Figma file key and node ID.
  • A personal access token or OAuth 2.0 access token with the file_content:read scope.
  • Permission for that token’s user or application to access the file.
  • A program or command-line tool able to make HTTPS requests and download the returned URL.

Missing scope and missing file permission are different problems: a valid token can still receive an authorization error when the file is not shared with its owner.

Find the file key and node ID

A shared design URL commonly resembles https://www.figma.com/design/FILE_KEY/File-name?node-id=12-34. Copy FILE_KEY from the path. Copy the value after node-id= and convert the URL’s hyphen notation to the node-ID notation expected by the API when necessary (for example, 12-34 becomes 12:34).

Do not assume the visible frame name is an ID. IDs are stable identifiers assigned by Figma. For a batch export, collect comma-separated IDs such as 12:34,56:78 and let your HTTP client URL-encode the value.

Minimal PNG request with cURL

Set your token in an environment variable so it does not become part of shell history or source control:

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.
export FIGMA_TOKEN='your-token'
curl -G "https://api.figma.com/v1/images/FILE_KEY" 
  -H "X-Figma-Token: $FIGMA_TOKEN" 
  --data-urlencode "ids=12:34" 
  --data-urlencode "format=png" 
  --data-urlencode "scale=2"

The JSON response contains an image URL. Download that URL as a second request:

curl -fsSL "RETURNED_IMAGE_URL" -o frame.png

For automation, parse the JSON rather than copying the URL manually. The URL is not a permanent asset: Figma says image assets expire after 30 days.

Rank #2
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.

Python: request, validate, and download

This complete example renders one node, checks the HTTP response, rejects a null image value, and saves the bytes:

import os
import requests

file_key = "FILE_KEY"
node_id = "12:34"
token = os.environ["FIGMA_TOKEN"]

params = {
    "ids": node_id,
    "format": "png",
    "scale": 2,
}
headers = {"X-Figma-Token": token}

response = requests.get(
    f"https://api.figma.com/v1/images/{file_key}",
    params=params,
    headers=headers,
    timeout=60,
)
response.raise_for_status()
data = response.json()

image_url = data.get("images", {}).get(node_id)
if not image_url:
    raise RuntimeError(f"Figma returned no renderable image for {node_id}")

image = requests.get(image_url, timeout=60)
image.raise_for_status()
with open("frame.png", "wb") as output:
    output.write(image.content)

Use a fresh request when you need a fresh URL. Store the downloaded file, not the URL.

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

Node.js: render and save a node

Node.js 18 or later includes fetch and AbortSignal.timeout. This script uses the native APIs and writes a PNG:

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

const fileKey = "FILE_KEY";
const nodeId = "12:34";
const token = process.env.FIGMA_TOKEN;
if (!token) throw new Error("Set FIGMA_TOKEN");

const query = new URLSearchParams({
  ids: nodeId,
  format: "png",
  scale: "2"
});
const apiResponse = await fetch(
  `https://api.figma.com/v1/images/${fileKey}?${query}`,
  {
    headers: { "X-Figma-Token": token },
    signal: AbortSignal.timeout(60000)
  }
);
if (!apiResponse.ok) {
  throw new Error(`Figma API ${apiResponse.status}: ${await apiResponse.text()}`);
}
const payload = await apiResponse.json();
const imageUrl = payload.images?.[nodeId];
if (!imageUrl) throw new Error(`No image returned for ${nodeId}`);

const imageResponse = await fetch(imageUrl, {
  signal: AbortSignal.timeout(60000)
});
if (!imageResponse.ok) {
  throw new Error(`Image download ${imageResponse.status}`);
}
await writeFile("frame.png", Buffer.from(await imageResponse.arrayBuffer()));

Choose format, scale, and bounds

Parameter Values or default When to use it
ids Comma-separated node IDs Render one node or batch several nodes in one call.
format jpg, png, svg, or pdf PNG is the normal screenshot format; JPG is smaller for photographic content; SVG remains vector and selectable; PDF suits document output.
scale Numeric 0.01–4 Increase resolution for retina assets, but check the 32-megapixel export limit.
version Figma version ID Pin a historical version for reproducible builds. Omit it for the current file.
contents_only Defaults to true Set false when overlapping content outside the node’s contents must be included; processing can take longer.
use_absolute_bounds Boolean Use the complete node dimensions, including empty surrounding space. This is useful for text nodes.
SVG controls svg_outline_text, svg_include_id, svg_include_node_id, svg_simplify_stroke Control text fidelity, inspectability, IDs, and stroke simplification.

At scale 4, a large frame can exceed 32 megapixels. Figma states that larger exports are scaled down, so calculate width × height × scale² before requesting an unusually large image. If visual consistency matters more than editable text, outlining SVG text avoids dependence on the receiving renderer. Keeping text as SVG elements preserves selection but can produce different typography in another rendering engine.

Batch rendering and response validation

Request several nodes in one call:

curl -G "https://api.figma.com/v1/images/FILE_KEY" 
  -H "X-Figma-Token: $FIGMA_TOKEN" 
  --data-urlencode "ids=12:34,56:78,90:12" 
  --data-urlencode "format=png"

Always validate both layers of success:

  1. Check the HTTP status of the API request.
  2. Read the images object.
  3. Check every requested ID independently. A successful response can contain null for one node.
  4. Download each non-null URL and check the download status and content.

A null value means that node did not render, commonly because the ID is invalid or the node has no renderable content. Do not silently skip it in a publishing pipeline; report the specific ID.

Current renders versus reproducible renders

Omitting version follows the file’s current state. That is convenient for previews but means a later run can produce different pixels. Supplying a Figma version ID ties the render to a known revision, which is better for documentation, visual regression tests, and release artifacts. Download the result during the job even when you pin a version, because the returned image URL still expires after 30 days.

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.

Raster or vector: which output should you choose?

PNG or JPG

Raster formats are straightforward for web pages, tickets, and social previews. PNG keeps transparency and sharp interface text; JPG generally produces smaller files but is lossy. Scale controls the pixel dimensions.

SVG

SVG keeps vectors editable and text selectable. Use the SVG options when downstream tools inspect node IDs or need consistent text outlines. Test the receiving renderer if exact typography is important.

PDF

PDF is appropriate when the deliverable is a document rather than an image. Confirm that your downstream viewer handles the exported page dimensions as expected.

Performance, reliability, and cost considerations

  • Batch related IDs in one API call to reduce connection overhead, then download returned assets concurrently within your service’s normal limits.
  • Keep scale only as high as the target display requires; pixel count affects transfer size and processing.
  • Use timeouts and bounded retries for transient 5xx responses or network failures. Do not retry a 401, 403, or malformed request without fixing credentials or parameters.
  • Cache your downloaded bytes under a key containing file key, node ID, version, format, scale, and bounds settings. Cache the file, not Figma’s temporary URL.
  • Redact X-Figma-Token from logs and never expose it in client-side JavaScript.
  • For large exports, monitor memory while downloading and writing files; stream downloads in production clients where practical.

Troubleshooting common failures

401 Unauthorized

The token is missing, expired, malformed, or sent in the wrong header. Send it as X-Figma-Token, verify the environment variable, and issue a replacement token if necessary.

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

403 Forbidden

The caller lacks file_content:read or cannot access the file. Grant the required scope and share the file with the token owner or OAuth application.

404 Not Found

Check the file key and endpoint path. A node ID is supplied in ids; it does not belong in the path.

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

One entry in images is null

Verify the node ID’s colon notation, confirm that the node still exists in the selected version, and ensure it has renderable content. In a batch, inspect every map entry rather than treating the whole response as successful.

Image looks cropped or includes unexpected whitespace

Review contents_only and use_absolute_bounds. Overlapping content may require contents_only=false; full text-node dimensions may require absolute bounds.

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

Export is too large or unexpectedly downscaled

Reduce scale or split the design into smaller nodes. Figma’s stated export ceiling is 32 megapixels, and larger images are scaled down.

Downloaded URL later stops working

That is expected after the 30-day asset lifetime. Re-run the image endpoint and download a new URL; do not use the temporary URL as a permanent CDN address.

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 your actual goal is a clean screenshot of a public web page that contains the Figma result, ScreenshotNeo provides a website screenshot API rather than requiring you to maintain browser automation. Its one-call example is:

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

See the ScreenshotNeo documentation for parameters and response handling. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and whether the request was billed. An MCP server supplies take_screenshot, get_page_info, and capture_pdf tools to Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 shots, and every feature is available on every plan. Create a free ScreenshotNeo account.

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

FAQ

Can I render several Figma frames in one request?

Yes. Put comma-separated node IDs in ids; the response maps each requested ID to its own URL or null.

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

Is the returned image URL permanent?

No. Figma’s image assets expire after 30 days, so download and store the file you need.

Should I use a personal token or OAuth?

Either works when it carries file_content:read and the caller can access the file. OAuth is generally suited to a multi-user integration; a personal token is simpler for a private script.

Can this endpoint capture a Figma prototype interaction?

It renders selected file nodes. It does not operate a browser session to reproduce hover, click, or prototype transitions.

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

Frequently Asked Questions

Can I render several Figma frames in one request?

Yes. Put comma-separated node IDs in ids; the response maps each requested ID to its own URL or null.

Is the returned image URL permanent?

No. Figma’s image assets expire after 30 days, so download and store the file you need.

Should I use a personal token or OAuth?

Either works when it carries file_content:read and the caller can access the file. OAuth is generally suited to a multi-user integration; a personal token is simpler for a private script.

Can this endpoint capture a Figma prototype interaction?

It renders selected file nodes. It does not operate a browser session to reproduce hover, click, or prototype transitions.

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.