Skip to main content
This section documents the citationPills data returned by the Perplexity endpoint. Perplexity renders inline bracketed citation markers (e.g. [1][2][3]) next to its answer text. The result.citationPills array exposes those bracketed citations denormalized, as part of the Perplexity response so no separate API call is needed: each entry is one (pill, source) pair carrying a per-source label (the source’s own page title), a citationPillId that groups entries from the same bracketed citation, and the per-source url/domain/description/position. For use cases, pricing context, and copy-paste examples, see the Perplexity citations API page on the product site. When a bracketed citation references 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 citation-level structure. The field is omitted from result when the answer has no pills.

Example request

Citation pill structure

Response example