Skip to main content
Solved

How will I get component data?

  • July 24, 2023
  • 6 replies
  • 598 views

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

Best answer by tank666

Figma Help Center
This topic has been closed for replies.

6 replies

tank666
  • 4873 replies
  • July 24, 2023

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



GET/v1/files/:file_key/components

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


tank666
  • 4873 replies
  • July 24, 2023

Does this file have published components?


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


tank666
  • 4873 replies
  • Answer
  • July 24, 2023