---
title: "Get embed codes for a chart"
method: GET
path: "/charts/{id}/embed-codes"
---

# Get embed codes for a chart

`GET /charts/{id}/embed-codes`

Request the responsive and static embed code of a chart. Requires scope `chart:read`.

## Path parameters

- `id` string, required

## Response `200`

Successful

- object[]
  - `id` string
  - `preferred` boolean
  - `title` string
  - `template` string
  - `text` string
  - `code` string

---

[API](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation.md) · [All operations](https://skmtc.dev/datawrapper/apis/datawrapper-api-v3-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datawrapper/datawrapper-api-v3-documentation/revisions/e190512863c7/schema)
