{"id":22376,"date":"2025-10-09T11:21:10","date_gmt":"2025-10-09T11:21:10","guid":{"rendered":"https:\/\/docs.dataforseo.com\/v3\/?page_id=22376"},"modified":"2026-04-07T09:53:54","modified_gmt":"2026-04-07T09:53:54","slug":"ai_optimization-llm_mentions-filters","status":"publish","type":"page","link":"https:\/\/docs.dataforseo.com\/v3\/ai_optimization-llm_mentions-filters\/","title":{"rendered":"ai_optimization\/llm_mentions\/filters"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]<\/p>\n<h2 id=\"live-serp\">LLM Mentions Filters List<\/h2>\n<p>\u200c\u200c<br \/>\nHere you will find all the necessary information about filters that can be used with AI Optimization LLM Mentions API endpoints.<\/p>\n<p>Please, keep in mind that filters are associated with a certain object in the <code>result<\/code> array, and should be specified accordingly. <\/p>\n<p>We recommend learning more about how to use filters in <a href=\"https:\/\/dataforseo.com\/help-center\/using-filters\" rel=\"noopener noreferrer\" target=\"_blank\">this Help Center article<\/a>.<\/p>\n<p><strong>Note that it is not possible to use the following types of fields as sorting rules in <code>order_by<\/code>: <code>array.str<\/code>, <code>array.num<\/code>.<\/strong><\/p>\n<p>[\/vc_column_text]\t<article class=\"info-card info-card--yellow\">\n\t\t<header class=\"info-card__header\">\n\t\t\t<div class=\"info-card__icon\">\n\t\t\t\t<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n\t\t\t\t\t<use href=\"https:\/\/docs.dataforseo.com\/v3\/wp-content\/themes\/dataforseo\/assets\/img\/icons\/sprite.svg#label\"><\/use>\n\t\t\t\t<\/svg>\n\t\t\t<\/div>\n\t\t\t<div class=\"info-card__title\">Pricing<\/div>\n\t\t<\/header>\n\t\t<div class=\"info-card__content\">\n\t\t\t<p>Your account will not be charged for using this API<\/p>\n\t\t<\/div>\n\t<\/article>\n\t    <div class=\"endpoint\">\n        <img decoding=\"async\" class=\"endpoint__icon\" src=\"https:\/\/docs.dataforseo.com\/v3\/wp-content\/themes\/dataforseo\/assets\/img\/icons\/checked-circle.svg\" alt=\"checked\">\n\n                    GET            <button class=\"btn-reset button-link copy-button\" data-href=\"https:\/\/api.dataforseo.com\/v3\/ai_optimization\/llm_mentions\/available_filters\">\n                https:\/\/api.dataforseo.com\/v3\/ai_optimization\/llm_mentions\/available_filters                <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n                    <use href=\"https:\/\/docs.dataforseo.com\/v3\/wp-content\/themes\/dataforseo\/assets\/img\/icons\/sprite.svg#layers\"><\/use>\n                <\/svg>\n            <\/button>\n            <\/div>\n    [vc_column_text] You will receive the full list of filters by calling this API. You can also download the full list of possible filters <a href=\"https:\/\/cdn.dataforseo.com\/v3\/available_filters.php?api=ai_optimization\/llm_mentions\" target=\"_blank\">by this link.<\/a><\/p>\n<p>\u200c\u200cAs a response of the API server, you will receive <a href=\"https:\/\/en.wikipedia.org\/wiki\/JSON\">JSON<\/a>-encoded data containing a <code>tasks<\/code> array with the information specific to the set tasks.<\/p>\n<table style=\"width: 58%; height: 480px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"width: 38.423%; height: 24px;\">Field name<\/th>\n<th style=\"width: 1.25156%; height: 24px;\">Type<\/th>\n<th style=\"width: 61.7021%; height: 24px;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 48px;\">\n<td style=\"width: 24.3517%; height: 48px;\"><code>version<\/code><\/td>\n<td style=\"width: 6.19209%; height: 48px;\">string<\/td>\n<td style=\"width: 79.8065%; height: 48px;\"><em>the current version of the API<\/em><\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 38.423%; height: 48px;\"><code>status_code<\/code><\/td>\n<td style=\"width: 1.75219%; height: 48px;\">integer<\/td>\n<td style=\"width: 61.2015%; height: 48px;\"><i>general status code<\/i><br \/>\nyou can find the full list of the response codes <a href=\"\/v3\/appendix\/errors\">here<\/a><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 24.3517%; height: 24px;\"><code>status_message<\/code><\/td>\n<td style=\"width: 6.19209%; height: 24px;\">string<\/td>\n<td style=\"width: 79.8065%; height: 24px;\"><em>general informational message<\/em><br \/>\nyou can find the full list of general informational messages <a href=\"\/v3\/appendix\/errors\">here<\/a><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\"><code>time<\/code><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">string<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>execution time, seconds<\/em><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\"><code>cost<\/code><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">float<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>total tasks cost, USD<\/em><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\"><code>tasks_count<\/code><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">integer<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>the number of tasks in the <strong><code>tasks<\/code><\/strong> array<\/em><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\"><code>tasks_error<\/code><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">integer<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>the number of tasks in the <strong><code>tasks<\/code><\/strong> array returned with an error<\/em><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\"><strong><code>tasks<\/code><\/strong><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">array<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>array of tasks<\/em><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>id<\/code><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">string<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>task identifier<\/em><br \/>\n<strong>unique task identifier in our system in the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Universally_unique_identifier\">UUID<\/a> format<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>status_code<\/code><\/td>\n<td style=\"width: 1.25156%;\">integer<\/td>\n<td style=\"width: 61.7021%;\"><em>status code of the task<\/em><br \/>\ngenerated by DataForSEO; can be within the following range: 10000-60000<br \/>\nyou can find the full list of the response codes <a href=\"\/v3\/appendix\/errors\">here<\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>status_message<\/code><\/td>\n<td style=\"width: 1.25156%;\">string<\/td>\n<td style=\"width: 61.7021%;\"><em>informational message of the task<\/em><br \/>\nyou can find the full list of general informational messages <a href=\"\/v3\/appendix\/errors\">here<\/a><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 38.423%; height: 24px;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>time<\/code><\/td>\n<td style=\"width: 1.25156%; height: 24px;\">string<\/td>\n<td style=\"width: 61.7021%; height: 24px;\"><em>execution time, seconds<\/em><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>cost<\/code><\/td>\n<td style=\"width: 1.25156%;\">float<\/td>\n<td style=\"width: 61.7021%;\"><em>cost of the task, USD<\/em><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>result_count<\/code><\/td>\n<td style=\"width: 1.25156%;\">integer<\/td>\n<td style=\"width: 61.7021%;\"><em>number of elements in the <code>result<\/code> array<\/em><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>path<\/code><\/td>\n<td style=\"width: 1.25156%;\">array<\/td>\n<td style=\"width: 61.7021%;\"><em>URL path<\/em><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>data<\/code><\/td>\n<td style=\"width: 1.25156%;\">object<\/td>\n<td style=\"width: 61.7021%;\"><em>contains the parameters passed in the URL of the GET request<\/em><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 38.423%;\">\u00a0 \u00a0 \u00a0 \u00a0 <strong><code>result<\/code><\/strong><\/td>\n<td style=\"width: 1.25156%;\">array<\/td>\n<td style=\"width: 61.7021%;\"><em>array of results<\/em><br \/>\ncontains the full list of available parameters that can be used for data filtration<br \/>\nthe parameters are grouped by the endpoint they can be used with<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&thinsp;<br \/>\nBelow you will find a detailed description of the structure that should be used to specify <code>filters<\/code> when setting tasks with AI Optimization LLM Mentions API. You will also find the types of parameters that can be used with each endpoint, and examples of pre-made filters. <\/p>\n<p><strong>Description of the fields:<\/strong><\/p>\n<table style=\"width: 100%; height: 1259px;\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"width: 12.4003%; height: 24px;\">Field name<\/th>\n<th style=\"width: 3.91588%; height: 24px;\">Type<\/th>\n<th style=\"width: 82.9587%; height: 24px;\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 48px;\">\n<td style=\"width: 12.4003%; height: 48px;\"><code>filters<\/code><\/td>\n<td style=\"width: 3.91588%; height: 48px;\">array<\/td>\n<td style=\"width: 82.9587%; height: 48px;\"><em>array of results filtering parameters<\/em><br \/>\noptional field<br \/>\n<strong>you can add several filters at once (8 filters maximum)<\/strong><br \/>\nyou should set a logical operator <code>and<\/code>, <code>or<\/code> between the conditions<br \/>\nfilters have the following structure:<br \/>\n<code>[<code>$parameter_field<\/code><code>,<\/code> <code>$filter_operator<\/code><code>,<\/code> <code>$filter_value<\/code><code>]<\/code><br \/>\nyou should use the <code>.<\/code> and <code>,<\/code> symbols as separators<br \/>\nexample:<br \/>\n<code>[\"ai_search_volume\", \"&gt;=\", 1000]<\/code><\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 12.4003%; height: 48px;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>$parameter_field<\/code><\/td>\n<td style=\"width: 3.91588%; height: 48px;\">str<\/td>\n<td style=\"width: 82.9587%; height: 48px;\"><em>parameter field in the filter<\/em><br \/>\noptional field<br \/>\n<strong>required field if the filter is applied<\/strong><br \/>\nthe parameter in the superordinate <code>$results_array<\/code><br \/>\nrepresents the field you want to filter the results by<br \/>\npossible values:<br \/>\n<code>platform<\/code>, <code>location_code<\/code>, <code>language_code<\/code>, <code>ai_search_volume<\/code>, <code>first_response_at<\/code>, <code>last_response_at<\/code><\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 12.4003%; height: 48px;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>$filter_operator<\/code><\/td>\n<td style=\"width: 3.91588%; height: 48px;\">str<\/td>\n<td style=\"width: 82.9587%; height: 48px;\"><em>operator in the filter<\/em><br \/>\noptional field<br \/>\n<strong>required field if the filter is applied<\/strong><br \/>\navailable filter operators:<br \/>\n\u2022 if <strong><code>num<\/code><\/strong>: <code>&lt;<\/code>, <code>&lt;=<\/code>, <code>&gt;<\/code>, <code>&gt;=<\/code>, <code>=<\/code>, <code>&lt;&gt;<\/code>, <code>in<\/code>, <code>not_in<\/code><br \/>\n\u2022 if <strong><code>str<\/code><\/strong>: <code>match<\/code>, <code>not_match<\/code>, <code>like<\/code>, <code>not_like<\/code>, <code>ilike<\/code>, <code>not_ilike<\/code>, <code>in<\/code>, <code>not_in<\/code>, <code>=<\/code>, <code>&lt;&gt;<\/code>, <code>regex<\/code>, <code>not_regex<\/code><br \/>\n\u2022 if <strong><code>time<\/code><\/strong>: <code>&lt;<\/code>, <code>&lt;=<\/code>, <code>&gt;<\/code>, <code>&gt;=<\/code><\/p>\n<p>note: <code>time<\/code> should be specified in the UTC format: \u201cyyyy-mm-dd hh-mm-ss +00:00\u201d<br \/>\nexample:<br \/>\n<code>2025-10-21 06:25:30 +00:00<\/code><\/p>\n<p>if you specify <code>in<\/code> or <code>not_in<\/code> operator, the <code>$filter_value<\/code> should be specified as an array<br \/>\nexample:<br \/>\n<code>[\"ai_search_volume\",\"in\",[10,1000]]<\/code><\/p>\n<p><code>regex<\/code> and <code>not_regex<\/code> operators can be specified with <code>string<\/code> values using the <a href=\"https:\/\/github.com\/google\/re2\/wiki\/Syntax\" rel=\"noopener noreferrer\" target=\"_blank\">RE2 regex<\/a> syntax;<br \/>\n<strong>Note:<\/strong> the maximum limit for the number of characters you can specify in <code>regex<\/code> and <code>not_regex<\/code> is <strong>1000<\/strong>;<br \/>\nexample:<br \/>\nstring contains keywords: <code> [\"language_code\", \"regex\", \"(how|what|when)\"]<\/code><br \/>\nstring does not contain keywords: <code> [\"language_code\", \"not_regex\", \"(how|what|when)\"]<\/code>\n<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 12.4003%; height: 48px;\">\u00a0 \u00a0 \u00a0 \u00a0 <code>$filter_value<\/code><\/td>\n<td style=\"width: 3.91588%; height: 48px;\">num<br \/>\nstr<br \/>\nbool<br \/>\ntime<\/td>\n<td style=\"width: 82.9587%; height: 48px;\"><em>filtering value<\/em><br \/>\noptional field<br \/>\n<strong>required field if the filter is applied<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u200c\u200c[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<blockquote><p>Instead of \u2018login\u2019 and \u2018password\u2019 use your credentials from https:\/\/app.dataforseo.com\/api-access<\/p><\/blockquote><blockquote><p>The list of available filtration parameters:<\/p><\/blockquote><div class=\"example example--json\"><div class=\"example__content\"><div class=\"example__code example__code-json\"><pre><code class=\"language-json hljs\">{\r\n  &quot;version&quot;: &quot;0.1.20250828&quot;,\r\n  &quot;status_code&quot;: 20000,\r\n  &quot;status_message&quot;: &quot;Ok.&quot;,\r\n  &quot;time&quot;: &quot;0.0625 sec.&quot;,\r\n  &quot;cost&quot;: 0,\r\n  &quot;tasks_count&quot;: 1,\r\n  &quot;tasks_error&quot;: 0,\r\n  &quot;tasks&quot;: [\r\n    {\r\n      &quot;id&quot;: &quot;09051436-8284-0640-0000-69f363129d79&quot;,\r\n      &quot;status_code&quot;: 20000,\r\n      &quot;status_message&quot;: &quot;Ok.&quot;,\r\n      &quot;time&quot;: &quot;0 sec.&quot;,\r\n      &quot;cost&quot;: 0,\r\n      &quot;result_count&quot;: 1,\r\n      &quot;path&quot;: [\r\n        &quot;v3&quot;,\r\n        &quot;ai_optimization&quot;,\r\n        &quot;llm_mentions&quot;,\r\n        &quot;available_filters&quot;\r\n      ],\r\n      &quot;data&quot;: {\r\n        &quot;api&quot;: &quot;ai_optimization&quot;,\r\n        &quot;function&quot;: &quot;available_filters&quot;\r\n      },\r\n      &quot;result&quot;: [\r\n        {\r\n          &quot;search&quot;: {\r\n            &quot;platform&quot;: &quot;str&quot;,\r\n            &quot;location_code&quot;: &quot;num&quot;,\r\n            &quot;language_code&quot;: &quot;str&quot;,\r\n            &quot;ai_search_volume&quot;: &quot;num&quot;,\r\n            &quot;first_response_at&quot;: &quot;time&quot;,\r\n            &quot;last_response_at&quot;: &quot;time&quot;,\r\n            &quot;model_name&quot;: &quot;str&quot;,\r\n          }\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}<\/code><\/pre><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] LLM Mentions Filters List \u200c\u200c Here you will find all the necessary information about filters that can be used with AI Optimization LLM Mentions API endpoints. Please, keep in mind that filters are associated with a certain object in the result array, and should be specified accordingly. We recommend learning more about how to [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template.php","meta":{"apibase_doc_request_yaml":"","apibase_doc_request_additional_yaml":"","apibase_doc_response_yaml":"","footnotes":""},"class_list":["post-22376","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages\/22376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/comments?post=22376"}],"version-history":[{"count":15,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages\/22376\/revisions"}],"predecessor-version":[{"id":23925,"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/pages\/22376\/revisions\/23925"}],"wp:attachment":[{"href":"https:\/\/docs.dataforseo.com\/v3\/wp-json\/wp\/v2\/media?parent=22376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}