result.citationPills — no separate API call. For use cases, pricing context, and copy-paste examples, see the ChatGPT sources API page on the product site.
Each entry is one (pill, source) pair. When a chip cites N sources, the array contains N entries sharing the same citationPillId but carrying different per-source label, url, and domain. Group by citationPillId to recover the pill-level structure.
The markdown field carries the same citations as inline [label](url) links; text carries plain text without them. The citationPills field is omitted from result when the answer has no pills.
Example request
Citation pill structure
type values
type reflects the structure of the underlying citation event in ChatGPT’s response:
"searchResult"— a regular web search hit. ChatGPT provides a snippet, sodescriptionis populated."groupedWebpage"— a citation rendered in the ChatGPT UI as a multi-source card (commonly used for community references like Reddit, Wikipedia, and ArXiv). ChatGPT does not provide a per-source snippet for these, so thedescriptionkey is omitted entirely from the pill object.