Export chart

GET
https://api.datawrapper.de/v3/charts/{id}/export/{format}/async/{exportId}

After triggering an asynchronous export this route can be used to find out if the export has finished, yet. It returns either the HTTP code 425 to indicate that the export isn't ready or HTTP code 200 along with the export result.

Example Request

curl --request GET \
  --url 'https://api.datawrapper.de/v3/charts/example-id/export/png/async/example-exportId?download=false' \
  --header 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Path Parameters

NameTypeAllowed valuesRequiredDescription
idstring
5 characters
Yes5 character long chart ID.
formatstringpng, svgor pdf YesExport format
exportIdstringAny Yes

Query Parameters

NameTypeAllowed valuesRequiredDescription
downloadboolean
Default: false
No