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

NameTypeAllowed valuesRequiredDescription
idstring
5 characters
Yes

Response

Returns an array of objects with the following fields:

FieldTypeRequiredDescription
idstringNo
preferredbooleanNo
titlestringNo
templatestringNo
textstringNo
codestringNo