Skip to main content
Figma is a collaborative web application for interface design.
This notebook covers how to load data from the Figma REST API into a format that can be ingested into LangChain, along with example usage for code generation.
The Figma API Requires an access token, node_ids, and a file key. The file key can be pulled from the URL. www.figma.com/file/{filekey}/sampleFilename Node IDs are also available in the URL. Click on anything and look for the ‘?node-id={node_id}’ param. Access token instructions are in the Figma help center article: help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens
Returns the following in response.content: