NAVNavbar
Logo
cURL php NodeJS Python cSharp

Page Intersection


This endpoint will provide you with the keywords for which specified pages rank within the same Bing SERP.

Find keywords several webpages rank for:
If you would like to get the keywords several pages rank for, you need to specify webpages only in the pages object. This way, you will receive intersected ranked keywords for the specified URLs.

Find keywords your competitors rank for but you do not:
If you would like to receive all keywords several pages rank for, but particular pages do not, you need to use the exclude_pages array as well. This way you will receive the keywords for which the URLs from the pages object rank for, but the URLs from the exclude_pages array do not.

Instead of ‘login’ and ‘password’ use your credentials from https://app.dataforseo.com/api-dashboard

<?php
// You can download this file from here https://cdn.dataforseo.com/v3/examples/php/php_RestClient.zip
require('RestClient.php');
$api_url = 'https://api.dataforseo.com/';
// Instead of 'login' and 'password' use your credentials from https://app.dataforseo.com/api-dashboard
$client = new RestClient($api_url, null, 'login', 'password');

$post_array = array();
// simple way to set a task
$post_array[] = array(
   "pages" => [
      "1" => "https://dataforseo.com/*",
      "2" => "https://ahrefs.com/*"
   ],
   "language_name" => "English",
   "location_code" => 2840
);
try {
   // POST /v3/dataforseo_labs/bing/page_intersection/live
   $result = $client->post('/v3/dataforseo_labs/bing/page_intersection/live', $post_array);
   print_r($result);
   // do something with post result
} catch (RestClientException $e) {
   echo "n";
   print "HTTP code: {$e->getHttpCode()}n";
   print "Error code: {$e->getCode()}n";
   print "Message: {$e->getMessage()}n";
   print  $e->getTraceAsString();
   echo "n";
}
$client = null;
?>

The above command returns JSON structured like this:

{
  "version": "0.1.20220819",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.7872 sec.",
  "cost": 0.0103,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "09011615-1535-0390-0000-a1281e8bc911",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.7386 sec.",
      "cost": 0.0103,
      "result_count": 1,
      "path": [
        "v3",
        "dataforseo_labs",
        "bing",
        "page_intersection",
        "live"
      ],
      "data": {
        "api": "dataforseo_labs",
        "function": "page_intersection",
        "se_type": "bing",
        "pages": {
          "1": "https://forbes.com",
          "2": "https://cnn.com/*"
        },
        "language_name": "English",
        "location_code": 2840,
        "include_serp_info": true,
        "limit": 3
      },
      "result": [
        {
          "se_type": "bing",
          "pages": {
            "1": "https://forbes.com",
            "2": "https://cnn.com/*"
          },
          "exclude_pages": null,
          "location_code": 2840,
          "language_code": "en",
          "total_count": 44,
          "items_count": 3,
          "items": [
            {
              "se_type": "bing",
              "keyword_data": {
                "se_type": "bing",
                "keyword": "financial news",
                "location_code": 2840,
                "language_code": "en",
                "keyword_info": {
                  "se_type": "bing",
                  "last_updated_time": "2022-08-11 14:30:44 +00:00",
                  "competition": 0.8999999761581421,
                  "cpc": 2.4100000858306885,
                  "search_volume": 1640,
                  "monthly_searches": [
                    {
                      "year": 2022,
                      "month": 7,
                      "search_volume": 2020
                    },
                    {
                      "year": 2022,
                      "month": 6,
                      "search_volume": 2240
                    },
                    {
                      "year": 2022,
                      "month": 5,
                      "search_volume": 1890
                    },
                    {
                      "year": 2022,
                      "month": 4,
                      "search_volume": 1420
                    },
                    {
                      "year": 2022,
                      "month": 3,
                      "search_volume": 1400
                    },
                    {
                      "year": 2022,
                      "month": 2,
                      "search_volume": 1470
                    },
                    {
                      "year": 2022,
                      "month": 1,
                      "search_volume": 1830
                    },
                    {
                      "year": 2021,
                      "month": 12,
                      "search_volume": 1480
                    },
                    {
                      "year": 2021,
                      "month": 11,
                      "search_volume": 1430
                    },
                    {
                      "year": 2021,
                      "month": 10,
                      "search_volume": 1510
                    },
                    {
                      "year": 2021,
                      "month": 9,
                      "search_volume": 1640
                    },
                    {
                      "year": 2021,
                      "month": 8,
                      "search_volume": 1350
                    }
                  ]
                },
                "serp_info": {
                  "se_type": "bing",
                  "check_url": "https://www.bing.com/search?q=financial%20news&count=50&first=1&setmkt=en-US&setlang=en-US&safesearch=Moderate&form=QBLH",
                  "serp_item_types": [
                    "paid",
                    "people_also_ask",
                    "organic",
                    "related_searches"
                  ],
                  "se_results_count": 33500000,
                  "last_updated_time": "2022-08-11 03:36:51 +00:00",
                  "previous_updated_time": "2022-07-09 00:06:40 +00:00"
                },
                "avg_backlinks_info": {
                  "se_type": "bing",
                  "backlinks": 1561214.75,
                  "dofollow": 1023742,
                  "referring_pages": 1103747.75,
                  "referring_domains": 8721.400390625,
                  "referring_main_domains": 7181.7001953125,
                  "rank": 626.4000244140625,
                  "main_domain_rank": 626.4000244140625,
                  "last_updated_time": "2022-08-11 22:30:04 +00:00"
                }
              },
              "intersection_result": {
                "1": {
                  "se_type": "bing",
                  "type": "organic",
                  "rank_group": 11,
                  "rank_absolute": 13,
                  "position": "left",
                  "xpath": "/html[1]/body[1]/div[3]/main[1]/ol[1]/li[13]",
                  "domain": "www.forbes.com",
                  "title": "Forbes",
                  "url": "https://www.forbes.com/",
                  "breadcrumb": "https://www.forbes.com",
                  "is_image": false,
                  "is_video": false,
                  "is_featured_snippet": false,
                  "is_malicious": false,
                  "description": "Forbes is a global media company, focusing on business, investing, technology, entrepreneurship, leadership, and lifestyle.",
                  "pre_snippet": null,
                  "extended_snippet": null,
                  "amp_version": false,
                  "rating": null,
                  "highlighted": null,
                  "links": null,
                  "about_this_result": null,
                  "main_domain": "forbes.com",
                  "relative_url": "/",
                  "etv": 14.028559684753418,
                  "estimated_paid_traffic_cost": 33.80883026123047,
                  "rank_changes": {
                    "previous_rank_absolute": null,
                    "is_new": true,
                    "is_up": false,
                    "is_down": false
                  },
                  "backlinks_info": {
                    "referring_domains": 34241,
                    "referring_main_domains": 29511,
                    "referring_pages": 1553049,
                    "dofollow": 1498217,
                    "backlinks": 1919183,
                    "time_update": "2022-08-02 21:42:34 +00:00"
                  },
                  "rank_info": {
                    "page_rank": 793,
                    "main_domain_rank": 718
                  }
                },
                "2": {
                  "se_type": "bing",
                  "type": "organic",
                  "rank_group": 22,
                  "rank_absolute": 24,
                  "position": "left",
                  "xpath": "/html[1]/body[1]/div[3]/main[1]/ol[1]/li[24]",
                  "domain": "www.cnn.com",
                  "title": "Business News - Latest Headlines on CNN Business - CNN",
                  "url": "https://www.cnn.com/BUSINESS",
                  "breadcrumb": "https://www.cnn.com › BUSINESS",
                  "is_image": false,
                  "is_video": false,
                  "is_featured_snippet": false,
                  "is_malicious": false,
                  "description": "View the latest business news about the world’s top companies, and explore articles on global markets, finance, tech, and the innovations driving us forward.",
                  "pre_snippet": null,
                  "extended_snippet": null,
                  "amp_version": false,
                  "rating": null,
                  "highlighted": [
                    "news",
                    "finance"
                  ],
                  "links": null,
                  "about_this_result": null,
                  "main_domain": "cnn.com",
                  "relative_url": "/BUSINESS",
                  "etv": 3.3915200233459473,
                  "estimated_paid_traffic_cost": 8.173563003540039,
                  "rank_changes": {
                    "previous_rank_absolute": null,
                    "is_new": true,
                    "is_up": false,
                    "is_down": false
                  },
                  "backlinks_info": {
                    "referring_domains": 960,
                    "referring_main_domains": 904,
                    "referring_pages": 2068,
                    "dofollow": 1433,
                    "backlinks": 2176,
                    "time_update": "2022-08-02 03:34:04 +00:00"
                  },
                  "rank_info": {
                    "page_rank": 444,
                    "main_domain_rank": 691
                  }
                }
              }
            },
            {
              "se_type": "bing",
              "keyword_data": {
                "se_type": "bing",
                "keyword": "pools austin",
                "location_code": 2840,
                "language_code": "en",
                "keyword_info": {
                  "se_type": "bing",
                  "last_updated_time": "2022-08-10 17:04:37 +00:00",
                  "competition": 0.10000000149011612,
                  "cpc": null,
                  "search_volume": 10,
                  "monthly_searches": [
                    {
                      "year": 2022,
                      "month": 7,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 6,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 5,
                      "search_volume": 20
                    },
                    {
                      "year": 2022,
                      "month": 4,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 3,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 2,
                      "search_volume": 0
                    },
                    {
                      "year": 2022,
                      "month": 1,
                      "search_volume": 10
                    },
                    {
                      "year": 2021,
                      "month": 12,
                      "search_volume": 0
                    },
                    {
                      "year": 2021,
                      "month": 11,
                      "search_volume": 10
                    },
                    {
                      "year": 2021,
                      "month": 10,
                      "search_volume": 10
                    },
                    {
                      "year": 2021,
                      "month": 9,
                      "search_volume": 0
                    },
                    {
                      "year": 2021,
                      "month": 8,
                      "search_volume": 10
                    }
                  ]
                },
                "serp_info": {
                  "se_type": "bing",
                  "check_url": "https://www.bing.com/search?q=pools%20austin&count=50&first=1&setmkt=en-US&setlang=en-US&safesearch=Moderate&form=QBLH",
                  "serp_item_types": [
                    "organic"
                  ],
                  "se_results_count": 44,
                  "last_updated_time": "2022-06-14 08:58:49 +00:00",
                  "previous_updated_time": "2022-05-13 03:25:06 +00:00"
                },
                "avg_backlinks_info": null
              },
              "intersection_result": {
                "1": {
                  "se_type": "bing",
                  "type": "organic",
                  "rank_group": 25,
                  "rank_absolute": 25,
                  "position": "left",
                  "xpath": "/html[1]/body[1]/div[1]/main[1]/ol[1]/li[25]",
                  "domain": "bertie.forbes.com",
                  "title": "Bertie",
                  "url": "https://bertie.forbes.com/",
                  "breadcrumb": "https://bertie.forbes.com",
                  "is_image": false,
                  "is_video": false,
                  "is_featured_snippet": false,
                  "is_malicious": false,
                  "description": "v2022.06.08a cf1e126bcd ...",
                  "pre_snippet": null,
                  "extended_snippet": null,
                  "amp_version": false,
                  "rating": null,
                  "highlighted": null,
                  "links": null,
                  "about_this_result": null,
                  "main_domain": "forbes.com",
                  "relative_url": "/",
                  "etv": 0.020999999716877937,
                  "estimated_paid_traffic_cost": null,
                  "rank_changes": {
                    "previous_rank_absolute": null,
                    "is_new": true,
                    "is_up": false,
                    "is_down": false
                  },
                  "backlinks_info": {
                    "referring_domains": 237,
                    "referring_main_domains": 230,
                    "referring_pages": 204228,
                    "dofollow": 204160,
                    "backlinks": 204436,
                    "time_update": "2022-08-02 20:20:48 +00:00"
                  },
                  "rank_info": {
                    "page_rank": 855,
                    "main_domain_rank": 718
                  }
                },
                "2": {
                  "se_type": "bing",
                  "type": "organic",
                  "rank_group": 17,
                  "rank_absolute": 17,
                  "position": "left",
                  "xpath": "/html[1]/body[1]/div[1]/main[1]/ol[1]/li[17]",
                  "domain": "www.cnn.com",
                  "title": "As pools and beaches open for Memorial Day, experts warn a …",
                  "url": "https://www.cnn.com/2022/05/29/us/us-lifeguard-shortage-pools-memorial-day/index.html",
                  "breadcrumb": "https://www.cnn.com/2022/05/29/us/us-lifeguard-shortage-pools-memorial-day",
                  "is_image": false,
                  "is_video": false,
                  "is_featured_snippet": false,
                  "is_malicious": false,
                  "description": "May 29, 2022 · Austin, Texas, will have fewer than half its city pools open by early June, officials there told CNN. The city has been able to hire just over 30% of the 750 lifeguards required to operate all the ...",
                  "pre_snippet": "May 29, 2022",
                  "extended_snippet": null,
                  "amp_version": false,
                  "rating": null,
                  "highlighted": [
                    "Austin",
                    "pools"
                  ],
                  "links": null,
                  "about_this_result": null,
                  "main_domain": "cnn.com",
                  "relative_url": "/2022/05/29/us/us-lifeguard-shortage-pools-memorial-day/index.html",
                  "etv": 0.0430000014603138,
                  "estimated_paid_traffic_cost": null,
                  "rank_changes": {
                    "previous_rank_absolute": null,
                    "is_new": true,
                    "is_up": false,
                    "is_down": false
                  },
                  "backlinks_info": {
                    "referring_domains": 68,
                    "referring_main_domains": 65,
                    "referring_pages": 134,
                    "dofollow": 112,
                    "backlinks": 166,
                    "time_update": "2022-08-02 09:55:47 +00:00"
                  },
                  "rank_info": {
                    "page_rank": 262,
                    "main_domain_rank": 691
                  }
                }
              }
            },
            {
              "se_type": "bing",
              "keyword_data": {
                "se_type": "bing",
                "keyword": "government shutdown update",
                "location_code": 2840,
                "language_code": "en",
                "keyword_info": {
                  "se_type": "bing",
                  "last_updated_time": "2022-08-14 11:36:44 +00:00",
                  "competition": 0.10000000149011612,
                  "cpc": null,
                  "search_volume": 70,
                  "monthly_searches": [
                    {
                      "year": 2022,
                      "month": 7,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 6,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 5,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 4,
                      "search_volume": 10
                    },
                    {
                      "year": 2022,
                      "month": 3,
                      "search_volume": 30
                    },
                    {
                      "year": 2022,
                      "month": 2,
                      "search_volume": 20
                    },
                    {
                      "year": 2022,
                      "month": 1,
                      "search_volume": 20
                    },
                    {
                      "year": 2021,
                      "month": 12,
                      "search_volume": 150
                    },
                    {
                      "year": 2021,
                      "month": 11,
                      "search_volume": 80
                    },
                    {
                      "year": 2021,
                      "month": 10,
                      "search_volume": 160
                    },
                    {
                      "year": 2021,
                      "month": 9,
                      "search_volume": 380
                    },
                    {
                      "year": 2021,
                      "month": 8,
                      "search_volume": 10
                    }
                  ]
                },
                "serp_info": {
                  "se_type": "bing",
                  "check_url": "https://www.bing.com/search?q=government%20shutdown%20update&count=50&first=1&setmkt=en-US&setlang=en-US&safesearch=Moderate&form=QBLH",
                  "serp_item_types": [
                    "organic",
                    "top_stories",
                    "video",
                    "people_also_ask",
                    "related_searches"
                  ],
                  "se_results_count": 44,
                  "last_updated_time": "2022-08-24 13:53:30 +00:00",
                  "previous_updated_time": "2022-07-22 19:56:32 +00:00"
                },
                "avg_backlinks_info": null
              },
              "intersection_result": {
                "1": {
                  "se_type": "bing",
                  "type": "organic",
                  "rank_group": 33,
                  "rank_absolute": 33,
                  "position": "left",
                  "xpath": "/html[1]/body[1]/div[1]/main[1]/ol[1]/li[33]",
                  "domain": "bertie.forbes.com",
                  "title": "Bertie - Forbes",
                  "url": "https://bertie.forbes.com/",
                  "breadcrumb": "https://bertie.forbes.com",
                  "is_image": false,
                  "is_video": false,
                  "is_featured_snippet": false,
                  "is_malicious": false,
                  "description": "v2022.08.21a a29591a15d ...",
                  "pre_snippet": null,
                  "extended_snippet": null,
                  "amp_version": false,
                  "rating": null,
                  "highlighted": null,
                  "links": null,
                  "about_this_result": null,
                  "main_domain": "forbes.com",
                  "relative_url": "/",
                  "etv": 0.1469999998807907,
                  "estimated_paid_traffic_cost": null,
                  "rank_changes": {
                    "previous_rank_absolute": null,
                    "is_new": true,
                    "is_up": false,
                    "is_down": false
                  },
                  "backlinks_info": {
                    "referring_domains": 237,
                    "referring_main_domains": 230,
                    "referring_pages": 204228,
                    "dofollow": 204160,
                    "backlinks": 204436,
                    "time_update": "2022-08-02 20:20:48 +00:00"
                  },
                  "rank_info": {
                    "page_rank": 855,
                    "main_domain_rank": 718
                  }
                },
                "2": {
                  "se_type": "bing",
                  "type": "organic",
                  "rank_group": 45,
                  "rank_absolute": 46,
                  "position": "left",
                  "xpath": "/html[1]/body[1]/div[1]/main[1]/ol[1]/li[2]",
                  "domain": "www.cnn.com",
                  "title": "Government shutdown: Biden signs bill to keep …",
                  "url": "https://www.cnn.com/2021/09/30/politics/government-shutdown-deadline-congress-votes/index.html",
                  "breadcrumb": "https://www.cnn.com/2021/09/30/politics/government...",
                  "is_image": false,
                  "is_video": false,
                  "is_featured_snippet": false,
                  "is_malicious": false,
                  "description": "Sep 30, 2021 · LIVE UPDATES: Congress races to avert a government shutdown Senate Majority Leader Chuck Schumer announced Wednesday evening that an agreement had been reached, paving the way for a …",
                  "pre_snippet": "Sep 30, 2021",
                  "extended_snippet": null,
                  "amp_version": false,
                  "rating": null,
                  "highlighted": [
                    "UPDATES: Congress",
                    "government shutdown"
                  ],
                  "links": [
                    {
                      "type": "link_element",
                      "title": "The US government avoided a shutdown – but what happens next?",
                      "description": null,
                      "url": "https://www.theguardian.com/us-news/2021/sep/30/explainer-us-government-shutdown-budget-debt-ceiling-biden-democrats"
                    },
                    {
                      "type": "link_element",
                      "title": "Will the US government shut down in 2021? | The US Sun",
                      "description": null,
                      "url": "https://www.the-sun.com/news/3743827/will-us-government-shutdown-2021/"
                    },
                    {
                      "type": "link_element",
                      "title": "Government Shutdown Latest: What Happens If Federal Agencies Clo…",
                      "description": null,
                      "url": "https://detroit.cbslocal.com/2021/09/29/government-shutdown-what-happens-debt-ceiling/"
                    },
                    {
                      "type": "link_element",
                      "title": "Government Shutdown: Latest News, Top Stories & Analysis- POLITICO",
                      "description": null,
                      "url": "https://www.politico.com/news/government-shutdown"
                    },
                    {
                      "type": "link_element",
                      "title": "Government shutdown 2021 LIVE - The US Sun",
                      "description": null,
                      "url": "https://www.the-sun.com/news/3741863/government-shutdown-2021-live-will-federal-when-latest/"
                    }
                  ],
                  "about_this_result": null,
                  "main_domain": "cnn.com",
                  "relative_url": "/2021/09/30/politics/government-shutdown-deadline-congress-votes/index.html",
                  "etv": 0.1469999998807907,
                  "estimated_paid_traffic_cost": null,
                  "rank_changes": {
                    "previous_rank_absolute": null,
                    "is_new": true,
                    "is_up": false,
                    "is_down": false
                  },
                  "backlinks_info": {
                    "referring_domains": 389,
                    "referring_main_domains": 365,
                    "referring_pages": 1781,
                    "dofollow": 1083,
                    "backlinks": 1902,
                    "time_update": "2022-08-02 13:37:07 +00:00"
                  },
                  "rank_info": {
                    "page_rank": 327,
                    "main_domain_rank": 691
                  }
                }
              }
            }
          ]
        }
      ]
    }
  ]
}

All POST data should be sent in the JSON format (UTF-8 encoding). The task setting is done using the POST method. When setting a task, you should send all task parameters in the task array of the generic POST array. You can send up to 2000 API calls per minute. The maximum number of requests that can be sent simultaneously is limited to 30.

You can specify the number of results you want to retrieve and sort them.

Below you will find a detailed description of the fields you can use for setting a task.

Description of the fields for setting a task:

Field name Type Description
pages object target URLs of pages
required field
you can set up to 20 pages in this object
the pages should be specified with absolute URLs (including http:// or https://)
example:
"pages": {
"1":"https://www.apple.com/mac/*",
"2":"https://dataforseo.com/*",
"3":"https://support.microsoft.com/"
}
if you specify a single page here, we will return results only for this page;
you can also use a wildcard (‘*’) character to specify the search pattern
example:
"example.com"
search for the exact URL
"example.com/eng/*"
search for the example.com page and all its related URLs which start with ‘/eng/’, such as “example.com/eng/index.html” and “example.com/eng/help/”, etc.
note: a wilcard should be placed after the slash (‘/’) character in the end of the URL, it is not possible to place it after the domain in the following way:
https://dataforseo.com*
use https://dataforseo.com/* instead

Note: this endpoint will not provide results if the number of intersecting keywords exceeds 10 million

exclude_pages array URLs of pages you want to exclude
optional field
you can set up to 10 pages in this array
if you use this array, results will contain the keywords for which URLs from the pages object rank, but URLs from exclude_pages array do not;

note that if you specify this field, the results will be based on the keywords any URL from pages ranks for regardless of intersections between them. However, you can set intersection_mode to intersect and results will contain the keywords all URLs from pages rank for in the same SERP and URLs from exclude_pages do not.
use a wildcard (‘*’) character to specify the search pattern
example:
"exclude_pages": [
"https://www.apple.com/iphone/*",
"https://dataforseo.com/apis/*",
"https://www.microsoft.com/en-us/industry/services/"
]

location_name string full name of the location
required field if you don’t specify location_code
Note: it is required to specify either location_name or location_code
you can receive the list of available locations with their location_name by making a separate request to
https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages;
Note: this endpoint currently supports the US location only;
example:
United States
location_code integer location code
required field if you don’t specify location_name
Note: it is required to specify either location_name or location_code
you can receive the list of available locations with their location_code by making a separate request to
https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages;
Note: this endpoint currently supports the US location only;
example:
2840
language_name string full name of the language
required field if you don’t specify language_code
Note: it is required to specify either language_name or language_code
you can receive the list of available languages with their language_name by making a separate request to the
https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages
example:
English
language_code string language code
required field if you don’t specify language_name
Note: it is required to specify either language_name or language_code
you can receive the list of available languages with their language_code by making a separate request to the
https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages
example:
en
item_types array search results type
indicates type of search results included in the response
optional field

possible values:
["organic", "paid", "featured_snippet", "local_pack"]
default value:
["organic", "paid", "featured_snippet", "local_pack"]

ignore_synonyms boolean ignore highly similar keywords
optional field
if set to true only core keywords will be returned, all highly similar keywords will be excluded;
default value: false
limit integer the maximum number of returned keywords
optional field
default value: 100
maximum value: 1000
offset integer offset in the items array of returned keywords
optional field
default value: 0
if you specify 10 here, the first ten keywords in the results array will be omitted and the data will be provided for the successive keywords
include_subdomains boolean indicates if the subdomains will be included in the search
optional field
if set to false, the subdomains will be ignored
default value: true
intersection_mode string indicates whether to intersect keywords
optional field
use this field to intersect or merge results for the specified URLs

possible values: union, intersect

union – results are based on all keywords any URL from pages rank for;

intersect – results are based on the keywords all URLs from pages rank for in the same SERP:

by default, results are based on the intersect mode if you specify only pages array. If you specify exclude_pages as well, results are based on the union mode

include_serp_info boolean include data from SERP for each keyword
optional field
if set to true, we will return a serp_info array containing SERP data (number of search results, relevant URL, and SERP features) for every keyword in the response
default value: false
filters array array of results filtering parameters
optional field
you can add several filters at once (8 filters maximum)
you should set a logical operator and, or between the conditions
the following operators are supported:
regex, <, <=, >, >=, =, <>, in, not_in, like, not_like
you can use the % operator with like and not_like to match any string of zero or more charactersnote that if you want to filter by any field in the intersection_result array you need to specify the number of corresponding page
for instance, if you want to filter results by the ranking of the first specified URL, you should set the following filter:
[intersection_result.1.rank_absolute,"=",1]
if you want to filter results and receive only organic listings for the third specified URL, you should set the following filter:
[intersection_result.3.type,"=","organic"] , etc.example:
["keyword_data.keyword_info.search_volume","in",[100,1000]]
[["intersection_result.1.etv",">",0],"and",["intersection_result.1.description","like","%goat%"]][["keyword_data.keyword_info.search_volume",">",100],
"and",
[["intersection_result.2.description","like","%goat%"],
"or",
["intersection_result.2.type","=","organic"]]]

for more information about filters, please refer to Dataforseo Labs – Filters or this help center guide
order_by array results sorting rules
optional field
you can use the same values as in the filters array to sort the results
possible sorting types:
asc – results will be sorted in the ascending order
desc – results will be sorted in the descending order
you should use a comma to set up a sorting parameter
example:
["keyword_data.keyword_info.competition,desc"]
default rule:
["keyword_data.keyword_info.search_volume,desc"]
note that you can set no more than three sorting rules in a single request
you should use a comma to separate several sorting rules
example:
["intersection_result.1.rank_group,asc","intersection_result.2.rank_absolute,asc"]
tag string user-defined task identifier
optional field
the character limit is 255
you can use this parameter to identify the task and match it with the result
you will find the specified tag value in the data object of the response

As a response of the API server, you will receive JSON-encoded data containing a tasks array with the information specific to the set tasks.

Description of the fields in the results array:

Field name Type Description
version string the current version of the API
status_code integer general status code
you can find the full list of the response codes here
Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_message string general informational message
you can find the full list of general informational messages here
time string execution time, seconds
cost float total tasks cost, USD
tasks_count integer the number of tasks in the tasks array
tasks_error integer the number of tasks in the tasks array returned with an error
tasks array array of tasks
        id string task identifier
unique task identifier in our system in the UUID format
        status_code integer status code of the task
generated by DataForSEO; can be within the following range: 10000-60000
you can find the full list of the response codes here
        status_message string informational message of the task
you can find the full list of general informational messages here
        time string execution time, seconds
        cost float cost of the task, USD
        result_count integer number of elements in the result array
        path array URL path
        data object contains the same parameters that you specified in the POST request
        result array array of results
            se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
            pages object URLs you specified a POST array
            exclude_pages array URLs you specified in a POST array that will be excluded from the results
            location_code integer location code in a POST array
            language_code string language code in a POST array
            total_count integer total amount of results in our database relevant to your request
            items_count integer the number of results returned in the items array
            items array contains keywords, relevant SERP elements and related data
                se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                keyword_data object keyword data for the returned keyword
                    se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                    keyword string returned keyword
                    location_code integer location code in a POST array
                    language_code string language code in a POST array
                    keyword_info object keyword data for the returned keyword
                        se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                        last_updated_time string date and time when keyword data was updated
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-11-15 12:57:46 +00:00
                        competition float competition
represents the relative amount of competition associated with the given keyword
this value is based on Bing Ads data and can be between 0 and 1 (inclusive)
                        cpc float cost-per-click
represents the average cost per click (USD) historically paid for the keyword
                        search_volume integer average monthly search volume rate
represents the (approximate) number of searches for the returned keyword on bing.com
                        monthly_searches array monthly searches
represents the (approximate) number of searches for this keyword (as available for the past twelve months), targeted to the specified geographic locations
                            year integer year
                            month integer month
                           search_volume integer monthly average search volume rate
                   serp_info object SERP data
the value will be null if you didn’t set the field include_serp_info to true in the POST array or if there is no SERP data for this keyword in our database
                       se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                       check_url string direct URL to search engine results
you can use it to make sure that we provided accurate results
                       serp_item_types array types of search results in SERP
contains types of search results (items) found in SERP
possible item types:
answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local_pack, map, organic, paid, people_also_ask, people_also_search,questions_and_answers, recipes, related_searches, shopping, top_stories, video;
note that the actual results will be returned only for organic, paid, featured_snippet, and local_pack elements
                       se_results_count string number of search results for the returned keyword
                       last_updated_time string date and time when SERP data was updated
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-11-15 12:57:46 +00:00
                       previous_updated_time string previous to the most recent date and time when SERP data was updated
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-10-15 12:57:46 +00:00
                   avg_backlinks_info object backlink data for the returned keyword
this object provides the average number of backlinks, referring pages and domains, as well as the average rank values among the top-10 websites ranking organically for the keyword
                       se_type string search engine type
                       backlinks float average number of backlinks
                       dofollow float average number of dofollow links
                       referring_pages float average number of referring pages
                       referring_domains float average number of referring domains
                       referring_main_domains float average number of referring main domains
                       rank float average rank
learn more about the metric and its calculation formula in this help center article
                       main_domain_rank float average main domain rank
learn more about the metric and its calculation formula in this help center article
                       last_updated_time string date and time when backlink data was updated
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-11-15 12:57:46 +00:00
                intersection_result object contains data on the SERP elements found for the returned keyword
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively
                    1 object contains data on the SERP element for the respective URL
field name varies in the range from 1 to 20 according to the number of URLs in the pages object;
possible types of SERP elements:
organic, paid, featured_snippet, local_pack
                ‘organic’ element in SERP’
                        se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                        type string type of element = ‘organic’
                        rank_group integer position within a group of elements with identical type values
positions of elements with different type values are omitted from rank_group
                        rank_absolute integer absolute rank in SERP
absolute position among all the elements in SERP
                        position string the alignment of the element in SERP
can take the following values:
left, right
                        xpath string the XPath of the element
                        domain string subdomain in SERP
                        title string title of the result in SERP
                        url string relevant URL in SERP
                        breadcrumb string breadcrumb in SERP
                        is_image boolean indicates whether the element contains an image
                        is_video boolean indicates whether the element contains a video
                        is_featured_snippet boolean indicates whether the element is a featured_snippet
                        is_malicious boolean indicates whether the element is marked as malicious
                        description string description of the results element in SERP
                        pre_snippet string includes additional information appended before the result description in SERP
                        extended_snippet string includes additional information appended after the result description in SERP
                        amp_version boolean Accelerated Mobile Pages
indicates whether an item has the Accelerated Mobile Page (AMP) version
                        rating object the item’s rating
the popularity rate based on reviews and displayed in SERP
                            rating_type string the type of rating
here you can find the following elements: Max5, Percents, CustomMax
                            value integer the value of the rating
                            votes_count integer the amount of feedback
                            rating_max integer the maximum value for a rating_type
                        highlighted array words highlighted in bold within the results description
                        links array sitelinks
the links shown below some of the search results
if there are none, equals null
                           type string type of element = ‘link_element
                           title string title of the result in SERP
                          description string description of the results element in SERP
                           url string sitelink URL
                        main_domain string primary domain name in SERP
                        relative_url string relative URL in SERP
                        etv float estimated traffic volume
estimated organic monthly traffic to the domain;
calculated as the product of CTR (click-through-rate) and search volume values of the returned keyword
learn more about how the metric is calculated in this help center article
                        estimated_paid_traffic_cost float estimated cost of converting organic search traffic into paid
represents the estimated monthly cost of running ads (USD) for the returned keyword;
the metric is calculated as the product of organic etv and paid cpc values and indicates the cost of driving the estimated volume of monthly organic traffic through PPC advertising in Bing Search
learn more about how the metric is calculated in this help center article
                        rank_changes object changes in rankings
contains information about the ranking changes of the SERP element since the previous_updated_time
                            previous_rank_absolute integer previous absolute rank in SERP
indicates previous rank of the element in Bing SERP;
if this element is new, the value will be null
                            is_new boolean element was previously present in SERP
if the value is true, previously collected SERP didn’t contain this element
                            is_up boolean rank of this element went up
if the value is true, position of the element in SERP is higher compared to the previous check
                            is_down boolean rank of this element went down
if the value is true, position of the element in SERP is lower compared to the previous check
                ‘paid’ element in SERP
                        se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                        type string type of element = ‘paid’
                        rank_group integer position within a group of elements with identical type values
positions of elements with different type values are omitted from rank_group
                        rank_absolute integer absolute rank in SERP
absolute position among all the elements in SERP
                        position string the alignment of the element in SERP
can take the following values:
left, right
                        xpath string the XPath of the element
                        title string title of the result in SERP
                        domain string domain in SERP of the Ad element
                        description string description of the results element in SERP
                        breadcrumb string breadcrumb of the Ad element in SERP
                        url string relevant URL of the Ad element in SERP
                        highlighted array words highlighted in bold within the results description
                        extra array additional information about the result
                        ad_aclk string the identifier of the ad
                        description_rows array extended description
if there is none, equals null
                        links array sitelinks
the links shown below some of the search results
if there are none, equals null
                            type string type of element = ‘ad_link_element
                            title string title of the link element
                            description string description of the results element in SERP
                            url string URL link
                            ad_aclk string the identifier of the ad
                        main_domain string primary domain name in SERP
                        relative_url string relative URL in SERP
                        etv float estimated traffic volume
estimated organic monthly traffic to the domain;
calculated as the product of CTR (click-through-rate) and search volume values of the returned keyword
learn more about how the metric is calculated in this help center article
                        estimated_paid_traffic_cost float estimated cost of paid monthly search traffic
represents the estimated cost of paid monthly traffic (USD) based on etv and cpc values
learn more about how the metric is calculated in this help center article
                        rank_changes object changes in rankings
contains information about the ranking changes of the SERP element since the previous_updated_time
                            previous_rank_absolute integer previous absolute rank in SERP
indicates previous rank of the element in Bing SERP;
if this element is new, the value will be null
                            is_new boolean element was previously present in SERP
if the value is true, previously collected SERP didn’t contain this element
                            is_up boolean rank of this element went up
if the value is true, position of the element in SERP is higher compared to the previous check
                            is_down boolean rank of this element went down
if the value is true, position of the element in SERP is lower compared to the previous check
                ‘local_pack’ element in SERP
                        se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                        type string type of element = ‘local_pack’
                        rank_group integer position within a group of elements with identical type values
positions of elements with different type values are omitted from rank_group
                        rank_absolute integer absolute rank in SERP
absolute position among all the elements in SERP
                        position string the alignment of the element in SERP
can take the following values:
left, right
                        xpath string the XPath of the element
                        title string title of the result in SERP
                        description string description of the results element in SERP
                        domain string domain in SERP
                        phone string phone number
                        url string relevant URL
                        is_paid boolean indicates whether the element is an ad
                        rating object the item’s rating
the popularity rate based on reviews and displayed in SERP
                            rating_type string the type of rating
here you can find the following elements: Max5, Percents, CustomMax
                            value integer the value of the rating
                            votes_count integer the amount of feedback
                            rating_max integer the maximum value for a rating_type
                        main_domain string primary domain name in SERP
                        relative_url string relative URL in SERP
                        etv float estimated traffic volume
estimated organic monthly traffic to the domain;
calculated as the product of CTR (click-through-rate) and search volume values of the returned keyword
learn more about how the metric is calculated in this help center article
                        estimated_paid_traffic_cost float estimated cost of converting organic search traffic into paid
represents the estimated monthly cost of running ads (USD) for the returned keyword;
the metric is calculated as the product of organic etv and paid cpc values and indicates the cost of driving the estimated volume of monthly organic traffic through PPC advertising in Bing Search
learn more about how the metric is calculated in this help center article
                        rank_changes object changes in rankings
contains information about the ranking changes of the SERP element since the previous_updated_time
                            previous_rank_absolute integer previous absolute rank in SERP
indicates previous rank of the element in Bing SERP;
if this element is new, the value will be null
                            is_new boolean element was previously present in SERP
if the value is true, previously collected SERP didn’t contain this element
                            is_up boolean rank of this element went up
if the value is true, position of the element in SERP is higher compared to the previous check
                            is_down boolean rank of this element went down
if the value is true, position of the element in SERP is lower compared to the previous check
                ‘featured_snippet’ element in SERP
                        se_type string search engine type
search engine type specified in a POST request;
for this endpoint, the field equals bing
                        type string type of element = ‘featured_snippet’
                        rank_group integer position within a group of elements with identical type values
positions of elements with different type values are omitted from rank_group
                        rank_absolute integer absolute rank in SERP
absolute position among all the elements in SERP
                        position string the alignment of the element in SERP
can take the following values:
left, right
                        xpath string the XPath of the element
                        domain string domain in SERP
                        title string title of the result in SERP
                        featured_title string the title of the featured snippets source page
                        description string description of the results element in SERP
                        url string relevant URL
                        table array results table
if there are none, equals null
                           table_header array column names
                           table_content array the content of the table
one line of the table in this element of the array
                    about_this_result object contains information from the ‘About this result’ panel
                       type string type of element = ‘about_this_result_element
                       url string result’s URL
                       source string source of additional information about the result
                       source_info string additional information about the result
description of the website from Wikipedia or another additional context
                       source_url string URL to full information from the source
                       language string the language of the result
                       location string location for which the result is relevant
                       search_terms array matching search terms that appear in the result
                       related_terms array related search terms that appear in the result
                       main_domain string primary domain name in SERP
                       relative_url string relative URL in SERP
                       etv float estimated traffic volume
estimated organic monthly traffic to the domain;
calculated as the product of CTR (click-through-rate) and search volume values of the returned keyword
learn more about how the metric is calculated in this help center article
                       estimated_paid_traffic_cost float estimated cost of converting organic search traffic into paid
represents the estimated monthly cost of running ads (USD) for the returned keyword;
the metric is calculated as the product of organic etv and paid cpc values and indicates the cost of driving the estimated volume of monthly organic traffic through PPC advertising in Bing Search
learn more about how the metric is calculated in this help center article
                        rank_changes object changes in rankings
contains information about the ranking changes of the SERP element since the previous_updated_time
                            previous_rank_absolute integer previous absolute rank in SERP
indicates previous rank of the element in Bing SERP;
if this element is new, the value will be null
                            is_new boolean element was previously present in SERP
if the value is true, previously collected SERP didn’t contain this element
                            is_up boolean rank of this element went up
if the value is true, position of the element in SERP is higher compared to the previous check
                            is_down boolean rank of this element went down
if the value is true, position of the element in SERP is lower compared to the previous check

‌‌