Figma URL to API Endpoint Converter

Example: https://www.figma.com/design/GAYI2JzEHc8ogLsTEQYAaA/Product-Page?node-id=43777-15&t=tfKo8bhjamVxeKIF-4

How to Get a Specific Node in Figma Design

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.

How to Get a Personal Access Token (PAT)

To access the Figma API, you need a Personal Access Token (PAT). Follow these steps to generate one:

  1. Log in to your Figma account.
  2. Go to Figma REST API > Access tokens. Follow the guidelines to Generate token.
  3. Copy the generated token and store it securely. You will not be able to view it again.

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