How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Figma Library Analytics API

Operations for retrieving library usage and action analytics data

Figma Library Analytics API is one of 18 APIs that Figma publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 55 JSON Schema definitions.

Tagged areas include Library Analytics. The published artifact set on APIs.io includes an OpenAPI specification, an AsyncAPI specification, a JSON-LD context, API documentation, and 55 JSON Schemas.

This API exposes 7 operations across 7 paths, and defines 17 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against a single base URL, https://api.figma.com.

7 operations 7 paths 17 schemas 7 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.figma.com
Authentication
HTTP Bearer, OAuth 2.0, API Key, OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 4

Figma Library Analytics API declares 4 security schemes for authenticating requests. It accepts HTTP bearer tokens (Figma Personal Access Token) (PersonalAccessToken). It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 1 scope. An API key is passed in the header as X-Figma-Token (PlanAccessToken). It supports OAuth 2.0 (OrgOAuth2) using the authorizationCode flow, exposing 1 scope.

  • PersonalAccessToken — Personal Access Token for authentication

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 7 GET. Each is listed below with its method, path, parameters, and response codes.

Library Analytics 7

Operations for retrieving library usage and action analytics data

GET
/v1/analytics/libraries/{file_key}/usages
Figma Get Library Analytics Usage Data
getLibraryAnalyticsUsages 4 params → 200400401403429500
GET
/v1/analytics/libraries/{file_key}/component/actions
Get library analytics component action data
getLibraryAnalyticsComponentActions 5 params → 200400401403429500
GET
/v1/analytics/libraries/{file_key}/component/usages
Get library analytics component usage data
getLibraryAnalyticsComponentUsages 3 params → 200400401403429500
GET
/v1/analytics/libraries/{file_key}/style/actions
Get library analytics style action data
getLibraryAnalyticsStyleActions 5 params → 200400401403429500
GET
/v1/analytics/libraries/{file_key}/style/usages
Get library analytics style usage data
getLibraryAnalyticsStyleUsages 3 params → 200400401403429500
GET
/v1/analytics/libraries/{file_key}/variable/actions
Get library analytics variable action data
getLibraryAnalyticsVariableActions 5 params → 200400401403429500
GET
/v1/analytics/libraries/{file_key}/variable/usages
Get library analytics variable usage data
getLibraryAnalyticsVariableUsages 3 params → 200400401403429500

Schemas 17

The contract defines 17 schemas that model the data the API accepts and returns. The most detailed are LibraryAnalyticsVariableUsagesByAsset (8 properties), LibraryAnalyticsVariableActionsByAsset (8 properties), LibraryAnalyticsUsagesByComponent (7 properties), LibraryAnalyticsComponentUsagesByAsset (7 properties). Each schema is shown below with its type and property counts.

LibraryAnalyticsUsagesByComponent
object
Library analytics usage data broken down by component.
7 properties 5 required
LibraryAnalyticsUsagesByFile
object
Library analytics usage data broken down by file.
4 properties 3 required
ErrorResponsePayload
object
A response indicating an error occurred.
3 properties 3 required
GetLibraryAnalyticsUsagesResponseBody
object
4 properties 1 required
LibraryAnalyticsVariableActionsByAsset
object
Library analytics variable actions data broken down by asset.
8 properties 8 required
LibraryAnalyticsComponentActionsByTeam
object
Library analytics action data broken down by team.
5 properties 4 required
LibraryAnalyticsStyleActionsByAsset
object
Library analytics style actions data broken down by asset.
6 properties 6 required
LibraryAnalyticsVariableActionsByTeam
object
Library analytics variable action data broken down by team.
5 properties 4 required
ErrorResponsePayloadWithErrorBoolean
object
A response indicating an error occurred.
3 properties 3 required
LibraryAnalyticsVariableUsagesByAsset
object
Library analytics variable usage data broken down by component.
8 properties 8 required
LibraryAnalyticsComponentUsagesByFile
object
Library analytics component usage data broken down by file.
4 properties 3 required
LibraryAnalyticsVariableUsagesByFile
object
Library analytics variable usage data broken down by file.
4 properties 3 required
LibraryAnalyticsComponentActionsByAsset
object
Library analytics component actions data broken down by asset.
7 properties 5 required
LibraryAnalyticsComponentUsagesByAsset
object
Library analytics component usage data broken down by component.
7 properties 5 required
LibraryAnalyticsStyleUsagesByAsset
object
Library analytics style usage data broken down by component.
6 properties 6 required
LibraryAnalyticsStyleActionsByTeam
object
Library analytics style action data broken down by team.
5 properties 4 required
LibraryAnalyticsStyleUsagesByFile
object
Library analytics style usage data broken down by file.
4 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

figma-library-analytics-api-openapi.yml Raw ↑

Other APIs Figma publishes across the network.

Figma Files API
Figma Projects API
Figma Component Sets API
Figma Activity Logs API
Figma Payments API
Figma Dev Resources API
Figma Comments API
Figma Components API
Figma Users API
Figma AI Usage API
Figma Comment Reactions API
Figma Developer Logs API
Where this information came from

This is an independent, third-party profile of Figma Library Analytics API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.