Endpoints
The oEmbed endpoint allows third-party services to retrieve rich embed metadata for Figma files and published Makes. This follows the oEmbed 1.0 specification.
GET oEmbed
Returns oEmbed metadata for a Figma file or published Make URL.
info
This is a Tier 3 endpoint and requires the file_metadata:read scope.
HTTP endpoint
GET /v1/oembed
Return value
{
"version": "1.0",
"type": "rich",
"title": String,
"key": String,
"url": String,
"provider_name": String,
"provider_url": String,
"cache_age": Number,
"width": Number,
"height": Number,
"html": String,
"is_published_site": Boolean,
"folder_name": String,
"thumbnail_url": String,
"thumbnail_width": Number,
"thumbnail_height": Number
}
| Query parameters | Description |
|---|---|
| url |
|
| maxwidth |
|
| maxheight |
|
Response
| Field | Description |
|---|---|
| version |
|
| type |
|
| title |
|
| key |
|
| url |
|
| provider_name |
|
| provider_url |
|
| cache_age |
|
| width |
|
| height |
|
| html |
|
| is_published_site |
|
| folder_name |
|
| thumbnail_url |
|
| thumbnail_width |
|
| thumbnail_height |
|
| Error codes | Description |
|---|---|
| 400 | The url parameter is missing or not a valid Figma URL. |
| 404 | The file or published site was not found, or does not have public link access. |
| 429 | Too many requests. See rate limits. |
| 501 | Not Implemented. The server does not support the functionality required to fulfill the request. |
Example request
GET https://api.figma.com/v1/oembed?url=https%3A%2F%2Fwww.figma.com%2Fdesign%2FabcXYZ%2FMy-Design&maxwidth=800&maxheight=450
Example response
{
"version": "1.0",
"type": "rich",
"title": "My Design",
"key": "abcXYZ",
"url": "https://www.figma.com/design/abcXYZ/My-Design",
"provider_name": "Figma",
"provider_url": "https://www.figma.com",
"cache_age": 3600,
"width": 800,
"height": 450,
"html": "<iframe src=\"https://www.figma.com/embed?embed_host=oembed&url=https://www.figma.com/design/abcXYZ/My-Design\" width=\"800\" height=\"450\" allowfullscreen></iframe>",
"thumbnail_url": "https://api-cdn.figma.com/resize/thumbnails/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?height=450",
"thumbnail_width": 800,
"thumbnail_height": 450
}