Skip to main content
Question

Library API script file key error

  • February 6, 2026
  • 0 replies
  • 8 views

Aguiar_Leonardo_extern

Hello,

 

I am trying to run the script offered in Figma's Youtube video and Github page for getting data from the Library API but I am running into an error.

 

These are the video and script that I am attempting to use:

https://github.com/figma-sa/figma-library-analytics-api-example

 

The error I am getting is the following:

line 160, in variable_actions_by_team

    url     = base_url + file_key + params

              ~~~~~~~~~^~~~~~~~~~

TypeError: can only concatenate str (not "NoneType") to str

 

I have tried placing the file key in double quotes, in single quotes and without any quotes characters. Without quotes I get a not defined error for it.

 

Thank you for any help and your time.