Monitor Gemini Responses
Gemini
Extract Google Gemini
Extract structured data from Google Gemini with source citations and multiple output formats for AI monitoring and analysis.
POST
Monitor Gemini Responses
Overview
The Google Gemini endpoint extracts structured data from Google’s Gemini AI. It captures the generated text response, citations/sources, and supports multiple export formats including Markdown and HTML.Web search behaviorThis endpoint uses Gemini’s default interface, which may automatically perform web searches and provide source citations based on its own determination of whether the query requires current information.
Request parameters
Uses common parameters. Endpoint-specific options:include.rawResponse(boolean): Include raw streaming response events. Defaults tofalse
Response objects
The response includes the following sections. See each subpage for the full schema.| Section | Description |
|---|---|
| Sources | Source citations with contextual descriptions |
Response schema
Includes common response fields plus:| Field | Type | Description |
|---|---|---|
result.text | string | The main text content of the response |
result.sources | array | Array of sources cited in the response |
result.markdown | string | Response formatted in Markdown (included when include.markdown is true) |
result.html | string | Response formatted in HTML (included when include.html is true) |
result.rawResponse | array | Array of Gemini’s streamed response events (included when include.rawResponse is true) |
Example usage
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Request parameters for monitoring Gemini responses
The prompt to send to Gemini
Required string length:
1 - 10000Example:
"Explain quantum computing"
Country/region code for localized response
Example:
"US"
Optional flags for including additional response formats
Example:
{
"markdown": true,
"html": false,
"rawResponse": false
}