Getting node id from figma desktop app

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.

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!