# Datawrapper API reference

> 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…

Source: https://osinttools.io/apis/datawrapper/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/datawrapper/

- Base URL: https://api.datawrapper.de/v3
- Authentication: Bearer token in the `Authorization` header. Get a key: https://app.datawrapper.de/account/api-tokens Create a token with only the scopes you need; it is shown once.
- Free tier: yes
- Pricing: Credits
- Rate limits: Not stated in the docs. Free usage covers 500 create, 1,000 publish and 3,000 export operations a month.
- Vendor docs: https://www.datawrapper.de/developer/

## Overview

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.

## Errors

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

## Charts

### Search and filter the charts in your account

`GET /charts`

- Footprint: 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`.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `search` | query | string | no | Search by chart title Example: incidents |
| `published` | query | boolean | no | Filter by publish status Example: true |
| `folderId` | query | integer | no | Only charts in this folder Example: 12345 |
| `authorId` | query | string | no | Author's user ID, or all / me Example: me |
| `orderBy` | query | string | no | Sort field, e.g. createdAt, lastModifiedAt, publishedAt, title Example: lastModifiedAt |
| `order` | query | string | no | Sort direction Example: DESC One of: ASC, DESC |
| `limit` | query | integer | no | Maximum items to return, 1 to 500 Example: 100 |
| `offset` | query | integer | no | Items to skip Example: 0 |
| `expand` | query | boolean | no | Include full metadata Example: false |

Response fields:

- `list[].id` (string): Chart ID
- `list[].title` (string): Chart title
- `list[].type` (string): Chart type, e.g. d3-lines or tables
- `list[].publicUrl` (string): Published URL
- `list[].publishedAt` (string): Last publish time; null if never published
- `list[].lastModifiedAt` (string): Last edit time
- `total` (integer): Total matching charts
- `next` (string): Reference to the next page

```bash
curl 'https://api.datawrapper.de/v3/charts' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
}
```

### Create a new chart, map or table

`POST /charts`

- Footprint: 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`.

Response fields:

- `id` (string): Chart ID used in later requests
- `publicId` (string): Public ID
- `title` (string): Chart title
- `type` (string): Chart type
- `folderId` (integer): Folder; null when not in a folder
- `metadata` (object): All chart settings

```bash
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}'
```

Example response (201):

```json
{
  "id": "Ab1Cd",
  "publicId": "Ab1Cd",
  "title": "Reports per month",
  "type": "d3-lines",
  "theme": "datawrapper",
  "language": "en-US",
  "folderId": null,
  "lastEditStep": 3,
  "metadata": {
    "describe": {
      "intro": ""
    }
  }
}
```

### A chart's properties and full metadata

`GET /charts/{id}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | 5-character chart ID Example: Ab1Cd |

Response fields:

- `id` (string): Chart ID
- `title` (string): Chart title
- `metadata.describe` (object): Intro, byline, source name and URL
- `metadata.visualize` (object): Chart-type-specific display settings
- `publicUrl` (string): Published URL

```bash
curl 'https://api.datawrapper.de/v3/charts/Ab1Cd' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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/"
}
```

### Update a chart's title, description or display settings

`PATCH /charts/{id}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | 5-character chart ID Example: Ab1Cd |

Response fields:

- `id` (string): Chart ID
- `metadata` (object): Updated settings

```bash
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"}}}'
```

Example response (200):

```json
{
  "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`

- Footprint: 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`.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | 5-character chart ID Example: Ab1Cd |

Response fields:

- `data` (object): The published chart
- `version` (integer): Published version number
- `url` (string): Public URL

```bash
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}'
```

Example response (200):

```json
{
  "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}`

- Footprint: 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`.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | 5-character chart ID Example: Ab1Cd |
| `format` | path | string | yes | Export format Example: png One of: png, svg, pdf |
| `unit` | query | string | no | Unit for width and height Example: px One of: in, mm, px |
| `mode` | query | string | no | Colour mode Example: rgb One of: rgb, cmyk |
| `width` | query | number | no | Width (1 or more) Example: 600 |
| `height` | query | string | no | Height (1 or more) or auto Example: auto |
| `plain` | query | boolean | no | Export without header and footer Example: false |
| `zoom` | query | number | no | Zoom factor Example: 2 |
| `transparent` | query | boolean | no | Transparent background Example: false |
| `dark` | query | boolean | no | Dark mode export Example: false |

```bash
curl 'https://api.datawrapper.de/v3/charts/Ab1Cd/export/png' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```
(binary image or PDF file)
```

## Account

### The account the token belongs to

`GET /me`

- Footprint: 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:

- `id` (integer): User ID
- `email` (string): Account email

```bash
curl 'https://api.datawrapper.de/v3/me' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "id": 12345,
  "email": "analyst@example.com"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
