Skip to main content

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

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


use
https://api.figma.com/v1/files/za4RbFIh6TYU5YYaoUFaww/components


GET/v1/files/:file_key/components

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


Does this file have published components?


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


Figma Help Center