To retrieve a specific node from a Figma design document, you need to include the node-id
parameter in the API URL. The node-id
can be found in the Figma URL as a query parameter. For example:
https://www.figma.com/design/GAYI2JzEHc8ogLsTEQYAaA/Product-Page?node-id=43777-15
In this case, the node-id
is 43777-15
.
To access the Figma API, you need a Personal Access Token (PAT). Follow these steps to generate one:
Use this token in the X-Figma-Token header when making API requests:
X-Figma-Token: YOUR_PERSONAL_ACCESS_TOKEN
Here is an example that send Figma REST API request in a .http
file using REST Client:
GET https://api.figma.com/v1/files/GAYI2JzEHc8ogLsTEQYAaA?ids=43777-15 X-Figma-Token: YOUR_PERSONAL_ACCESS_TOKEN