Overview

Image-Charts generates chart images and QR codes on-the-fly via a simple GET request URL, with chart parameters encoded directly into the query string. It supports bar, line, pie, radar, and other chart types and returns a PNG image you can embed directly in emails, PDFs, or web pages without any client-side JavaScript. No authentication is required for basic usage.

Beginner Tip

The entire API is a single URL — encode all your chart options as query parameters and the response is the image itself. Try it directly in a browser: paste the URL and you see your chart immediately. This makes it perfect for generating charts inside emails or server-side documents where JavaScript cannot run.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

randomly generated data
customizable output format
generated QR code image
encoded data string

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "image_url": "https://api.example.com/qr/abc123.png",
  "data": "https://example.com",
  "format": "png",
  "size": "300x300"
}

Field Reference

(binary PNG body) The chart or QR code rendered as a PNG image returned directly in the response body.
Content-Type (response header) Always image/png for successful chart requests.
X-Image-Charts-Info (response header) Informational header present on some responses indicating rendering metadata or warnings.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://image-charts.com/chart?cht=bvg&chs=300x200&chd=t:40,60,80,20&chl=Q1|Q2|Q3|Q4";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Distorted or cut-off chart Chart dimensions (chs parameter) are too small for the data
Increase width and height, e.g. chs=700x400, and reduce the number of data points or labels.
Invalid chart type error Unsupported cht value
Refer to the documentation for valid chart types; common ones are bvg (vertical bar), lc (line), p (pie).
QR code not scanning Data string is too long for the selected QR size
Increase chs dimensions or shorten the encoded data; large URLs may need at least 500x500px.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Development
Difficulty Beginner
Listing details not endpoint-verified

Similar APIs

View All →