NAVNavbar
Logo
cURL php NodeJS Python cSharp

Keyword Suggestions (Legacy)

‌‌‌‌

Note that the structure of DataForSEO Labs API requests and responses was updated on 2022-03-19. However, we will continue supporting the legacy version documented here. You can review the documentation of the new version by this link.

 
The Keyword Suggestions endpoint provides search queries that include the specified seed keyword.

The algorithm is based on the full-text search for the specified keyword and therefore returns only those search terms that contain the keyword you set in the POST array with additional words before, after, or within the specified key phrase. Returned keyword suggestions can contain the words from the specified key phrase in a sequence different from the one you specify.

As a result, you will get a list of long-tail keywords with each keyword in the list matching the specified search term.

Along with each suggested keyword, you will get its search volume rate for the last month, search volume trend for the previous 12 months, as well as current cost-per-click and competition values. Moreover, this endpoint supplies minimum, maximum and average values of daily impressions, clicks and CPC for each result.

Datasource: DataForSEO Keyword Database
Search algorithm: full-text search for terms that match the specified seed keyword with additional words included before, after, or within the seed key phrase.
Examples
Specified seed keyword:
“keyword research”
Resulting suggestions:
•”google research keyword”,
•”how to do keyword research”,
•”keyword competitor research”,
•”how to do keyword research for content marketing”

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

<?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-access
$client = new RestClient($api_url, null, 'login', 'password');

$post_array = array();
// simple way to set a task
$post_array[] = array(
   "keyword" => "phone",
   "location_code" => 2840,
   "filters" => [
      ["impressions_info.ad_position_average", ">", 1],
      "and",
      [
         ["impressions_info.cpc_max", "<", 0.5],
         "or",
         ["impressions_info.daily_clicks_max", ">=", 10]
      ]
   ]
);
try {
   // POST /v3/dataforseo_labs/keyword_suggestions/live
   $result = $client->post('/v3/dataforseo_labs/keyword_suggestions/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.20220131",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "2.4779 sec.",
  "cost": 0.0105,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "02011104-1535-0125-0000-47c5eeafd4ce",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "2.4231 sec.",
      "cost": 0.0105,
      "result_count": 1,
      "path": [
        "v3",
        "dataforseo_labs",
        "keyword_suggestions",
        "live"
      ],
      "data": {
        "api": "dataforseo_labs",
        "function": "keyword_suggestions",
        "keyword": "phone",
        "location_code": 2840,
        "include_serp_info": true,
        "filters": [
          [
            "impressions_info.ad_position_average",
            ">",
            1
          ],
          "and",
          [
            [
              "impressions_info.cpc_max",
              "<",
              0.5
            ],
            "or",
            [
              "impressions_info.daily_clicks_max",
              ">=",
              10
            ]
          ]
        ],
        "limit": 5
      },
      "result": [
        {
          "seed_keyword": "phone",
          "seed_keyword_data": null,
          "location_code": 2840,
          "language_code": null,
          "total_count": 7322,
          "items_count": 5,
          "offset": 0,
          "offset_token": "eyJDdXJyZW50T2Zmc2V0Ijo1LCJSZXF1ZXN0RGF0YSI6eyJrZXl3b3JkIjoicGhvbmUiLCJpbmNsdWRlX3NlZWRfa2V5d29yZCI6ZmFsc2UsImZ1bGxfbWF0Y2giOmZhbHNlLCJsb2FkX3NlcnBfaW5mbyI6dHJ1ZSwic2VhcmNoX2FmdGVyX3Rva2VuIjpudWxsLCJsYW5ndWFnZSI6ImVuIiwibG9jYXRpb24iOjI4NDAsIm9yZGVyX2J5Ijp7Im9yZGVyX2ZpZWxkIjoia2V5d29yZF9pbmZvLnNlYXJjaF92b2x1bWUiLCJvcmRlcl90eXBlIjoiRGVzYyIsIm5leHQiOm51bGx9LCJsaW1pdCI6NSwib2Zmc2V0IjowfSwiUmF3UXVlcnkiOnsidHlwZSI6ImFuZCIsImxlZnQiOnsiZmllbGQiOiJpbXByZXNzaW9uc19pbmZvLmFkX3Bvc2l0aW9uX2F2ZXJhZ2UiLCJ0eXBlIjoiZ3QiLCJ2YWx1ZSI6MX0sInJpZ2h0Ijp7InR5cGUiOiJvciIsImxlZnQiOnsiZmllbGQiOiJpbXByZXNzaW9uc19pbmZvLmNwY19tYXgiLCJ0eXBlIjoibHQiLCJ2YWx1ZSI6MC41fSwicmlnaHQiOnsiZmllbGQiOiJpbXByZXNzaW9uc19pbmZvLmRhaWx5X2NsaWNrc19tYXgiLCJ0eXBlIjoiZ3RlIiwidmFsdWUiOjEwfX19LCJTZWFyY2hBZnRlckRhdGEiOlszNjgwMDAsIjdmZmE1ODE5LWJiOTgtMzc1MS1mNzA4LTFmYTQ2ZjdiMzgyNSJdfQ==",
          "items": [
            {
              "keyword": "irs phone number",
              "location_code": 2840,
              "language_code": "en",
              "keyword_info": {
                "last_updated_time": "2022-01-12 13:59:56 +00:00",
                "competition": 0.07362210563393337,
                "cpc": 2.578507,
                "search_volume": 1000000,
                "categories": [
                  10004,
                  10012,
                  10018,
                  10019,
                  10168,
                  10276,
                  11093,
                  12202,
                  12387
                ],
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 550000
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 1000000
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 1000000
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 1220000
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 1500000
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 2740000
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 1830000
                  }
                ]
              },
              "keyword_properties": {
                "core_keyword": null,
                "keyword_difficulty": 62
              },
              "impressions_info": {
                "last_updated_time": "2022-01-16 19:44:25 +00:00",
                "bid": 999,
                "match_type": "exact",
                "ad_position_min": 1.14,
                "ad_position_max": 1,
                "ad_position_average": 1.07,
                "cpc_min": 13.1,
                "cpc_max": 16.01,
                "cpc_average": 14.56,
                "daily_impressions_min": 982.44,
                "daily_impressions_max": 1200.76,
                "daily_impressions_average": 1091.6,
                "daily_clicks_min": 58.7,
                "daily_clicks_max": 71.75,
                "daily_clicks_average": 65.23,
                "daily_cost_min": 854.52,
                "daily_cost_max": 1044.41,
                "daily_cost_average": 949.47
              },
              "bing_keyword_info": {
                "last_updated_time": "2022-02-01 07:00:07 +00:00",
                "search_volume": 15420,
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 7770
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 7690
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 9350
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 10610
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 11900
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 14530
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 14110
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 16440
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 20580
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 34400
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 13430
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 24210
                  }
                ]
              },
              "serp_info": {
                "check_url": "https://www.google.com/search?q=irs%20phone%20number&num=100&hl=en&gl=US&gws_rd=cr&ie=UTF-8&oe=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
                "serp_item_types": [
                  "organic",
                  "people_also_ask",
                  "local_pack",
                  "related_searches",
                  "multi_carousel"
                ],
                "se_results_count": 208000000,
                "keyword_difficulty": 62,
                "last_updated_time": "2022-01-13 20:30:08 +00:00",
                "previous_updated_time": null
              }
            },
            {
              "keyword": "find my phone",
              "location_code": 2840,
              "language_code": "en",
              "keyword_info": {
                "last_updated_time": "2022-01-16 23:26:18 +00:00",
                "competition": 0.14583037220500414,
                "cpc": 1.136297,
                "search_volume": 673000,
                "categories": [
                  10007,
                  10019,
                  10108,
                  10167,
                  10168,
                  10756,
                  10878,
                  10885,
                  11495,
                  12161,
                  13378,
                  13381,
                  13418,
                  13449
                ],
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 823000
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 673000
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 823000
                  }
                ]
              },
              "keyword_properties": {
                "core_keyword": null,
                "keyword_difficulty": 94
              },
              "impressions_info": {
                "last_updated_time": "2022-01-24 22:15:52 +00:00",
                "bid": 999,
                "match_type": "exact",
                "ad_position_min": 1.14,
                "ad_position_max": 1,
                "ad_position_average": 1.07,
                "cpc_min": 129.48,
                "cpc_max": 158.25,
                "cpc_average": 143.87,
                "daily_impressions_min": 5869.55,
                "daily_impressions_max": 7173.89,
                "daily_impressions_average": 6521.72,
                "daily_clicks_min": 430.02,
                "daily_clicks_max": 525.58,
                "daily_clicks_average": 477.8,
                "daily_cost_min": 61866.61,
                "daily_cost_max": 75614.75,
                "daily_cost_average": 68740.68
              },
              "bing_keyword_info": {
                "last_updated_time": "2022-02-01 03:08:39 +00:00",
                "search_volume": 43350,
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 47120
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 43930
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 47850
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 44580
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 44820
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 46310
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 44260
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 43990
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 40480
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 42080
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 35710
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 39020
                  }
                ]
              },
              "serp_info": {
                "check_url": "https://www.google.com/search?q=find%20my%20phone&num=100&hl=en&gl=US&gws_rd=cr&ie=UTF-8&oe=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
                "serp_item_types": [
                  "organic",
                  "people_also_ask",
                  "related_searches",
                  "multi_carousel"
                ],
                "se_results_count": 13680000000,
                "keyword_difficulty": 94,
                "last_updated_time": "2022-01-13 20:30:34 +00:00",
                "previous_updated_time": null
              }
            },
            {
              "keyword": "phone reverse lookup",
              "location_code": 2840,
              "language_code": "en",
              "keyword_info": {
                "last_updated_time": "2022-01-23 15:55:25 +00:00",
                "competition": 0.4761155664845308,
                "cpc": 1.003704,
                "search_volume": 450000,
                "categories": [
                  10007,
                  10108,
                  10756,
                  11495,
                  11498,
                  13418,
                  13449,
                  13710
                ],
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 550000
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 550000
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 550000
                  }
                ]
              },
              "keyword_properties": {
                "core_keyword": null,
                "keyword_difficulty": 77
              },
              "impressions_info": {
                "last_updated_time": "2021-12-29 15:06:24 +00:00",
                "bid": 999,
                "match_type": "exact",
                "ad_position_min": 1.16,
                "ad_position_max": 1,
                "ad_position_average": 1.08,
                "cpc_min": 9.89,
                "cpc_max": 12.09,
                "cpc_average": 10.99,
                "daily_impressions_min": 221.42,
                "daily_impressions_max": 270.62,
                "daily_impressions_average": 246.02,
                "daily_clicks_min": 21.39,
                "daily_clicks_max": 26.14,
                "daily_clicks_average": 23.77,
                "daily_cost_min": 235.14,
                "daily_cost_max": 287.39,
                "daily_cost_average": 261.26
              },
              "bing_keyword_info": {
                "last_updated_time": "2021-12-18 10:25:06 +00:00",
                "search_volume": 740,
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 550
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 590
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 640
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 710
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 750
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 830
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 760
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 710
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 910
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 820
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 820
                  },
                  {
                    "year": 2020,
                    "month": 12,
                    "search_volume": 790
                  }
                ]
              },
              "serp_info": {
                "check_url": "https://www.google.com/search?q=phone%20reverse%20lookup&num=100&hl=en&gl=US&gws_rd=cr&ie=UTF-8&oe=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
                "serp_item_types": [
                  "organic",
                  "people_also_ask",
                  "video",
                  "related_searches",
                  "multi_carousel"
                ],
                "se_results_count": 23600000,
                "keyword_difficulty": 77,
                "last_updated_time": "2022-01-13 20:31:37 +00:00",
                "previous_updated_time": null
              }
            },
            {
              "keyword": "reverse phone lookup",
              "location_code": 2840,
              "language_code": "en",
              "keyword_info": {
                "last_updated_time": "2022-01-23 03:58:20 +00:00",
                "competition": 0.4761155664845308,
                "cpc": 1.003704,
                "search_volume": 450000,
                "categories": [
                  10007,
                  10108,
                  10756,
                  11495,
                  11498,
                  13418,
                  13449,
                  13710
                ],
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 550000
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 550000
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 450000
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 550000
                  }
                ]
              },
              "keyword_properties": {
                "core_keyword": null,
                "keyword_difficulty": 77
              },
              "impressions_info": {
                "last_updated_time": "2022-01-31 05:48:00 +00:00",
                "bid": 999,
                "match_type": "exact",
                "ad_position_min": 1.29,
                "ad_position_max": 1,
                "ad_position_average": 1.17,
                "cpc_min": 205.84,
                "cpc_max": 251.58,
                "cpc_average": 228.71,
                "daily_impressions_min": 13243.92,
                "daily_impressions_max": 16187.02,
                "daily_impressions_average": 14715.47,
                "daily_clicks_min": 1493.47,
                "daily_clicks_max": 1825.36,
                "daily_clicks_average": 1659.41,
                "daily_cost_min": 341570.45,
                "daily_cost_max": 417475.04,
                "daily_cost_average": 379522.74
              },
              "bing_keyword_info": {
                "last_updated_time": "2021-12-21 23:43:52 +00:00",
                "search_volume": 94680,
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 71610
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 75790
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 79820
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 83750
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 84730
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 90860
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 88660
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 97370
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 114020
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 105520
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 113870
                  },
                  {
                    "year": 2020,
                    "month": 12,
                    "search_volume": 107620
                  }
                ]
              },
              "serp_info": {
                "check_url": "https://www.google.com/search?q=reverse%20phone%20lookup&num=100&hl=en&gl=US&gws_rd=cr&ie=UTF-8&oe=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
                "serp_item_types": [
                  "organic",
                  "people_also_ask",
                  "video",
                  "related_searches"
                ],
                "se_results_count": 22400000,
                "keyword_difficulty": 77,
                "last_updated_time": "2022-01-13 20:33:29 +00:00",
                "previous_updated_time": null
              }
            },
            {
              "keyword": "phone numbers",
              "location_code": 2840,
              "language_code": "en",
              "keyword_info": {
                "last_updated_time": "2022-01-20 19:29:18 +00:00",
                "competition": 0.16987623914506672,
                "cpc": 1.171982,
                "search_volume": 368000,
                "categories": [
                  10007,
                  10108,
                  10756,
                  11495,
                  11498,
                  13418,
                  13449,
                  13710
                ],
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 368000
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 368000
                  }
                ]
              },
              "keyword_properties": {
                "core_keyword": "phone number",
                "keyword_difficulty": 100
              },
              "impressions_info": {
                "last_updated_time": "2022-01-26 14:58:07 +00:00",
                "bid": 999,
                "match_type": "exact",
                "ad_position_min": 1.17,
                "ad_position_max": 1,
                "ad_position_average": 1.09,
                "cpc_min": 122.24,
                "cpc_max": 149.4,
                "cpc_average": 135.82,
                "daily_impressions_min": 240.79,
                "daily_impressions_max": 294.3,
                "daily_impressions_average": 267.54,
                "daily_clicks_min": 20.54,
                "daily_clicks_max": 25.1,
                "daily_clicks_average": 22.82,
                "daily_cost_min": 2789.69,
                "daily_cost_max": 3409.63,
                "daily_cost_average": 3099.66
              },
              "bing_keyword_info": {
                "last_updated_time": "2022-01-30 22:40:33 +00:00",
                "search_volume": 7130,
                "monthly_searches": [
                  {
                    "year": 2021,
                    "month": 12,
                    "search_volume": 6210
                  },
                  {
                    "year": 2021,
                    "month": 11,
                    "search_volume": 5740
                  },
                  {
                    "year": 2021,
                    "month": 10,
                    "search_volume": 5410
                  },
                  {
                    "year": 2021,
                    "month": 9,
                    "search_volume": 5620
                  },
                  {
                    "year": 2021,
                    "month": 8,
                    "search_volume": 5490
                  },
                  {
                    "year": 2021,
                    "month": 7,
                    "search_volume": 5830
                  },
                  {
                    "year": 2021,
                    "month": 6,
                    "search_volume": 6480
                  },
                  {
                    "year": 2021,
                    "month": 5,
                    "search_volume": 7340
                  },
                  {
                    "year": 2021,
                    "month": 4,
                    "search_volume": 7540
                  },
                  {
                    "year": 2021,
                    "month": 3,
                    "search_volume": 9120
                  },
                  {
                    "year": 2021,
                    "month": 2,
                    "search_volume": 8770
                  },
                  {
                    "year": 2021,
                    "month": 1,
                    "search_volume": 9470
                  }
                ]
              },
              "serp_info": {
                "check_url": "https://www.google.com/search?q=phone%20numbers&num=100&hl=en&gl=US&gws_rd=cr&ie=UTF-8&oe=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
                "serp_item_types": [
                  "paid",
                  "organic",
                  "people_also_ask",
                  "images",
                  "video",
                  "top_stories",
                  "related_searches"
                ],
                "se_results_count": 3180000000,
                "keyword_difficulty": 100,
                "last_updated_time": "2022-01-13 20:37:23 +00:00",
                "previous_updated_time": "2021-09-28 03:47:33 +00:00"
              }
            }
          ]
        }
      ]
    }
  ]
}

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.

You can specify the number of results you want to retrieve, filter 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
keyword string keyword
required field
UTF-8 encoding
a keyword should be at least 3 characters long;
the keywords will be converted to lowercase format
location_name string full name of the location
optional field
if you use this field, you don’t need to specify location_code
you can receive the list of available locations with their location_name by making a separate request to the
https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages
ignore this field to get the results for all available locations
example:
United Kingdom
location_code integer location code
optional field
if you use this field, you don’t need to specify location_name
you can receive the list of available locations with their location_code by making a separate request to the
https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages
ignore this field to get the results for all available locations
example:
2840
include_seed_keyword boolean include data for the seed keyword
optional field
if set to true, data for the seed keyword specified in the keyword field will be provided in the seed_keyword_data array of the response
default value: false
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
exact_match boolean search for the exact phrase
optional field
if set to true, the returned keywords will include the exact keyword phrase you specified, with potentially other words before or after that phrase
default value: true
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:
<, <=, >, >=, =, <>, in, not_in, like, not_like
you can use the % operator with like and not_like to match any string of zero or more characters
example:
["keyword_info.search_volume",">",0]

[["impressions_info.daily_impressions_average","in",[0,1000]],
"and",
["impressions_info.ad_position_average","=",1]]

[["impressions_info.ad_position_average",">",1],
"and",
[["impressions_info.cpc_max","<",0.5],"or",["impressions_info.daily_clicks_max",">=",10]]]

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
a comma is used as a separator
example:
["keyword_info.competition,desc"]
default rule:
["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:
["keyword_info.search_volume,desc","keyword_info.cpc,desc"]
limit integer the maximum number of returned keywords
optional field
default value: 100
maximum value: 1000
offset integer offset in the results array of returned keywords
optional field
default value: 0
if you specify the 10 value, the first ten keywords in the results array will be omitted and the data will be provided for the successive keywords
offset_token string offset token for subsequent requests
optional field
provided in the identical filed of the response to each request;
use this parameter to avoid timeouts while trying to obtain over 10,000 results in a single request;
by specifying the unique offset_token value from the response array, you will get the subsequent results of the initial task;
offset_token values are unique for each subsequent task
Note: if the offset_token is specified in the request, all other parameters except limit will not be taken into account when processing a task.
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
            seed_keyword string keyword in a POST array
            seed_keyword_data array keyword data for the seed keyword
fields in the array are identical to that of the items array
            location_code integer location code in a POST array
if there is no data, then the value is null
            language_code string language code in a POST array
if there is no data, then the value is null
            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
            offset integer current offset value
            offset_token string offset token for subsequent requests
you can use the string provided in this field to get the subsequent results of the initial task;
note: offset_token values are unique for each subsequent task
            items array contains keywords and related data
                    keyword string keyword suggestion
                    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
                        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 Google 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 given keyword idea on google.com
                        categories array product and service categories
you can download the full list of possible categories
                        monthly_searches array monthly searches
represents the (approximate) number of searches for this keyword idea (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
                    keyword_properties object additional information about the keyword
                        core_keyword string main keyword in a group
contains the main keyword in a group of keywords that share similarities across the keyword_info parameters
if the value is null, our database does not contain any keywords that match these criteria
                        keyword_difficulty integer difficulty of ranking in the first top-10 organic results for a keyword
indicates the chance of getting in top-10 organic results for a keyword on a logarithmic scale from 0 to 100;
calculated by analysing, among other parameters, link profiles of the first 10 pages in SERP;
learn more about the metric in this help center guide
                    impressions_info object impressions data for the returned keyword idea
daily_impressions values provide a more accurate alternative to Google search volume data;
the 999 bid is used to mitigate account-specific factors Google considers when calculating impressions
learn more about impressions in this help center article
                        last_updated_time string date and time when impressions data was updated
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-11-15 12:57:46 +00:00
                        bid integer the maximum CPC
it stands for the price you are willing to pay for an ad. The higher value, the higher positions and price you will get

we return the results for the 999 bid value to provide the highest number of impressions and level down the account-specific factors

                        match string keyword match-type
can take the following values: exact, broad, phrase
                        ad_position_min float the minimum ad position
represents the minimum position of the advertisement
                        ad_position_max float the maximum ad position
represents the maximum position of the advertisement
                        ad_position_average float the average ad position
represents the average position of the advertisement
                        cpc_min float the minimum value of cost-per-click
the minimum cost-per-click (USD) for the keyword given that a bid is set to 999;
note: this field does not represent an actual CPC value;
you can find an actual CPC value for a keyword in the cpc field of the keyword_info object
                        cpc_max float the maximum value of cost-per-click
the maximum cost-per-click (USD) for the keyword given that a bid is set to 999;
note: this field does not represent an actual CPC value;
you can find an actual CPC value for a keyword in the cpc field of the keyword_info object
                        cpc_average float the average value of cost-per-click
the average cost-per-click (USD) for the keyword given that a bid is set to 999;
note: this field does not represent an actual CPC value;
you can find an actual CPC value for a keyword in the cpc field of the keyword_info object
                        daily_impressions_min float the minimum value of daily impressions
represents the minimum number of daily impressions of the advertisement given that that a bid is set to 999;

provides a more accurate alternative to Google search volume data

                        daily_impressions_max float the maximum value of daily impressions
represents the maximum number of daily impressions of the advertisement given that that a bid is set to 999;

provides a more accurate alternative to Google search volume data

                        daily_impressions_average float the average value of daily impressions
represents the average number of daily impressions of the advertisement given that that a bid is set to 999;

provides a more accurate alternative to Google search volume data

                        daily_clicks_min float the minimum value of daily clicks
represents the minimum number of daily clicks on the advertisement
                        daily_clicks_max float the maximum value of daily clicks
represents the maximum number of daily clicks on the advertisement
                        daily_clicks_average float the average value of daily clicks
represents the average number of daily clicks on the advertisement
                        daily_cost_min float the minimum daily charge value
represents the minimum daily cost of the advertisement (USD)
                        daily_cost_max float the maximum daily charge value
represents the maximum daily cost of the advertisement (USD)
                        daily_cost_average float the average daily charge value
represents the average daily cost of the advertisement (USD)
                    bing_keyword_info object keyword data based on bing ads
note: bing data is available for a limited number of locations and languages
                        last_updated_time string date and time when keyword data was last updated
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-11-15 12:57:46 +00:00
                        search_volume integer monthly number of searches on bing
represents the number of searches for the given keyword idea on bing.com for the past month
                        monthly_searches array monthly searches
represents the number of monthly Bing searches on the returned keyword in the given location
                            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
                        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, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, images, jobs, knowledge_graph, local_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box;
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

‌‌