Skip to main content
Solved

Getting node id from figma desktop app

  • February 26, 2024
  • 1 reply
  • 1774 views

HI All,
I was trying to use the rest api from Figma in order to get data/document of a design file. I am able to successfully get the entire document.
However, since my design file can have multiple frames, i wanted to know, how i can get the node id from desktop app itself to make use of api
https://api.figma.com/v1/files/<file_id>/nodes?ids=<node_id>

getting file_id is easy from the url, but i wanted a specific node_id of the frame.

Also, i have also been working on a codegen plugin. I was interested to know if there is a way to get the output of the plugin over the node_id data via a rest api request/response.

Thank you.

Best answer by Celine_D

Hey @nirvana7 ,
Thanks for reaching out to the community! After checking internally with our team, you can have these two options:

  1. You could use the Plugin API (via a Plugin or via the console)
  2. Use a plugin like this one

I was interested to know if there is a way to get the output of the plugin over the node_id data via a rest api request/response.

Currently it’s only possible to access the output of a plugin when it’s actively running; so, it’s not possible to access the output of a codegen plugin through the REST API. Hope this helps!

View original

1 reply

Celine_D
Figmate
  • Community Support
  • 3381 replies
  • Answer
  • February 27, 2024

Hey @nirvana7 ,
Thanks for reaching out to the community! After checking internally with our team, you can have these two options:

  1. You could use the Plugin API (via a Plugin or via the console)
  2. Use a plugin like this one

I was interested to know if there is a way to get the output of the plugin over the node_id data via a rest api request/response.

Currently it’s only possible to access the output of a plugin when it’s actively running; so, it’s not possible to access the output of a codegen plugin through the REST API. Hope this helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings