ChartQuery

Chart View

View a previously saved chart as an interactive HTML page. Public — no API key required. Iframe-embeddable.

GET
/v1/chart/view/{id}

Path Parameters

id*string

The chart ID returned in the X-Chart-View-URL header when saving a chart. Format: cq-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

Query Parameters

share?boolean

Set share=true to persist the config and receive JSON instead of an image: { id, render_url, view_url, embed_url, expires_in }. Free plan: 3-day expiry with watermark. Paid plan: 6-month expiry, no branding.

Default"false"
Value in"false" | "true"

Response Body

application/json

application/json

application/json

curl -X GET "https://api.chartquery.com/v1/chart/view/string"

"<!DOCTYPE html><html><!-- interactive chart canvas, responsive, tooltip-enabled --></html>"

{
  "error": "Bad Request"
}
{
  "error": "Internal Error"
}