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 Modegoogle.com
Google AI Mode answer recommending earbuds with product cards, a source panel and a follow-up input.
API responseCompleted
Country
US
Credits
1.25
Sources
4
{
  "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)?"
  }
}
See every response field
Task type
AIMODE
Input
payload.query
Price
1.25 credits per request
Delivery
Webhook or polling

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, markdownthe conversational Google AI Mode answer.
  • sourcesthe cited pages returned with that answer; preserve these alongside the full response.
  • taskTypeAIMODE with payload.query selects AI Mode. Use GOOGLE in a separate request to measure AI Overviews.
COMPLETEDAIMODE
{
  "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, and track each surface's schema and coverage rate on its own.

Step 1

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, and the prompt is sent in the language you wrote it in.

cURL
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"
  }
}'
Step 2

Read the completed response

Replace TASK_ID with task.id from the submission. Poll at intervals while QUEUED or PROCESSING; 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
curl https://api.querying.ai/v1/async/task/TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

Cost and availability

Only completed tasks are charged, at 1.25 credits each. Check supported regions and plan concurrency.

View pricing →
Request cost by plan
Plan1,000 requests
Basic≈ $3.13
Max≈ $1.25

Effective rates assume all included monthly credits are used.

Reading the results

Sources follow what Google returns for each answer. Collection errors are reported separately from the answer, and AI Mode health is published at status.querying.ai, so gaps are quick to diagnose.

Guides

Explore related capabilities

Start with 500 free credits

Run your first task in the Playground, or call the API with your key.