provider Library Analytics GET /v1/analytics/libraries/{file_key}/style/usages
@utdk/figma /v1/analytics/libraries/{file_key}/style/usages
Get library analytics style usage data.
Returns a list of library analytics style usage 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, file

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.

getlibraryanalyticsstyleusages
GET/v1/analytics/libraries/{file_key}/style/usages
Returns a list of library analytics style usage 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.

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.getlibraryanalyticsstyleusages()