Site icon DataForSEO

How to get LLM citation data with LLM Mentions API

Understanding how often and how prominently a website is cited in LLM’s is one of the core processes in AI visibility tracking. However, getting correct and detailed LLM citation data isn’t simple without access to the right tools. You must search across thousands of real AI responses for citations of your website, count them, and systematize them into actionable insights. That will require days of manual work or an expensive in-house scraping system.

DataForSEO LLM Mentions API eliminates these problems entirely. With the right endpoints and parameters, you can instantly fetch citation data from a database of millions of real AI responses. This guide demonstrates how to use the LLM Mentions API to get structured citation data for any domain.

A short, but important explainer

Before delving into the guide, it’s important to explain some key aspects regarding data retrieval.

First, in this guide, we will showcase two workflows for retrieving two types of citation data: the total LLM citation count and detailed data on individual citations. The citation data is available for Google AI Overview and ChatGPT LLMs.

Second, the LLM Mentions API endpoints return all web search results for the named LLMs, but not all of the results can be considered citations. The web search results come in two distinct data fields: search_results and sources. The search_results encompass all web search outputs that the model retrieved when looking up information. The sources are the results that the model actually cited and used in the response. So, in our case, the citation data includes the results from the sources data fields of the API responses. For aggregation endpoints of the LLM Mentions API, citation data comes aggregated in the mentions and sources_domain fields.

Getting the total LLM citation count with the LLM Mentions API

To get the total citation count for any domain, you can use one of the aggregation endpoints of the LLM Mentions API – the Aggregated Metrics endpoint. This endpoint returns the mentions data from our extensive dataset in an aggregated format. It provides a structured overview of how often a keyword or domain is mentioned in different parts of LLM responses, including cited sources. From the data returned by this endpoint, it is easy to derive the total citation count. Here is how.

1. Call the Aggregated Metrics endpoint:

POST https://api.dataforseo.com/v3/ai_optimization/llm_mentions/aggregated_metrics/live

2. Specify the platform to get citation count from. You can choose between google and chat_gpt.

3. Set the location parameters with location_name or location_code. Note that for the ChatGPT platform, the only supported location is the United States.

4. In the target array, specify the target domain entity. Within the domain entity object, add the following parameters:

This is the basic request for getting the total citation count for a domain. You can learn more about how to define targets and apply additional parameters in this Help Center article.

Request example:

[
  {
    "platform": "google",
    "target": [
      {
        "domain": "dataforseo.com",
        "search_scope": [
          "sources"
        ]
      }
    ],
    "location_name": "United States"
  }
]

The response returns as follows:

{
  "version": "0.1.20260525",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.2771 sec.",
  "cost": 0.101,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "05281333-1535-0635-0000-603c53b70c96",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.1887 sec.",
      "cost": 0.101,
      "result_count": 1,
      "path": [
        "v3",
        "ai_optimization",
        "llm_mentions",
        "aggregated_metrics",
        "live"
      ],
      "data": {
        "api": "ai_optimization",
        "function": "aggregated_metrics",
        "platform": "google",
        "target": [
          {
            "domain": "dataforseo.com",
            "search_scope": [
              "sources"
            ]
          }
        ],
        "location_name": "United States"
      },
      "result": [
        {
          "total": {
            "location": [
              {
                "type": "group_element",
                "key": "2840",
                "mentions": 236,
                "ai_search_volume": 55090,
                "impressions": null
              }
            ],
            "language": [
              {
                "type": "group_element",
                "key": "en",
                "mentions": 234,
                "ai_search_volume": 52190,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "es",
                "mentions": 2,
                "ai_search_volume": 2900,
                "impressions": null
              }
            ],
            "platform": [
              {
                "type": "group_element",
                "key": "google",
                "mentions": 236,
                "ai_search_volume": 55090,
                "impressions": null
              }
            ],
            "sources_domain": [
              {
                "type": "group_element",
                "key": "dataforseo.com",
                "mentions": 236,
                "ai_search_volume": 55090,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.youtube.com",
                "mentions": 116,
                "ai_search_volume": 17890,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "developers.google.com",
                "mentions": 55,
                "ai_search_volume": 9300,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "serpapi.com",
                "mentions": 67,
                "ai_search_volume": 8620,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "support.google.com",
                "mentions": 37,
                "ai_search_volume": 3670,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.reddit.com",
                "mentions": 56,
                "ai_search_volume": 10570,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "seranking.com",
                "mentions": 43,
                "ai_search_volume": 8920,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.semrush.com",
                "mentions": 35,
                "ai_search_volume": 11330,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "apify.com",
                "mentions": 34,
                "ai_search_volume": 7160,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "brightdata.com",
                "mentions": 28,
                "ai_search_volume": 4440,
                "impressions": null
              }
            ],
            "search_results_domain": null,
            "brand_entities_title": null,
            "brand_entities_category": null
          },
          "items": null
        }
      ]
    }
  ]
}

Here is the result. In the total object, find the location array. Within this array, the mentions field contains the total count of citations for the target domain in the United States. For dataforseo.com the value is 236. In addition, you can see the aggregated ai_search_volume value of all the citations.

With just one API request, you get the total count of LLM citations for a specific domain. No manual AI response analysis or paying for a scraper.

Moreover, you can use the Aggregation Metrics endpoint to explore top domains cited in AI responses for a specific keyword.

To do that, you just need to specify the target keyword entity instead of the domain entity, with the following parameters:

The request looks like this:

[
  {
    "platform": "google",
    "target": [
      {
        "keyword": "seo",
        "search_scope": [
          "answer"
        ]
      }
    ],
    "location_name": "United States"
  }
]

The response returns as follows:

{
  "version": "0.1.20260525",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.7143 sec.",
  "cost": 0.101,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "05281332-1535-0635-0000-a4ac3bbd3e31",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.6309 sec.",
      "cost": 0.101,
      "result_count": 1,
      "path": [
        "v3",
        "ai_optimization",
        "llm_mentions",
        "aggregated_metrics",
        "live"
      ],
      "data": {
        "api": "ai_optimization",
        "function": "aggregated_metrics",
        "platform": "google",
        "target": [
          {
            "keyword": "seo",
            "search_scope": [
              "answer"
            ]
          }
        ],
        "location_name": "United States"
      },
      "result": [
        {
          "total": {
            "location": [
              {
                "type": "group_element",
                "key": "2840",
                "mentions": 184820,
                "ai_search_volume": 127458160,
                "impressions": null
              }
            ],
            "language": [
              {
                "type": "group_element",
                "key": "en",
                "mentions": 181427,
                "ai_search_volume": 98725260,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "es",
                "mentions": 3393,
                "ai_search_volume": 28732900,
                "impressions": null
              }
            ],
            "platform": [
              {
                "type": "group_element",
                "key": "google",
                "mentions": 184820,
                "ai_search_volume": 127458160,
                "impressions": null
              }
            ],
            "sources_domain": [
              {
                "type": "group_element",
                "key": "www.youtube.com",
                "mentions": 99378,
                "ai_search_volume": 73890770,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.reddit.com",
                "mentions": 53083,
                "ai_search_volume": 34319920,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.indeed.com",
                "mentions": 16747,
                "ai_search_volume": 13503540,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "en.wikipedia.org",
                "mentions": 19082,
                "ai_search_volume": 30319700,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.linkedin.com",
                "mentions": 14179,
                "ai_search_volume": 6220540,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.facebook.com",
                "mentions": 11559,
                "ai_search_volume": 4913830,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.wix.com",
                "mentions": 12083,
                "ai_search_volume": 14480500,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.quora.com",
                "mentions": 11996,
                "ai_search_volume": 5456470,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.semrush.com",
                "mentions": 11549,
                "ai_search_volume": 9505570,
                "impressions": null
              },
              {
                "type": "group_element",
                "key": "www.instagram.com",
                "mentions": 8131,
                "ai_search_volume": 3888350,
                "impressions": null
              }
            ],
            "search_results_domain": null,
            "brand_entities_title": null,
            "brand_entities_category": null
          },
          "items": null
        }
      ]
    }
  ]
}

In the response, locate the sources_domain array. This array contains a list of the top domains cited as sources that contain the target keyword mentions. The mentions value shows how many times the domain was cited alongside the target keyword.

Getting the data on individual LLM citations with the LLM Mentions API

Exploring which website pages are being cited in the LLM responses is also vital for AI visibility tracking. This way, you can understand which types of your content an LLM considers relevant, where your pages are placed in the lists of sources, and more. The best endpoint for this task is the LLM Mentions Search.

This endpoint retrieves detailed information about domain mentions and citations, rather than aggregated insights. The returned data includes full AI response texts and lists of cited sources, along with all relevant metadata, such as URLs and descriptions.

Here is how you make a request to the Mentions Search endpoint to get individual citations:

1. Call the LLM Mentions Search endpoint

POST https://api.dataforseo.com/v3/ai_optimization/llm_mentions/search/live

2. Specify the target platform.

3. Set the location_name or location_coordinate.

4. Specify the target domain entity with identical parameters as in the first request to the Aggregated Metrics endpoint ( "domain": "yourdomain.com" and "search_scope": ["sources"] ).

Request example:

[
  {
    "platform": "google",
    "target": [
      {
        "domain": "dataforseo.com",
        "search_scope": [
          "sources"
        ]
      }
    ],
    "location_name": "United States"
  }
]

Response example:

{
  "version": "0.1.20260525",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.2310 sec.",
  "cost": 0.2,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "05281327-1535-0634-0000-edfaf4e6f244",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.1627 sec.",
      "cost": 0.2,
      "result_count": 1,
      "path": [
        "v3",
        "ai_optimization",
        "llm_mentions",
        "search",
        "live"
      ],
      "data": {
        "api": "ai_optimization",
        "function": "search",
        "platform": "google",
        "target": [
          {
            "domain": "dataforseo.com",
            "search_scope": [
              "sources"
            ]
          }
        ],
        "location_name": "United States"
      },
      "result": [
        {
          "total_count": 236,
          "current_offset": 0,
          "search_after_token": "eyJDdXJyZW50T2Zmc2V0IjoxMDAsIlJhd1JlcXVlc3QiOnsidGFyZ2V0IjpbeyJ0eXBlIjoiZG9tYWluIiwiZG9tYWluIjoiZGF0YWZvcnNlby5jb20iLCJzZWFyY2hfc2NvcGUiOlsic291cmNlcyJdLCJzZWFyY2hfdHlwZSI6ImluY2x1ZGUiLCJpbmNsdWRlX3N1YmRvbWFpbnMiOmZhbHNlfV0sInBsYXRmb3JtIjoiZ29vZ2xlIiwibG9jYXRpb24iOjI4NDAsImxpbWl0IjoxMDAsIm9mZnNldCI6MCwib3JkZXJfYnkiOm51bGwsInNlYXJjaF9hZnRlcl90b2tlbiI6bnVsbCwiYWlkIjoxNTM1fSwiU2VhcmNoQWZ0ZXJEYXRhIjp7IlZlcnNpb24iOjEsIlNlYXJjaEFmdGVyVmFsdWVzIjp7ImFpX3NlYXJjaF92b2x1bWUiOjkwLCJoYXNoIjotNzk2MzI2MjU3MTg0NDEyNzExMH0sIlRva2VuUmVhbE9mZnNldCI6MH19",
          "items_count": 100,
          "items": [
            {
              "platform": "google",
              "model_name": "google_ai_overview",
              "location_code": 2840,
              "language_code": "en",
              "question": "what is asin #",
              "answer": "An `Amazon Standard Identification Number` [ (ASIN)](https://www.google.com/search?q=%28ASIN%29&csui=3&hl=en&gl=US&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc&ved=2ahUKEwjR_NXi1pqTAxUTq4kEHRfoFY4QgK4QegYIAQgAEAU) is a unique 10-character alphanumeric code assigned by Amazon.com for product identification. Used exclusively within the Amazon ecosystem to track, search, and manage inventory, it acts as a specific identifier for items. ASINs are crucial for sellers, appearing in product URLs and product detail pages.[[1]](https://www.helium10.com/blog/amazon-asins/)[[2]](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)[[3]](https://www.taxually.com/blog/what-is-an-amazon-asin-number-and-how-to-find-it)[[4]](https://www.marpipe.com/blog/what-is-an-asin-guide-to-amazon-asin-numbers-skus-and-seller-best-practices-2025)[[5]](https://www.workbase.com/blog/amazon-asin)\n\n**Usage Examples of ASIN** \n\n- **Locating Products:** You can find the 10-digit code in the product URL after `/dp/` or in the \"Product Details\" section of a listing.\n- **Search/Advertising:** Sellers use ASINs to target specific products in Amazon Advertising campaigns.\n- **Inventory Management:** It separates variations, with a Parent ASIN grouping items and Child ASINs for specific sizes or colors.\n- **API Data Retrieval:** The ASIN is used in APIs to fetch pricing, rating, and seller information.[[1]](https://www.marpipe.com/blog/what-is-an-asin-guide-to-amazon-asin-numbers-skus-and-seller-best-practices-2025)[[2]](https://profitwhales.com/articles/amazon-asin-what-does-it-mean-for-your-business/)[[3]](https://www.sellermate.ai/post/asin-meaning-amazon-identifier)[[4]](https://dataforseo.com/help-center/asin-in-amazon-api)[[5]](https://www.workbase.com/blog/amazon-asin)\n\n**Synonyms/Similar Identifiers**   \nWhile ASIN is unique to Amazon, it is often compared to or used alongside these identifiers:[[1]](https://www.carbon6.io/blog/understanding-amazon-asins-your-guide-to-optimizing-product-visibility/)[[2]](https://www.taxually.com/blog/what-is-an-amazon-asin-number-and-how-to-find-it)\n\n- **ISBN:** International Standard Book Number (used as the ASIN for books).\n- **UPC:** Universal Product Code.\n- **EAN:** European Article Number.\n- **SKU:** Stock Keeping Unit (a seller-assigned identifier, whereas ASIN is assigned by Amazon).[[1]](https://www.datafeedwatch.com/blog/amazon-asin-number-what-is-it-and-how-do-you-get-it#:~:text=UPC%20is%20primarily%20used%20in%20the%20United,accuracy%20and%20efficiency%20in%20the%20global%20marketplace.)[[2]](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)[[3]](https://www.carbon6.io/blog/understanding-amazon-asins-your-guide-to-optimizing-product-visibility/)[[4]](https://www.taxually.com/blog/what-is-an-amazon-asin-number-and-how-to-find-it)\n\n**Key Details** \n\n- **Structure:** 10-character alphanumeric, always starts with 'B' for many items.\n- **Location-Specific:** The same item may have a different ASIN on Amazon.co.uk versus Amazon.com.[[1]](https://www.workbase.com/blog/amazon-asin)[[2]](https://dataforseo.com/help-center/asin-in-amazon-api)",
              "sources": [
                {
                  "snippet": "You can find an ASIN in a few ways: * **Product URL** The ASIN is usually the 10-character string that comes after /dp/. * **Produ...",
                  "source_name": "Marpipe",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 1,
                  "title": "What is an ASIN? Guide to Amazon ASIN Numbers, SKUs, and Seller Best Practices (2025) | Marpipe",
                  "domain": "www.marpipe.com",
                  "url": "https://www.marpipe.com/blog/what-is-an-asin-guide-to-amazon-asin-numbers-skus-and-seller-best-practices-2025",
                  "publication_date": null
                },
                {
                  "snippet": "An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its pa...",
                  "source_name": "Wikipedia",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 2,
                  "title": "Amazon Standard Identification Number - Wikipedia",
                  "domain": "en.wikipedia.org",
                  "url": "https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number",
                  "publication_date": null
                },
                {
                  "snippet": "Determining a Product's ASIN - A Brief Guide Even though the ASIN is only relevant for the Amazon platform, the ten-digit number f...",
                  "source_name": "Workbase",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 3,
                  "title": "Amazon ASIN: Things to Know for Online Retailers - Workbase",
                  "domain": "www.workbase.com",
                  "url": "https://www.workbase.com/blog/amazon-asin",
                  "publication_date": null
                },
                {
                  "snippet": "Differentiating ASIN from other product identifiers * ASIN vs. SKU. ASIN and SKU are both unique identifiers, but they have differ...",
                  "source_name": "Taxually",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 4,
                  "title": "What is an Amazon ASIN Number and How to Find it? - Taxually",
                  "domain": "www.taxually.com",
                  "url": "https://www.taxually.com/blog/what-is-an-amazon-asin-number-and-how-to-find-it",
                  "publication_date": null
                },
                {
                  "snippet": "ASINs can differ by location. For example, the same item sold on amazon.co.uk and amazon.com may have different ASINs. You can fin...",
                  "source_name": "DataForSEO",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 5,
                  "title": "What is ASIN in Amazon API? | DataForSEO Help Center",
                  "domain": "dataforseo.com",
                  "url": "https://dataforseo.com/help-center/asin-in-amazon-api",
                  "publication_date": null
                },
                {
                  "snippet": "UPC is primarily used in the United States and Canada for tracking trade items in stores. It is a barcode symbology widely adopted...",
                  "source_name": "DataFeedWatch",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 6,
                  "title": "What is Amazon ASIN number & how to get it? - DataFeedWatch",
                  "domain": "www.datafeedwatch.com",
                  "url": "https://www.datafeedwatch.com/blog/amazon-asin-number-what-is-it-and-how-do-you-get-it#:~:text=UPC%20is%20primarily%20used%20in%20the%20United,accuracy%20and%20efficiency%20in%20the%20global%20marketplace.",
                  "publication_date": null
                },
                {
                  "snippet": "ASIN stands for Amazon Standard Identification Number. It's a unique 10-character alphanumeric code that identifies every product ...",
                  "source_name": "Helium 10",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 7,
                  "title": "What Is an ASIN & How to Create One | Helium 10",
                  "domain": "www.helium10.com",
                  "url": "https://www.helium10.com/blog/amazon-asins/",
                  "publication_date": null
                },
                {
                  "snippet": "Amazon's Product Variation Policy * Parent ASIN: The Parent ASIN is a non-buyable entity that acts as a grouping mechanism for rel...",
                  "source_name": "SellerMate.AI",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 8,
                  "title": "What is ASIN? Understanding Its Meaning and Importance on Amazon",
                  "domain": "www.sellermate.ai",
                  "url": "https://www.sellermate.ai/post/asin-meaning-amazon-identifier",
                  "publication_date": null
                },
                {
                  "snippet": "ASIN vs UPC vs EAN Unlike UPC (Universal Product Code) or EAN (European Article Number. A European Article Number, also known as a...",
                  "source_name": "Carbon6",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 9,
                  "title": "Understanding Amazon ASINs: Your Guide to Optimizing Product ...",
                  "domain": "www.carbon6.io",
                  "url": "https://www.carbon6.io/blog/understanding-amazon-asins-your-guide-to-optimizing-product-visibility/",
                  "publication_date": null
                },
                {
                  "snippet": "Simplify Search and Comparison. ASINs play a pivotal role in simplifying the search and comparison process on Amazon. When custome...",
                  "source_name": "Profit Whales",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 10,
                  "title": "Amazon ASIN – What does it mean for your business? - Profit Whales",
                  "domain": "profitwhales.com",
                  "url": "https://profitwhales.com/articles/amazon-asin-what-does-it-mean-for-your-business/",
                  "publication_date": null
                }
              ],
              "search_results": null,
              "ai_search_volume": 8100,
              "monthly_searches": [
                {
                  "year": 2026,
                  "month": 2,
                  "search_volume": 8100
                },
                {
                  "year": 2026,
                  "month": 1,
                  "search_volume": 8100
                },
                {
                  "year": 2025,
                  "month": 12,
                  "search_volume": 8100
                },
                {
                  "year": 2025,
                  "month": 11,
                  "search_volume": 8100
                },
                {
                  "year": 2025,
                  "month": 10,
                  "search_volume": 6600
                },
                {
                  "year": 2025,
                  "month": 9,
                  "search_volume": 6600
                },
                {
                  "year": 2025,
                  "month": 8,
                  "search_volume": 6600
                },
                {
                  "year": 2025,
                  "month": 7,
                  "search_volume": 6600
                },
                {
                  "year": 2025,
                  "month": 6,
                  "search_volume": 6600
                },
                {
                  "year": 2025,
                  "month": 5,
                  "search_volume": 8100
                },
                {
                  "year": 2025,
                  "month": 4,
                  "search_volume": 8100
                },
                {
                  "year": 2025,
                  "month": 3,
                  "search_volume": 8100
                }
              ],
              "first_response_at": "2026-03-12 15:41:06 +00:00",
              "last_response_at": "2026-03-12 15:41:06 +00:00",
              "brand_entities": null,
              "fan_out_queries": null
            },
            {
              "platform": "google",
              "model_name": "google_ai_overview",
              "location_code": 2840,
              "language_code": "en",
              "question": "google keyword api",
              "answer": "The primary way to programmatically access keyword data from Google is through the **[Google Ads API](https://developers.google.com/google-ads/api/docs/keyword-planning/overview)** . This interface provides tools for **keyword planning** , including generating new ideas and retrieving historical metrics.[](https://developers.google.com/google-ads/api/docs/keyword-planning/overview#:~:text=Page%20Summary,metrics%2C%20the%20statistics%20refresh%20monthly.) [[1]](https://developers.google.com/google-ads/api/docs/keyword-planning/overview)[[2]](https://developers.google.com/google-ads/api/docs/get-started/introduction)[[3]](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics)\n\nCore Keyword Services\n\n- **[KeywordPlanIdeaService](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas)** : Generates new keyword ideas based on seed keywords, URLs, or both.\n- **[GenerateHistoricalMetrics](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics)** : Provides past statistics such as average monthly search volume, competition level, and bid ranges.\n- **[GenerateForecastMetrics](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics)** : Estimates future performance (clicks, impressions, and costs) for a set of keywords.[](https://developers.google.com/google-ads/api/docs/keyword-planning/overview#:~:text=Page%20Summary,metrics%2C%20the%20statistics%20refresh%20monthly.) [[1]](https://developers.google.com/google-ads/api/docs/keyword-planning/overview)[[2]](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas)[[3]](https://developers.google.com/google-ads/api/samples/generate-keyword-ideas)[[4]](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics)[[5]](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics)\n\nImplementation Details\n\n- **Authentication** : Requires a Google Ads developer token , a Google Cloud project, and OAuth2 credentials.\n- **Filtering** : Results can be refined by geographic location, language, and search network settings.\n- **Usage Limits** : Keyword Planning services are more strictly rate-limited than other Google Ads API services; caching results is recommended as metrics only refresh monthly.[](https://developers.google.com/google-ads/api/docs/keyword-planning/overview#:~:text=Page%20Summary,metrics%2C%20the%20statistics%20refresh%20monthly.) [[1]](https://developers.google.com/google-ads/api/docs/keyword-planning/overview)[[2]](https://n8n.io/workflows/2494-generate-seo-keyword-search-volume-data-using-google-api/)[[3]](https://www.youtube.com/watch?v=EMXXJZeayFU&t=12)[[4]](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas)[[5]](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics)[[6]](https://www.reddit.com/r/PPC/comments/z0s0oi/how_to_use_google_ads_api_to_get_keyword_search/)\n\nAlternative APIs\n\n- **[Google Search Console API](https://developers.google.com/webmaster-tools)** : Best for viewing actual search queries (keywords) that already drive traffic to your specific verified sites.\n- **[Custom Search JSON API](https://developers.google.com/custom-search/v1/overview)** : Used to retrieve search results (SERPs) programmatically rather than keyword volume or planning data.\n- **Third-Party Providers** : Services like [DataForSEO](https://dataforseo.com/apis/google-ads-api) or [KeywordTool.io](https://keywordtool.io/api) offer aggregated keyword data with fewer request restrictions than the direct Google Ads API.[](https://dataforseo.com/apis/google-ads-api#:~:text=Google%20Ads%20API%20-%20Keywords%20For%20Site,passed%20in%20your%20API%20request.) [[1]](https://dataforseo.com/apis/google-ads-api)[[2]](https://developers.google.com/webmaster-tools)[[3]](https://developers.google.com/custom-search/v1/overview)[[4]](https://keywordtool.io/api)[[5]](https://www.reddit.com/r/PPC/comments/z0s0oi/how_to_use_google_ads_api_to_get_keyword_search/)\n\n[](https://developers.google.com/google-ads/api/docs/keyword-planning/overview) Keyword Planning - Ads API - Google for Developers Apr 22, 2026 — Page Summary * Keyword Planning services are rate limited, allowing fewer requests per minute compared to other services. * It is ...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:0)\nGoogle for Developers[](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas) Keyword Ideas - Ads API - Google for Developers Apr 22, 2026 — Page Summary * The KeywordPlanIdeaService can be used to find new keywords and historical metrics for Google Search campaigns. * K...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:1)\nGoogle for Developers[](https://www.reddit.com/r/PPC/comments/z0s0oi/how_to_use_google_ads_api_to_get_keyword_search/) How to use google ads API to get keyword search volumes ...Nov 21, 2022 — How to use google ads API to get keyword search volumes without creating an ad group? Google Ads. In the google ads GUI it is poss...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:2)\nReddit·r/PPC[](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics) Generate Historical Metrics - Ads API - Google for Developers Apr 22, 2026 — Page Summary * Historical metrics provide data on past keyword performance on Google Search, including search volume, competition ...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:3)\nGoogle for Developers[](https://dataforseo.com/apis/google-ads-api) Keyword Data: Google Ads API – Pull Vital Metrics at Scale Your alternative to Google AdWords API. With AdWords API depreciating by April 27, 2022, Google leaves no choice but to upgrade to...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:4)\nDataForSEO![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:5)\n[](https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics) Generate Forecast Metrics | Google Ads API Apr 22, 2026 — Experiment with different campaign configurations to optimize each of these metrics. Data such as historical quality score and cli...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:6)\nGoogle for Developers[](https://keywordtool.io/api) Keyword Tool API Documentation & Reference: Search Volume Overview. Keyword Tool API gives you the same data you get in the product: 100% accurate search volume data for Google and Bing (s...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:7)\nKeyword Tool[](https://developers.google.com/google-ads/api/samples/generate-keyword-ideas) Generate keyword ideas | Google Ads API Apr 22, 2026 — Page Summary * The code examples demonstrate how to generate keyword ideas using the Google Ads API. * Keyword ideas can be genera...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:8)\nGoogle for Developers[](https://www.youtube.com/watch?v=EMXXJZeayFU&t=12) ![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:9)\n2m Fetch keyword list with metrics via API | Use REST Interface ...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:10)\n![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:11)\nYouTube·Code Sagar[](https://developers.google.com/google-ads/api/docs/get-started/introduction) Introduction | Google Ads API Apr 22, 2026 — Page Summary * The Google Ads API is a programmatic interface for managing Google Ads accounts and campaigns, suitable for large o...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:12)\nGoogle for Developers![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:13)\n[](https://n8n.io/workflows/2494-generate-seo-keyword-search-volume-data-using-google-api/) Generate SEO keyword search volume data using Google API - N8N Feb 23, 2026 — Generate SEO keyword search volume data using Google API * You have a list of potential keywords to target for your website SEO bu...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:14)\nN8N[](https://developers.google.com/custom-search/v1/overview) Custom Search JSON API - Google for Developers Feb 18, 2026 — Page Summary * The Custom Search JSON API allows programmatic retrieval of web and image search results from a Programmable Search...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:15)\nGoogle for Developers[](https://developers.google.com/webmaster-tools) Search Console API - Google for Developers API access to Search Console The Search Console API provides programmatic access to the most popular reports and actions in your S...![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:16)\nGoogle for Developers![](https://api.dataforseo.com/cdn/i/05051131-1087-0066-0000-526c2d3d9c6a:17)",
              "sources": [
                {
                  "snippet": "Page Summary * Keyword Planning services are rate limited, allowing fewer requests per minute compared to other services. * It is ...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 1,
                  "title": "Keyword Planning - Ads API - Google for Developers",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/google-ads/api/docs/keyword-planning/overview",
                  "publication_date": null
                },
                {
                  "snippet": "Page Summary * The KeywordPlanIdeaService can be used to find new keywords and historical metrics for Google Search campaigns. * K...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 2,
                  "title": "Keyword Ideas - Ads API - Google for Developers",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas",
                  "publication_date": null
                },
                {
                  "snippet": "How to use google ads API to get keyword search volumes without creating an ad group? Google Ads. In the google ads GUI it is poss...",
                  "source_name": "Reddit",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 3,
                  "title": "How to use google ads API to get keyword search volumes ...",
                  "domain": "www.reddit.com",
                  "url": "https://www.reddit.com/r/PPC/comments/z0s0oi/how_to_use_google_ads_api_to_get_keyword_search/",
                  "publication_date": null
                },
                {
                  "snippet": "Page Summary * Historical metrics provide data on past keyword performance on Google Search, including search volume, competition ...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 4,
                  "title": "Generate Historical Metrics - Ads API - Google for Developers",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics",
                  "publication_date": null
                },
                {
                  "snippet": "Your alternative to Google AdWords API. With AdWords API depreciating by April 27, 2022, Google leaves no choice but to upgrade to...",
                  "source_name": "DataForSEO",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 5,
                  "title": "Keyword Data: Google Ads API – Pull Vital Metrics at Scale",
                  "domain": "dataforseo.com",
                  "url": "https://dataforseo.com/apis/google-ads-api",
                  "publication_date": null
                },
                {
                  "snippet": "Experiment with different campaign configurations to optimize each of these metrics. Data such as historical quality score and cli...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 6,
                  "title": "Generate Forecast Metrics | Google Ads API",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics",
                  "publication_date": null
                },
                {
                  "snippet": "Overview. Keyword Tool API gives you the same data you get in the product: 100% accurate search volume data for Google and Bing (s...",
                  "source_name": "Keyword Tool",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 7,
                  "title": "Keyword Tool API Documentation & Reference: Search Volume",
                  "domain": "keywordtool.io",
                  "url": "https://keywordtool.io/api",
                  "publication_date": null
                },
                {
                  "snippet": "Page Summary * The code examples demonstrate how to generate keyword ideas using the Google Ads API. * Keyword ideas can be genera...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 8,
                  "title": "Generate keyword ideas | Google Ads API",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/google-ads/api/samples/generate-keyword-ideas",
                  "publication_date": null
                },
                {
                  "snippet": "so in the today's video we will see how we can fetch the list of keywords which we have set in the campaign. so let's start with t...",
                  "source_name": "YouTube",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 9,
                  "title": "Fetch keyword list with metrics via API | Use REST Interface ...",
                  "domain": "www.youtube.com",
                  "url": "https://www.youtube.com/watch?v=EMXXJZeayFU&t=12",
                  "publication_date": null
                },
                {
                  "snippet": "Page Summary * The Google Ads API is a programmatic interface for managing Google Ads accounts and campaigns, suitable for large o...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 10,
                  "title": "Introduction | Google Ads API",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/google-ads/api/docs/get-started/introduction",
                  "publication_date": null
                },
                {
                  "snippet": "Generate SEO keyword search volume data using Google API * You have a list of potential keywords to target for your website SEO bu...",
                  "source_name": "N8N",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 11,
                  "title": "Generate SEO keyword search volume data using Google API - N8N",
                  "domain": "n8n.io",
                  "url": "https://n8n.io/workflows/2494-generate-seo-keyword-search-volume-data-using-google-api/",
                  "publication_date": null
                },
                {
                  "snippet": "Page Summary * The Custom Search JSON API allows programmatic retrieval of web and image search results from a Programmable Search...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 12,
                  "title": "Custom Search JSON API - Google for Developers",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/custom-search/v1/overview",
                  "publication_date": null
                },
                {
                  "snippet": "API access to Search Console The Search Console API provides programmatic access to the most popular reports and actions in your S...",
                  "source_name": "Google for Developers",
                  "thumbnail": null,
                  "markdown": null,
                  "position": 13,
                  "title": "Search Console API - Google for Developers",
                  "domain": "developers.google.com",
                  "url": "https://developers.google.com/webmaster-tools",
                  "publication_date": null
                }
              ],
              "search_results": null,
              "ai_search_volume": 90,
              "monthly_searches": [
                {
                  "year": 2026,
                  "month": 3,
                  "search_volume": 90
                },
                {
                  "year": 2026,
                  "month": 2,
                  "search_volume": 30
                },
                {
                  "year": 2026,
                  "month": 1,
                  "search_volume": 20
                },
                {
                  "year": 2025,
                  "month": 12,
                  "search_volume": 10
                },
                {
                  "year": 2025,
                  "month": 11,
                  "search_volume": 20
                },
                {
                  "year": 2025,
                  "month": 10,
                  "search_volume": 70
                },
                {
                  "year": 2025,
                  "month": 9,
                  "search_volume": 30
                },
                {
                  "year": 2025,
                  "month": 8,
                  "search_volume": 50
                },
                {
                  "year": 2025,
                  "month": 7,
                  "search_volume": 90
                },
                {
                  "year": 2025,
                  "month": 6,
                  "search_volume": 140
                },
                {
                  "year": 2025,
                  "month": 5,
                  "search_volume": 210
                },
                {
                  "year": 2025,
                  "month": 4,
                  "search_volume": 260
                }
              ],
              "first_response_at": "2025-12-20 00:44:19 +00:00",
              "last_response_at": "2026-05-05 08:45:37 +00:00",
              "brand_entities": null,
              "fan_out_queries": null
            }
          ]
        }
      ]
    }
  ]
}

In the items array of the response, locate the sources array. This array contains all websites cited in the specific AI answer, including the target website and competitors. The data for each website is stored in separate objects, which include the cited website’s URL, domain, position among other sources, title, and description.

Now, you can clearly see where the target website is positioned among the competitors, which page was quoted by AI, and what competitors’ content is also considered relevant.

Wrap up

With just two endpoints of the LLM Mentions API – Mentions Search and Aggregated Metrics – you can fetch comprehensive citation data for any domain from Google AI Overviews and ChatGPT. This data can serve as a solid foundation for building an AI citation-tracking feature for your SEO tool. For example, you can display the total citation count for a user’s website, top cited domains by keyword, and allow a user to see which website pages are cited by an LLM.

Explore all LLM Mentions endpoints docs, and if you run into any problem, contact our 24/7 customer support.

Exit mobile version