Working with Responses
GenSearch responses are delivered as markdown text with inline citations that link back to source documents in the AlphaSense content library. This guide covers the three citation formats you will encounter, how to parse them programmatically, and how to extract structured data from the markdown response.
The 3 Citation Formats
Every citation in a GenSearch response is a markdown hyperlink pointing to
research.alpha-sense.com with deep-link query parameters. The API uses three distinct formats
depending on context.
| Format | Example | When Used |
|---|---|---|
| Short name + link | [[38 • S1/A] ](https://research.alpha-sense.com?docid=...&page=29) | Most common inline citation |
| Number-only + link | [[311]](https://research.alpha-sense.com?docid=...&page=33) | Repeated references, tables |
| Full metadata + link | [[312] S1/A • Roblox Corp • 22 Feb 21 • "Amended Prospectus"](https://research.alpha-sense.com?docid=...&page=33) | First mention, full provenance |
Example in context
Apple reported Q4 2025 revenue of $94.9 billion, a 6% year-over-year increase
[[38 • 10-K]](https://research.alpha-sense.com?docid=V00001234&page=29). The growth was primarily
driven by strong performance in the Services segment
[[38]](https://research.alpha-sense.com?docid=V00001234&page=31), which reached an all-time high of
$25.0 billion
[[312] 10-K • Apple Inc. • 30 Oct 25 • "Annual Report"](https://research.alpha-sense.com?docid=V00001234&page=45).
URL Anatomy
Each citation URL contains query parameters that deep-link into the AlphaSense research platform.
| Parameter | Description | Example |
|---|---|---|
docid | Unique document identifier in the AlphaSense content library | V00001234 |
page | The page number within the document where the cited content appears | 29 |
stmt | Statement highlight identifier -- pinpoints the exact statement on the page | stmt_5a3b |
hl | Highlight terms -- search keywords highlighted in the document view | revenue+growth |
A fully-qualified citation URL looks like this:
https://research.alpha-sense.com?docid=V00001234&page=29&stmt=stmt_5a3b&hl=revenue+growth
Not all parameters are present in every URL. The docid and page parameters appear in virtually
every citation, while stmt and hl are included when available.