Skip to main content
This section documents the sources data returned by the Gemini endpoint. Sources are part of the Gemini response — no separate API call is needed.

Overview

Gemini sources follow the common sources structure (position, url, label, description) plus one Gemini-specific field.

Gemini-specific source fields

FieldTypeDescription
confidence_levelintegerConfidence score for the source (e.g., 0-100)
About sources availabilityGemini may not return sources for certain prompts. The sources array will be empty when Gemini doesn’t provide citations. This is normal behavior and doesn’t indicate an error — some prompts simply don’t trigger Gemini’s source-citing mechanism.

Example request

{
  "prompt": "Explain quantum entanglement",
  "country": "US"
}
This produces a response containing the sources array shown below.

Example response

{
  "success": true,
  "result": {
    "text": "Quantum entanglement is a physical phenomenon...",
    "sources": [
      {
        "position": 1,
        "label": "Wikipedia",
        "url": "https://en.wikipedia.org/wiki/Quantum_entanglement",
        "description": "Quantum entanglement is a physical phenomenon that occurs...",
        "confidence_level": 0.95
      }
    ]
  }
}