Export chart in async mode
POST
https://api.datawrapper.de/v3/charts/{id}/export/{format}/async Export your chart as image or document for use in print or presentations. Returns the URL to query the async export status.
Not all formats might be available to you, based on your account. Requires scope chart:read.
Example Request
curl --request POST \
--url https://api.datawrapper.de/v3/charts/example-id/export/png/async \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"unit": "px",
"mode": "rgb",
"plain": false,
"zoom": 2,
"fullVector": false,
"ligatures": true,
"transparent": false,
"logo": "auto",
"dark": false
}'Headers
| Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Yes | The format of the request body. |
Path Parameters
| Name | Type | Allowed values | Required | Description |
|---|---|---|---|---|
id | string | 5 characters | Yes | 5 character long chart ID. |
format | string | png, svgor pdf | Yes | Export format |
Request Body
| Field | Type | Allowed values | Required | Description |
|---|---|---|---|---|
unit | string | in, mmor px Default: px | No | |
mode | string | rgbor cmyk Default: rgb | No | |
width | number | 1 or more | No | |
height | number | numberor auto 1 or more | No | |
plain | boolean | Default: false | No | |
scale | number | No | ||
zoom | number | Default: 2 | No | |
border | object | No | ||
border.width | number | No | ||
border.color | string | Default: auto | No | |
fullVector | boolean | Default: false | No | |
ligatures | boolean | Default: true | No | |
transparent | boolean | Default: false | No | |
logo | string | auto, onor off Default: auto | No | |
logoId | string | No | ||
dark | boolean | Default: false | No |