provider Library Analytics GET /v1/analytics/libraries/{file_key}/style/actions
@utdk/figma /v1/analytics/libraries/{file_key}/style/actions
Get library analytics style action data.
Returns a list of library analytics style actions data broken down by the requested dimension.
file_key path required
File key of the library to fetch analytics data for.
string
cursor query
Cursor indicating what page of data to fetch. Obtained from prior API call.
string
group_by query required
A dimension to group returned analytics data by.
enum: style, team
start_date query
ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one year prior.
string
end_date query
ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the latest computed week.
string

Try it

Authentication
Configure credentials for Figma API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getlibraryanalyticsstyleactions
GET/v1/analytics/libraries/{file_key}/style/actions
Returns a list of library analytics style actions data broken down by the requested dimension.

Parameters

required

File key of the library to fetch analytics data for.

Cursor indicating what page of data to fetch. Obtained from prior API call.

required

A dimension to group returned analytics data by.

ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one year prior.

ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the latest computed week.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import figma from '@utdk/figma';

await figma.getlibraryanalyticsstyleactions()