Skip to main content
July 24, 2023
Solved

How will I get component data?

How will I get component data? Currently getting an empty array.
{
“error”: false,
“status”: 200,
“meta”: {
“components”:
},
“i18n”: null
}
getting empty components array.

This topic has been closed for replies.
tank666
tank666Solution
July 24, 2023
Figma Help Center
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank

6 replies

tank666
July 24, 2023

What endpoint are you using? Have you tried adding a depth parameter or node ids?

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
July 24, 2023

GET/v1/files/:file_key/components

I need files components So, I’m using this endpoint

tank666
July 24, 2023

Does this file have published components?

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
July 24, 2023

No, But can I know how to add components to a file?

tank666
tank666Solution
July 24, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank