Skip to content
OSINTtools.io

Datawrapper API

Web tool for turning spreadsheets into interactive charts, maps and tables that can be embedded in articles.

Base URL
https://api.datawrapper.de/v3
Sign-in
Bearer token
Free tier
Free tier
Pricing
Credits
Format
REST
Endpoints
7

Compiled by OSINTtools.io editors from datawrapper.de · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Datawrapper API creates, edits, publishes and exports the charts, maps and tables you would otherwise build in the Datawrapper web app. It does not look anything up: you send your own data and get back a chart object, a published URL, or a PNG, SVG or PDF export.

An investigator uses it to turn findings (counts, timelines, locations) into charts and locator maps for a report from a script, and to list or re-export charts already made in the account.

Calls go to https://api.datawrapper.de/v3 with a token in the Authorization: Bearer header; create it under Account → API Tokens and give it only the scopes you need (for example chart:read and chart:write). The token is shown once. The docs say the API cannot be called from the browser, only from a server. A chart is made in steps: create it (POST /charts), upload its data as CSV with PUT /charts/{id}/data and Content-Type: text/csv (a raw CSV body, not shown below), set titles and options with PATCH /charts/{id}, then publish or export it.

The API is free up to 500 create, 1,000 publish and 3,000 export operations a month; usage beyond that is billed in credits.

Quick start

  1. Get a key

    Create an account with Datawrapper and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Search and filter the charts in your account. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.datawrapper.de/v3/charts' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "list": [
        {
          "id": "Ab1Cd",
          "title": "Reports per month",
          "type": "d3-lines",
          "publicId": "Ab1Cd",
          "folderId": null,
          "language": "en-US",
          "createdAt": "2026-10-01T09:00:00.000Z",
          "lastModifiedAt": "2026-10-02T10:30:00.000Z",
          "publishedAt": "2026-10-02T10:31:00.000Z",
          "publicVersion": 1,
          "publicUrl": "https://datawrapper.dwcdn.net/Ab1Cd/1/"
        }
      ],
      "total": 1,
      "next": null
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Create a token with only the scopes you need; it is shown once.

Get a key from Datawrapper

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs. Free usage covers 500 create, 1,000 publish and 3,000 export operations a month.

Free tier. Pricing: credits.

Errors

StatusMeaning
400Bad request: invalid data, e.g. malformed JSON ("Invalid request payload input")
401The API access token is invalid and authorization failed
403No access to the requested resource
404The requested resource does not exist
409Conflict with the target resource, e.g. an identifier that already exists
500Server error on Datawrapper's side or service unavailable

Charts

  • Passive: the target is not contacted

Lists charts you can see, filtered by author, folder, team, workspace, publish status or title search. Items omit full metadata unless expand=true. Requires scope chart:read.

Query parameters

searchstring

Search by chart title

Example: incidents
publishedboolean

Filter by publish status

Example: true
folderIdinteger

Only charts in this folder

Example: 12345
authorIdstring

Author's user ID, or all / me

Example: me
orderBystring

Sort field, e.g. createdAt, lastModifiedAt, publishedAt, title

Example: lastModifiedAt
orderstring

Sort direction

Example: DESCDefault: DESCOne of: ASC, DESC
limitinteger

Maximum items to return, 1 to 500

Example: 100Default: 100
offsetinteger

Items to skip

Example: 0Default: 0
expandboolean

Include full metadata

Example: falseDefault: false
Response fields · 8Show

idstring

Chart ID

titlestring

Chart title

typestring

Chart type, e.g. d3-lines or tables

publicUrlstring

Published URL

publishedAtstring

Last publish time; null if never published

lastModifiedAtstring

Last edit time

totalinteger

Total matching charts

nextstring

Reference to the next page

curl 'https://api.datawrapper.de/v3/charts' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "list": [
    {
      "id": "Ab1Cd",
      "title": "Reports per month",
      "type": "d3-lines",
      "publicId": "Ab1Cd",
      "folderId": null,
      "language": "en-US",
      "createdAt": "2026-10-01T09:00:00.000Z",
      "lastModifiedAt": "2026-10-02T10:30:00.000Z",
      "publishedAt": "2026-10-02T10:31:00.000Z",
      "publicVersion": 1,
      "publicUrl": "https://datawrapper.dwcdn.net/Ab1Cd/1/"
    }
  ],
  "total": 1,
  "next": null
}
  • Passive: the target is not contacted
  • Cost: 1 create operation

Creates an empty visualization of the given type and returns it with its id, which every later call uses. Upload data next with PUT /charts/{id}/data (CSV body). Requires scope chart:write.

Request body (JSON) · 8Show

titlestring

Headline of the visualization

typestring

Chart type, e.g. d3-bars-stacked, d3-lines, tables

themestring

Theme to apply

folderIdinteger

Folder to create it in

externalDatastring

URL of an external dataset

languagestring

Locale, e.g. en-US

source-namestring

Source name shown in the footer

introstring

Description of the visualization

Response fields · 6Show

idstring

Chart ID used in later requests

publicIdstring

Public ID

titlestring

Chart title

typestring

Chart type

folderIdinteger

Folder; null when not in a folder

metadataobject

All chart settings

curl -X POST 'https://api.datawrapper.de/v3/charts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"title":"Reports per month","type":"d3-lines","theme":"datawrapper","lastEditStep":3}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "Ab1Cd",
  "publicId": "Ab1Cd",
  "title": "Reports per month",
  "type": "d3-lines",
  "theme": "datawrapper",
  "language": "en-US",
  "folderId": null,
  "lastEditStep": 3,
  "metadata": {
    "describe": {
      "intro": ""
    }
  }
}
  • Passive: the target is not contacted

Returns the chart object with its metadata (sections data, describe, visualize, axes, publish, annotate, custom).

Path parameters

idstringrequired

5-character chart ID

Example: Ab1Cd
Response fields · 5Show

idstring

Chart ID

titlestring

Chart title

describeobject

Intro, byline, source name and URL

visualizeobject

Chart-type-specific display settings

publicUrlstring

Published URL

curl 'https://api.datawrapper.de/v3/charts/Ab1Cd' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "id": "Ab1Cd",
  "title": "Reports per month",
  "type": "d3-lines",
  "metadata": {
    "describe": {
      "intro": "Reports received each month.",
      "byline": "Example Desk",
      "source-name": "Example Agency",
      "source-url": "https://example.org/data"
    },
    "visualize": {},
    "publish": {}
  },
  "publicUrl": "https://datawrapper.dwcdn.net/Ab1Cd/1/"
}
  • Passive: the target is not contacted

Merges the given properties into the chart, e.g. metadata.describe (intro, byline, source) or metadata.visualize (colours, options). Returns the updated properties.

Path parameters

idstringrequired

5-character chart ID

Example: Ab1Cd
Request body (JSON) · 3Show

titlestring

New headline

describeobject

intro, byline, source-name, source-url

visualizeobject

Chart-type-specific settings

Response fields · 2Show

idstring

Chart ID

metadataobject

Updated settings

curl -X PATCH 'https://api.datawrapper.de/v3/charts/Ab1Cd' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"metadata":{"describe":{"source-name":"Example Agency","source-url":"https://example.org/data","intro":"Reports received each month.","byline":"Example Desk"}}}'
Replace YOUR_API_KEY with your key
Response
{
  "id": "Ab1Cd",
  "title": "Reports per month",
  "metadata": {
    "describe": {
      "source-name": "Example Agency",
      "source-url": "https://example.org/data",
      "intro": "Reports received each month.",
      "byline": "Example Desk"
    }
  }
}

Publishing

Publish a chart

POST/charts/{id}/publish

  • Passive: the target is not contacted
  • Cost: 1 publish operation

Publishes the chart; it is then viewable at its public URL. Requires scopes chart:read and chart:write.

Path parameters

idstringrequired

5-character chart ID

Example: Ab1Cd
Request body (JSON) · 2Show

waitForImagesboolean

Wait for images to publish before completing (needs the image publishing feature)

callWebhooksboolean

Call configured webhooks and integrations after publishing (default true)

Response fields · 3Show

dataobject

The published chart

versioninteger

Published version number

urlstring

Public URL

curl -X POST 'https://api.datawrapper.de/v3/charts/Ab1Cd/publish' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"callWebhooks":true}'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "id": "Ab1Cd",
    "title": "Reports per month"
  },
  "version": 1,
  "url": "https://datawrapper.dwcdn.net/Ab1Cd/1/"
}

Exporting

Export a chart as PNG, SVG or PDF

GET/charts/{id}/export/{format}

  • Passive: the target is not contacted
  • Cost: 1 export operation
  • Plan: Some formats depend on the account

Returns the chart as an image or document for print or presentations. Some formats may be unavailable depending on your account. Requires scope chart:read.

Path parameters

idstringrequired

5-character chart ID

Example: Ab1Cd
formatstringrequired

Export format

Example: pngOne of: png, svg, pdf

Query parameters

unitstring

Unit for width and height

Example: pxDefault: pxOne of: in, mm, px
modestring

Colour mode

Example: rgbDefault: rgbOne of: rgb, cmyk
widthnumber

Width (1 or more)

Example: 600
heightstring

Height (1 or more) or auto

Example: auto
plainboolean

Export without header and footer

Example: falseDefault: false
zoomnumber

Zoom factor

Example: 2Default: 2
transparentboolean

Transparent background

Example: falseDefault: false
darkboolean

Dark mode export

Example: falseDefault: false
curl 'https://api.datawrapper.de/v3/charts/Ab1Cd/export/png' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
(binary image or PDF file)

Account

  • Passive: the target is not contacted

Returns information about the signed-in user; the getting-started guide uses it to test a token.

Response fields · 2Show

idinteger

User ID

emailstring

Account email

curl 'https://api.datawrapper.de/v3/me' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "id": 12345,
  "email": "analyst@example.com"
}