PeumeAPI

Search & SEO

LLM mention metrics for many keywords or domains, grouped

Live LLM Mentions Multi-Target Metrics endpoint provides aggregated metrics grouped by targets[].key for 2-10 comparison keys. This is a live rolling window (not monthly history); identical calls can vary.

$0.156 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/llm-mention-metrics-for-many-keywords-or-domains-grouped \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "targets": [
      {
        "key": "chat_gpt",
        "target": [
          {
            "keyword": "chat gpt"
          }
        ]
      },
      {
        "key": "claude",
        "target": [
          {
            "keyword": "claude"
          }
        ]
      },
      {
        "key": "gemini",
        "target": [
          {
            "keyword": "gemini"
          }
        ]
      },
      {
        "key": "perplexity",
        "target": [
          {
            "keyword": "perplexity",
            "search_filter": "include"
          }
        ]
      }
    ],
    "location_code": 2840,
    "language_code": "en",
    "platform": "google",
    "initial_dataset_filters": [
      [
        "ai_search_volume",
        ">",
        10
      ]
    ],
    "internal_list_limit": 5
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: llm-mention-metrics-for-many-keywords-or-domains-grouped.

Parameters

targetsarray

array of objects containing target entities with aggregation keys. Required field. Between 2 and 10 keyed target sets (else upstream 40501: "The number of 'targets' items must be between 2 and 10."). Each nested target array can contain up to 10 domain/keyword entities. Requests must include at least one domain_entity or keyword_entity with search_filter: include. Metrics are grouped by targets[].key. This live endpoint returns a rolling trailing window (~4-5 months), not calendar-month buckets; identical back-to-back calls can return different aggregates. For reproducible monthly time series

Example: [{"key":"chat_gpt","target":[{"keyword":"chat gpt"}]},{"key":"claude","target":[{"keyword":"claude"}

location_namestring

full name of search location. Optional field. If you use this field, you don't need to specify location_code. Default is United States (location_code 2840). With platform=chat_gpt, only United States is valid; other names return the same task status 40501 Invalid Field on location. The HTTP envelope may still be 200 / top-level status_code 20000 Ok with items_count=0 — always check tasks[].status_code / status_message.

location_codeinteger

search location code. Optional field. If you use this field, you don't need to specify location_name. Default is 2840 (United States). With platform=chat_gpt, only 2840 is valid; any other code (e.g. 2036) returns task status 40501 Invalid Field: 'location_code'. The HTTP envelope may still be 200 / top-level status_code 20000 Ok with items_count=0 — always check tasks[].status_code / status_message.

Example: 2840

language_namestring

<em>full name of search language</em><br>optional field<br>if you use this field, you don't need to specify <code>language_code</code>;<br>if you don't specify this field, the <code>language_code</code> with <code class="long-string">en</code> value will be used by default;<br>you can receive the li

language_codestring

<em>search language code</em><br>optional field<br>if you use this field, you don't need to specify <code>language_name</code>;<br>you can receive the list of available languages of the search engine with their <code>language_code</code> by making a separate request to the <code>

Example: en

platformstring

target platform. Optional field. Possible values: chat_gpt, google. When omitted, defaults to google only (not both platforms). chat_gpt data is available for the United States and English only (location 2840 / US + language en; else task status 40501).

Example: google

filtersarray

<em>array of results filtering parameters</em><br>optional field<br><strong>you can add several filters at once (8 filters maximum)</strong><br>you should set a logical operator <code>and</code>, <code>or</code> between the conditions<br>the following operators are supported:<br><code>=</code>, <cod

initial_dataset_filtersarray

<em>array of filter expressions applied before aggregation</em><br>optional field<br>you can use this array to filter expressions applied to the raw mentions database before aggregation to limit the rows contributing to the result;<p><strong>you can add several filters at once (8 filters maximum)</s

Example: [["ai_search_volume",">",10]]

order_byarray

<em>results sorting rules</em><br>optional field<br>you can use the same values as in the <code>filters</code> array to sort the results<br>possible sorting types:<br><code>asc</code> - results will be sorted in the ascending order<br><code>desc</code> - results will be sorted in the descending orde

limitinteger

<em>the maximum number of returned objects</em><br>optional field<p>default value: <code>100</code><br>maximum value: <code>1000</code>

offsetinteger

<em>offset in the results array of the returned mentions data</em><br>optional field<p>default value: <code>0</code><br>example: if you specify the <code>10</code> value, the first ten mentions objects in the results array will be omitted and the data will be provided for the successive objects;<br>

internal_list_limitinteger

<em>maximum number of elements within internal arrays</em><br>optional field<br>you can use this field to limit the number of elements within the following arrays:<br><code>sources_domain</code><br><code>search_results_domain</code><br>minimum value: <code>1</code><br>maximum value: <code>10</code><

Example: 5

tagstring

<em>user-defined task identifier</em><br>optional field<br><em>the character limit is 255</em><br>you can use this parameter to identify the task and match it with the result<br>you will find the specified <code>tag</code> value in the <code>data</code> object of the response

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.