Skip to main content

the rest api returns a list of published components according to docs https://www.figma.com/developers/api#get-files-endpoint


This list does not include unpublished components. Is there a way to include them in the response?

The endpoint you reference returns all components in the file.


@tank666 are you sure?


I have the same issue than @Bryan_Wong .


From what I tested:



  1. /v1/files/xxx/ returns the whole tree, entire local components, but remote components are just listed with a โ€œkeyโ€ (no fileId or so)

  2. /v1/files/xxx/nodes?ids=$NODE_ID wonโ€™t bring much information about the fileId

  3. /v1/files/xxx/components returns only published components

  4. The only way to get information about the remotely used component is by using /v1/components/$KEY_ID but it requires doing 1 call for each component


Reply