Skip to main content
Question

How to get plugin data for color/text styles?

  • December 23, 2022
  • 3 replies
  • 919 views

I want to get plugin data for nodes and styles in Figma files in the REST API. I know that GET /v1/files/:key can fetch plugin data for nodes using the plugin_data query but it seems the response doesn’t contain plugin data for text/color styles.

Is there a way to get plugin data for color/text styles?

3 replies

tank666
  • 4862 replies
  • December 23, 2022

Use the “GET file nodes” endpoint.
https://www.figma.com/developers/api#get-file-nodes-endpoint

https://api.figma.com/v1/files/:file_key/nodes?ids=node_id&plugin_data=shared

I tried using “GET file nodes”, but the response still doesn’t contain pluginData for text/color styles.
(I expect “pluginData” to be included in “nodes/{id}/styles/{id}”)


tank666
  • 4862 replies
  • December 24, 2022

I cannot confirm this.

“GET file” endpoint
get-file-endpoint

“GET file nodes” endpoint


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings