Skip to main content
ChatGPT cites sources inline as it answers. The ChatGPT endpoint exposes those citations denormalized in 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, so description is 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 the description key is omitted entirely from the pill object.
When the same source URL appears as both a search result and inside a grouped card, the search-result form (with description) is preferred.

Response example