Google AI Mode API for Answers & Citations

Collect answers and citations from Google’s conversational AI Mode for AI visibility measurement and market comparisons.

Google AI Mode conversational answer recommending earbuds, with a source panel and follow-up input.

Response structure

Read the conversational answer in text and markdown together with its cited sources. AI Mode is its own task type and response, separate from the AI Overview box on a regular results page.

  • text, markdown: the conversational Google AI Mode answer.
  • sources: the cited pages returned with that answer; preserve these alongside the full response.
  • taskType: AIMODE with payload.query selects AI Mode. Use GOOGLE in a separate request to measure AI Overviews.
{
  "task": {
    "taskType": "AIMODE"
  },
  "response": {
    "sources": [
      {
        "url": "https://www.rtings.com/headphones/reviews/best/wireless-earbuds",
        "label": "RTINGS.com (+1) - Related results",
        "position": 1
      },
      {
        "url": "https://www.bestbuy.com/product/bose-quietcomfort-ultra-earbuds-2nd-gen-true-wireless-noise-cancelling-in-ear-earbuds-with-immersive-audio-black/J7C5V6WCKZ/sku/6628900",
        "label": "Best Buysn._setImageSrc('img-VBeiarKEOqOrmLQPgbPn4A8_8','data:image\\/jpeg;base64,\\/9j\\/4AAQSkZJRgABAQAAAQABAAD\\/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys\\/RD84QzQ",
        "position": 2
      },
      {
        "url": "https://bose.com/p/in-ear/bose-quietcomfort-headphones/QCEARB24-HEADPHONEIN-DDPMNT-WW.html?srsltid=AfmBOopSWVnMoZsTe-s7lRVx33x-GwqE6r0mDIQhAG9H7WkHN_AtM9MX_f4",
        "label": "Bose Store",
        "position": 3
      },
      {
        "url": "https://www.target.com/p/beats-solo-buds-true-wireless-bluetooth-earbuds-transparent-red/-/A-92146819",
        "label": "Target",
        "position": 4
      }
    ],
    "text": "The Bose QuietComfort Ultra Earbuds (2nd Gen)\nGo to product viewer dialog for this item. and the budget-friendly Anker Soundcore Space A40\nGo to product viewer dialog for this item. are the best wireless earbuds for commuting, offering top-tier active noise cancellation (ANC) to block out subway rumbles and bus engine noise.\nTop Wireless Earbuds for Commuting\nPrice: ~$249 – $299\nBest For: Absolute silence and supreme comfort.\nKey Features: World-class adjustable ANC, CustomTune technology that calibrates sound to your ear shape, and Bose Immersive Audio spatial sound. Offers up to 6 hours of battery life (4 hours with immersive mode) plus an IPX4 water-resistance rating. You can check availability at local retailers via Best Buy.\nPrice: Under $100\nBest For: Value and price-to-performance ratio.\nKey Features: Adaptive ANC that automatically scales to transit noise, multipoint Bluetooth pairing, and an impressive 8 hours of continuous battery life with ANC on (plus 4 extra charges in the case).\nPrice: ~$149\nBest For: Heavy-duty noise isolation on a moderate budget.\nKey Features: Features 11 levels of adjustable noise cancellation, secure stability bands for crowded trains, and up to 8.5 hours of battery life. Available directly from the Bose Store.\nPrice: ~$70\nBest For: Ultra-portable pocket minimalist design.\nKey Features: Tiny form-factor case, robust Apple/Android one-touch pairing, and up to 18 hours of combined power. Note that they rely on passive noise isolation rather than active noise cancellation. Check stock locally through Target.\nIf you want to narrow down your choice, tell me:\nWhat is your maximum budget?\nDo you prefer a stem design (like AirPods) or a bud design?\nWhat phone do you use (iPhone or Android)?"
  }
}

Track brand mentions and citations in Google AI Mode

Track recommendation and comparison prompts that lead to longer AI answers. Compare the linked evidence with regular AI Overviews without mixing their response schemas or coverage rates.

How to collect Google AI Mode answers with the API

Store your dashboard API key in the server environment variable QUERYING_API_KEY, then run this request. The country code selects the collection market; it does not translate the question.

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "taskType": "AIMODE",
  "payload": {
    "query": "best wireless earbuds for commuting",
    "country": "US"
  }
}'

Read the completed response

Replace TASK_ID with task.id from the submission. Poll at intervals while QUEUED or RUNNING; when COMPLETED, read the engine fields inside response. Handle FAILED as an error. Retrieve and store the result within 24 hours of completion, or receive it by webhook.

curl https://api.querying.ai/v1/async/task/TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

Cost and availability

Request cost by plan
Plan1 request1,000 requests
Basic≈ $0.00400≈ $4.00
Max≈ $0.00190≈ $1.90

Effective rates assume all included monthly credits are used.

Each completed task uses 2 credits. Failed tasks are not charged. Check supported regions and plan concurrency.

Limits when interpreting results

Market support and answer availability can change. Optional sources depend on what Google returns. Keep collection errors separate from missing citations and check the public service status when diagnosing gaps.

Full API documentation

Explore related capabilities