Figma icon

Figma

Use the Figma API

Figma File → Get Image Fills

AI-generated

Summary

Retrieve download URLs for all image fills used within a Figma file identified by its key.

Inputs

  • key (required) — The unique identifier of the Figma file to retrieve image fills from.
  • queryParameters — Optional parameters to filter or paginate the results, such as 'ids' to specify nodes of interest, 'limit' to control the number of results, 'version' for a specific file version, and other optional query fields supported by the Figma API.

Output shape

An object containing download links for all images present in the image fills of the specified Figma file.

The response includes URLs valid for downloading each image fill. Pagination and filtering can be controlled via the optional queryParameters collection. Requires OAuth2 credentials with access to the Figma API.

Examples

Example 1: Get all image fills in a file

Set the 'key' parameter to the file's key to retrieve all its image fills.

Example 2: Get image fills with specific node IDs

Use 'queryParameters.ids' as a comma-separated list of node IDs to limit results to those nodes only.

Discussion