This section documents the citationPills data returned by the Google AI Mode endpoint. Citation pills are part of the AI Mode response — no separate API call is needed.Documentation Index
Fetch the complete documentation index at: https://docs.cloro.dev/llms.txt
Use this file to discover all available pages before exploring further.
Example request
citationPills array documented below.
Overview
Google renders inline pill chips (e.g.[Reuters +5]) next to AI Mode text to attribute each claim to one or more sources. The result.citationPills array exposes those pills denormalized: each entry is one (pill, source) pair carrying the visible pill text, a citationPillId that groups entries from the same chip, and the per-source url/domain/description/position.
When a pill cites N sources, the array contains N entries that share the same label and citationPillId but differ in their per-source fields. Group by citationPillId to recover the pill-level structure.
The shape mirrors the ChatGPT endpoint’s citationPills — consumers can iterate citation pills the same way across both surfaces.
The field is omitted from result when the answer has no pills.
Citation pill structure
| Field | Type | Description |
|---|---|---|
label | string | Visible pill text as Google renders it (e.g. "Reuters +5"). Repeats across entries from the same chip. |
citationPillId | integer | Stable identifier shared by all entries from the same visible chip. 1-based ordinal assigned in document order. |
url | string | Direct URL of the cited source. |
domain | string | Host extracted from url, for grouping and display. |
description | string | Source snippet from the sources rail when Google ships one. Omitted when absent. |
position | integer | 1-based position of this source in the sibling result.sources array. |
label and citationPillId repeat across entries that came from the same chip. To render pill-level UI (one chip per pill), group by citationPillId. To render source-level UI (one link per cited source), iterate directly.Group by
citationPillId, not label — the same label can repeat across different IDs when Google renders the chip at multiple points.Entries per pill may not match the
+N in the label. Google’s +N reflects the chip rail, not the underlying citation payload.