Get embed codes for a chart
GET
https://api.datawrapper.de/v3/charts/{id}/embed-codes Request the responsive and static embed code of a chart. Requires scope chart:read.
Example Request
curl --request GET \
--url https://api.datawrapper.de/v3/charts/example-id/embed-codes \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>'Path Parameters
| Name | Type | Allowed values | Required | Description |
|---|---|---|---|---|
id | string | 5 characters | Yes |
Response
Returns an array of objects with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | |
preferred | boolean | No | |
title | string | No | |
template | string | No | |
text | string | No | |
code | string | No |