Files
Get File Nodes
Returns specific nodes from a Figma file by their IDs.
Fetch specific nodes from a file without downloading the entire document tree. This is significantly faster for large files when you only need a subset of nodes.
GET https://api.figma.com/v1/files/:file_key/nodes
Authentication
Requires a valid access token with file_content:read scope. Pass via X-Figma-Token header (personal access token) or Authorization: Bearer header (OAuth).
Parameters
Path parameters
The key of the file. Find this in the Figma file URL: figma.com/design/:file_key/...
Query parameters
Comma-separated list of node IDs to retrieve. Node IDs use the format 1:23.
Example Request
Response
{
"name": "My Design File",
"lastModified": "2024-01-15T10:30:00Z",
"version": "456789",
"nodes": {
"1:2": {
"document": {
"id": "1:2",
"name": "Button",
"type": "COMPONENT",
"children": []
},
"components": {},
"styles": {}
},
"3:4": {
"document": {
"id": "3:4",
"name": "Header",
"type": "FRAME",
"children": []
},
"components": {},
"styles": {}
}
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
name | string | The file name |
lastModified | string | ISO 8601 timestamp of the last edit |
version | string | The current version ID |
nodes | object | Map of node IDs to their data |
nodes[id].document | object | The node subtree for the requested node |
nodes[id].components | object | Component metadata referenced by nodes in the subtree |
nodes[id].styles | object | Style metadata referenced by nodes in the subtree |