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 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:
/v1/files/xxx/
returns the whole tree, entire local components, but remote components are just listed with a โkeyโ (no fileId
or so)/v1/files/xxx/nodes?ids=$NODE_ID
wonโt bring much information about the fileId
/v1/files/xxx/components
returns only published components/v1/components/$KEY_ID
but it requires doing 1 call for each componentEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.