FigmaDotNet 1.4.2

dotnet add package FigmaDotNet --version 1.4.2
                    
NuGet\Install-Package FigmaDotNet -Version 1.4.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FigmaDotNet" Version="1.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FigmaDotNet" Version="1.4.2" />
                    
Directory.Packages.props
<PackageReference Include="FigmaDotNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FigmaDotNet --version 1.4.2
                    
#r "nuget: FigmaDotNet, 1.4.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=FigmaDotNet&version=1.4.2
                    
Install FigmaDotNet as a Cake Addin
#tool nuget:?package=FigmaDotNet&version=1.4.2
                    
Install FigmaDotNet as a Cake Tool

FigmaDotNet

.NET SDK for Figma REST API

This project provides a http client for dotnet to interact with the Figma REST API.

Getting started

Install the Nuget package from nuget.org or github.com

dotnet add package FigmaDotNet

You have to add a config to your application:

{
  "Values": {
    "FigmaHttpClient": {
      "ApiToken": "###",
      "RetryAmount": 5, // optional
      "TimeoutMinutes": 5 // optional
    }
  }
}

Check https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens how to get a personal access token in Figma.

The API token can also be applied via the constructor of the FigmaHttpClient, as well as the retryAmount:

var figmaHttpClient = new FigmaHttpClient(logger, configuration, apiKey: "###", retryAmount: 5);;

Further development topics & missing features

  • Not all endpoints are implemented yet.
  • Only .Net 9 is supported.
  • Missing documentation.
  • Rate limit customization in config.

Change log

v1.4.0:
v1.3.0:
  • Added ServiceCollectionExtensions to extract http client and made it configurable.
  • The configuration key FIGMA_API_TOKEN has changed to FigmaHttpClient:ApiToken.
  • New configuration key FigmaHttpClient:TimeoutMinutes was added to configure http service timeout. Default is 5 minutes.
v1.1.1:
  • Extend FileResponse with Branches and Document properties.
v1.1.0:
  • Removed property InternalName from FigmaComponent.
  • Removed property InternalName from WebhookLibraryUpdatePayload.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.2 219 1/16/2025
1.4.1 92 1/16/2025
1.4.0 95 1/16/2025
1.3.2 85 1/9/2025
1.3.1 136 1/3/2025
1.3.0 128 1/3/2025
1.2.8 108 12/20/2024
1.2.7 97 12/20/2024
1.2.6 97 12/19/2024
1.2.5 95 12/19/2024
1.2.4 94 12/19/2024
1.2.3 95 12/19/2024
1.2.2 95 12/19/2024
1.2.1 97 12/18/2024
1.2.0 94 12/18/2024
1.1.6 93 12/18/2024
1.1.5 96 12/17/2024
1.1.4 102 12/17/2024
1.1.3 114 12/17/2024
1.1.2 111 12/16/2024
1.1.1 99 12/5/2024
1.1.0 132 12/5/2024
1.0.5 104 12/4/2024
1.0.4 121 12/4/2024
1.0.3 104 12/4/2024
1.0.2 101 12/4/2024
1.0.1 104 12/4/2024
1.0.0 109 12/4/2024