Skip to main content
Section bodies keep the publisher’s tables, figures, equations and forms. This page covers where they appear in the response, the fields that describe them and the hosted image files.
Images come back in html on the default format=both. For images in markdown, ask for format=all or format=markdown. See Response formats for every format value.

Where tables and images appear

When source is r2_render, the body is a structured rendering of the publisher’s document. Tables and images stay where the publisher printed them, between the paragraphs they belong to, not collected at the end. In 14 CFR 25.533, for example, each of the three equations follows the sentence that introduces it.
The markdown field of 14 CFR 25.533 as returned, with the equation image link between two paragraphs, and the same excerpt rendered with the equation in place

14 CFR 25.533 with format=markdown: the equation's image link sits between the sentence that introduces it and the definitions that follow, and renders there

Each image appears in every text field you asked for, at the same position:
A Maryland regulation's html rendered in a browser, showing a measurement-site diagram with its caption between two paragraphs

COMAR 11.14.07.05: the html field in a browser, with the publisher's figure and its caption between the paragraphs it belongs to

A table is a <table> in html, a GitHub-flavored pipe table in markdown, and tab-separated rows in plain. When the publisher prints a table title, it is the table’s <caption> in html.
Tables E-1 and E-2 of 29 CFR 1910.95 rendered from the html field, each with its title, header row and six rows of values

29 CFR 1910.95: two of the section's eleven tables, as the html field renders in a browser

Image fields

Each entry in figures has these fields: tables lists each table’s tableId, order, caption, rows and cols.

Image files

Images are served from https://statutes-us.vaquill.ai/figures/ without an API key, so html and markdown display as they are in a browser or a Markdown renderer. Loading an image costs no credits. Formats a browser cannot display (TIFF, EPS, PDF) are converted to PNG. The file name is the SHA-256 hash of the image, so a URL always returns the same bytes and you can cache it indefinitely.

When an image or a rendering is missing

  • status: "unavailable" means the publisher does not serve the image file, so url is null. The image keeps its entry in figures and its placeholder in the text. This is most common in Code of Federal Regulations annual editions before 2011 and Federal Register documents before 2012, where the government’s image server holds no copy. sourceUrl still records where the publisher would serve the image, and it may not load.
  • figures: [] and hasFigures: false mean the section has no images.
  • figures: null and hasFigures: null mean the section has no structured rendering, so its body is returned as text without images. The same holds for tables and hasTables.
  • A rendering is served only while it matches the publisher’s current text. When a section changes, the API returns the new text without images until the rendering is rebuilt, never an outdated rendering.

Coverage

Structured renderings are served for these codes. In these codes, sections with tables, images or equations come back with source: "r2_render". Renderings for part of the Alabama, Illinois, Ohio and Washington regulations, the Minnesota statutes and the IRS written determinations are still being built, so some of their sections come back as text for now. In random samples of sections from the codes below, no section carried a table or an image, so tables there are rare or absent and bodies are text. Every other code returns text today, and renderings are being added. Read source and hasFigures on each response rather than assuming from the corpus.

Example

The response, shortened:
The section has two more equations, at later offsets, omitted here.

Display tables and images

Pick the field that matches what your app shows.

In a web page: insert html

When source is r2_render, html is an HTML fragment with no <html>, <head> or <body> element, so it goes straight into a container. Its images load from the public image host, so they display with no work on your server. It carries no styles, so add a few rules for tables, captions and image width. Sanitize html before inserting it, as you would any HTML from outside your app, because for other values of source it can be the publisher’s own markup.
Sections without a structured rendering also return html, so the same code displays their text. Hosted images, and the tables and figures lists, come only with a structured rendering.

In Markdown: ask for format=markdown

Images are standard ![alt](url) links and tables are GitHub-flavored pipe tables, so any Markdown renderer that supports tables shows the section with its images in place. A section with no structured rendering returns plain instead of markdown, so fall back to it.
Python
To give a language model the section with its images, send it markdown. Each image is a link at the place it belongs, and a model that reads images can be given the file at url.

As plain text: plain and figures

plain carries no images. A placeholder such as [Figure 1] or [Equation] marks where each one goes, and offsetPlain in figures points at it. To show the images next to the text, list figures and display or link each url.

Keep a copy of the images

Download each hosted image once and keep it. The file name is the image’s SHA-256 hash, so the bytes at a URL never change and the name works as a cache key. The image host needs no API key.
Python

Response formats

Every field the body endpoint returns, and the format values.

Section identifiers

How to get an actId and fetch a section’s metadata and body.
Last modified on November 20, 2026