Embed, image and SVG

The public embed page, PNG and SVG of a chart. No key needed.

GEThttps://api.typesearch.ai/embed/{file}

What embed_url, image_url and svg_url point to. They are public by id, so anyone with the link can see the chart, and they need no key. Every view is free.

  • chart_…: a page made for an iframe. It adapts to its width (under 480 px it switches to a compact layout), shows tooltips, weighs a few KB and loads nothing from third parties. It can be embedded on any site.
  • chart_….png: the card at twice the resolution, for chat, email or slides.
  • chart_….svg: the vector card.

The page posts its height to the parent page on load and on every resize, with { type: "typesearch:chart:resize", id, height }, so you can size the iframe to fit. See Embed it.

Path

ParameterType
filestringchart_… for the page, chart_….png for the image, chart_….svg for the SVG.

Query

ParameterType
themestringShows it in another theme: light, dark, editorial or electric. Default: the chart's theme.
sizestringcompact: the narrow layout, for phones and stories. PNG and SVG only; the page picks it by its width.

Responses

Status
200The page (text/html), the image (image/png) or the SVG (image/svg+xml). Cached for 5 minutes.
404No such chart: the id is wrong, or the chart was deleted or expired.
429More than 600 views per minute from the same IP. Retry after Retry-After seconds.