A beginner-friendly tool to download and organize your Figma team data. This tool helps you extract information about your Figma teams, projects, and files, saving everything in a structured format that's easy to understand and use for backups or analysis.
This tool connects to your Figma account and:
- π Extracts all your team information
- π Lists all projects within those teams
- π¨ Gathers details about all your design files
- πΎ Organizes everything into a single, well-structured JSON file
- π Provides colorful, easy-to-read progress updates while it works
No programming knowledge required! Just follow the step-by-step instructions below.
Option 1: Download as ZIP (Easiest) π
- Click the green "Code" button at the top of this page
- Select "Download ZIP"
- Find the downloaded ZIP file in your Downloads folder
- Right-click the ZIP file and select "Extract All..." (Windows) or double-click (Mac)
- Choose where you want to extract the files and click "Extract"
git clone [email protected]:ohbus/figma-file-detials-extractor.git
cd figma-api-mainPython is the software needed to run this tool. Follow the instructions for your operating system:
- Visit python.org/downloads
- Download the latest Python installer (e.g., Python 3.10 or newer)
- Run the installer
β οΈ IMPORTANT: Check the box that says "Add Python to PATH" before clicking Install- Click "Install Now"
- When complete, click "Close"
- Visit python.org/downloads
- Download the latest Python installer for macOS
- Open the downloaded .pkg file and follow the installation instructions
- Verify installation by opening Terminal (find it using Spotlight search) and typing:
python3 --version
- Open Terminal
- Update your package list:
sudo apt update - Install Python and pip:
sudo apt install python3 python3-pip - Verify installation:
python3 --version
A virtual environment is like a clean, separate space for your project. It helps keep things organized and avoids conflicts with other software.
- Open Command Prompt (search for "cmd" in the Start menu)
- Navigate to the folder where you extracted the files:
(Replace "path\to" with your actual path)
cd path\to\figma-api-main - Create a virtual environment:
python -m venv venv - Activate the virtual environment:
You should see
venv\Scripts\activate(venv)appear at the beginning of your command prompt line
- Open Terminal
- Navigate to the folder where you extracted the files:
(Replace "path/to" with your actual path)
cd path/to/figma-api-main - Create a virtual environment:
python3 -m venv venv - Activate the virtual environment:
You should see
source venv/bin/activate(venv)appear at the beginning of your terminal line
Once your virtual environment is activated (you should see (venv) at the beginning of your command line):
- Install the required packages:
This will install all the necessary components the tool needs to work.
pip install -r requirements.txt
Before you can use the tool, you need to create an access token in Figma:
- Log in to your Figma account on figma.com
- Click on your profile picture in the top-right corner
- Select "Settings" from the dropdown menu
- Scroll down to "Personal access tokens" section
- Click "Create a new personal access token"
- Give it a name like "Data Extractor Tool"
- Click "Create token"
β οΈ IMPORTANT: Copy your token immediately and save it somewhere safe! You won't be able to see it again.
You need to identify which Figma teams you want to extract data from:
- Go to your Figma homepage after logging in
- Click on a team in the left sidebar
- Look at the URL in your browser. It will look something like:
https://www.figma.com/files/team/1234567890123456789/Team-Name - The long number after
/team/is your team ID (in this example:1234567890123456789) - Open the
team_idsfile in a text editor (Notepad, TextEdit, etc.) - Add one team ID per line (remove any existing example IDs)
- Save the file
Now you're ready to run the tool!
In Command Prompt (with your virtual environment activated):
set FIGMA_ACCESS_TOKEN=your-token-here
In Terminal (with your virtual environment activated):
export FIGMA_ACCESS_TOKEN="your-token-here"
With your virtual environment still activated:
python figma-api.py
The tool will start running and show colorful progress updates. It will:
- π Connect to Figma using your token
- π Read your team IDs from the file
- π₯ Fetch information about each team
- π Download details about all projects in each team
- π¨ Gather information about all files in those projects
- πΎ Save everything to a JSON file in a new
datafolder
When the tool finishes:
- Look for a new
datafolder in your figma-api-main directory - Inside, you'll find a file named
figma_consolidated_data_[timestamp].json - This file contains all your Figma organization data in a structured format
- Windows: Make sure you checked "Add Python to PATH" during installation
- Try using
python3instead ofpython
- Make sure you've activated your virtual environment (you should see
(venv)at the start of your command line) - Try running
pip install -r requirements.txtagain
- Try updating pip:
pip install --upgrade pip - Then try installing requirements again
- Windows: Try running Command Prompt as Administrator
- macOS/Linux: Try adding
sudobefore commands that give permission errors
- Double-check that you've set your Figma token correctly
- Verify your token has access to the teams you're trying to extract
The tool creates a JSON file that contains:
- π A summary of what was extracted (number of teams, projects, files)
- π₯ Details about each team
- π All projects within each team
- π¨ All design files within each project
- β±οΈ Timestamps and other metadata
This information can be useful for:
- πΎ Creating backups of your Figma organization structure
- π Analyzing how your design files are organized
- π Keeping track of file changes over time
- π§ Building custom tools that work with your Figma data
If you encounter any issues not covered in the troubleshooting section:
- π Check the colored output in your command line for specific error messages
- β Make sure you've followed all the steps exactly as described
- π Try searching online for any specific error messages you see
- πͺ Windows 10 or newer, π macOS 10.13 or newer, or π§ Linux (Ubuntu, Debian, etc.)
- π Internet connection
- π Python 3.7 or newer
- πΎ Approximately 100MB of free disk space
- π A valid Figma account with an access token