Figma Support Forum

How do I get figma assets, components & variants via Rest API

I am trying to fetch information about variants of a component. Which node returns that info.

Is it a different endpoint?
I tried GET team Components, GET file components. Both return an empty array. GET file does not seem to return any information about variants.

Thanks

GET file returns all file data, including the components and component sets that are in this file. You just need to find them in the file structure.