Help Center

  • Fill out my online form
  • How to get Search Volume, CPC & Competition with DataForSEO?

    DataForSEO has several powerful APIs that can supply all the data you need for efficient keyword research – Google Keyword Data API, Bing Keyword Data API, and DataForSEO Labs API. Besides that, we offer extensive Keyword Databases, enriched with essential up-to-date metrics, and historical search volume stats.

    If you’re interested in our Keyword Database, please refer to this article to learn more or feel free to download data samples from the Database page.

    For more information on getting Search Volume, CPC & Competition with our API, keep on reading.


    Google Keyword Data API

    Google Keyword Data API has a set of endpoints, and each of them can assist you with a specific task. Namely, you can get:

    In any endpoint, the returned or specified keywords will be provided with their average CPC, Competition, and Search Volume, as well as a 12-month search volume trend, and related product and service categories. The data source for this API is Google AdWords.

    Sample Request
    POST: https://api.dataforseo.com/v3/keywords_data/google/search_volume/live

    [
        {
            "location_name": "United States",
            "keywords": [
                "what is search volume",
                "search volume for keywords",
                "historical search volume"
            ]
        }
    ]
    

    Sample Response

    {
        "version": "0.1.20210818",
        "status_code": 20000,
        "status_message": "Ok.",
        "time": "2.0184 sec.",
        "cost": 0.075,
        "tasks_count": 1,
        "tasks_error": 0,
        "tasks": [
            {
                "id": "08251827-1535-0093-0000-0ee19f8e3ae9",
                "status_code": 20000,
                "status_message": "Ok.",
                "time": "1.8653 sec.",
                "cost": 0.075,
                "result_count": 3,
                "path": [
                    "v3",
                    "keywords_data",
                    "google",
                    "search_volume",
                    "live"
                ],
                "data": {
                    "api": "keywords_data",
                    "function": "search_volume",
                    "se": "google",
                    "location_name": "United States",
                    "keywords": [
                        "what is search volume",
                        "search volume for keywords",
                        "historical search volume"
                    ]
                },
                "result": [
                    {
                        "keyword": "what is search volume",
                        "location_code": 2840,
                        "language_code": null,
                        "search_partners": false,
                        "competition": 0.0297029702970297,
                        "cpc": 14.446793,
                        "search_volume": 110,
                        "categories": [
                            10011
                        ],
                        "monthly_searches": [
                            {
                                "year": 2021,
                                "month": 7,
                                "search_volume": 90
                            },
                            {
                                "year": 2021,
                                "month": 6,
                                "search_volume": 110
                            },
                            {
                                "year": 2021,
                                "month": 5,
                                "search_volume": 110
                            },
                            {
                                "year": 2021,
                                "month": 4,
                                "search_volume": 90
                            },
                            {
                                "year": 2021,
                                "month": 3,
                                "search_volume": 110
                            },
                            {
                                "year": 2021,
                                "month": 2,
                                "search_volume": 90
                            },
                            {
                                "year": 2021,
                                "month": 1,
                                "search_volume": 90
                            },
                            {
                                "year": 2020,
                                "month": 12,
                                "search_volume": 110
                            },
                            {
                                "year": 2020,
                                "month": 11,
                                "search_volume": 110
                            },
                            {
                                "year": 2020,
                                "month": 10,
                                "search_volume": 110
                            },
                            {
                                "year": 2020,
                                "month": 9,
                                "search_volume": 110
                            },
                            {
                                "year": 2020,
                                "month": 8,
                                "search_volume": 110
                            }
                        ]
                    },
                    {
                        "keyword": "search volume for keywords",
                        "location_code": 2840,
                        "language_code": null,
                        "search_partners": false,
                        "competition": 0.23516892790635807,
                        "cpc": 9.300427,
                        "search_volume": 1000,
                        "categories": [
                            10004,
                            10007,
                            10276,
                            11088,
                            12376,
                            13152,
                            13316,
                            13418
                        ],
                        "monthly_searches": [
                            {
                                "year": 2021,
                                "month": 7,
                                "search_volume": 1000
                            },
                            {
                                "year": 2021,
                                "month": 6,
                                "search_volume": 1000
                            },
                            {
                                "year": 2021,
                                "month": 5,
                                "search_volume": 1000
                            },
                            {
                                "year": 2021,
                                "month": 4,
                                "search_volume": 880
                            },
                            {
                                "year": 2021,
                                "month": 3,
                                "search_volume": 1000
                            },
                            {
                                "year": 2021,
                                "month": 2,
                                "search_volume": 1000
                            },
                            {
                                "year": 2021,
                                "month": 1,
                                "search_volume": 1000
                            },
                            {
                                "year": 2020,
                                "month": 12,
                                "search_volume": 1000
                            },
                            {
                                "year": 2020,
                                "month": 11,
                                "search_volume": 1000
                            },
                            {
                                "year": 2020,
                                "month": 10,
                                "search_volume": 1300
                            },
                            {
                                "year": 2020,
                                "month": 9,
                                "search_volume": 1300
                            },
                            {
                                "year": 2020,
                                "month": 8,
                                "search_volume": 1300
                            }
                        ]
                    },
                    {
                        "keyword": "historical search volume",
                        "location_code": 2840,
                        "language_code": null,
                        "search_partners": false,
                        "competition": 0.008403361344537815,
                        "cpc": null,
                        "search_volume": 40,
                        "categories": null,
                        "monthly_searches": [
                            {
                                "year": 2021,
                                "month": 7,
                                "search_volume": 30
                            },
                            {
                                "year": 2021,
                                "month": 6,
                                "search_volume": 40
                            },
                            {
                                "year": 2021,
                                "month": 5,
                                "search_volume": 40
                            },
                            {
                                "year": 2021,
                                "month": 4,
                                "search_volume": 30
                            },
                            {
                                "year": 2021,
                                "month": 3,
                                "search_volume": 30
                            },
                            {
                                "year": 2021,
                                "month": 2,
                                "search_volume": 30
                            },
                            {
                                "year": 2021,
                                "month": 1,
                                "search_volume": 30
                            },
                            {
                                "year": 2020,
                                "month": 12,
                                "search_volume": 40
                            },
                            {
                                "year": 2020,
                                "month": 11,
                                "search_volume": 40
                            },
                            {
                                "year": 2020,
                                "month": 10,
                                "search_volume": 40
                            },
                            {
                                "year": 2020,
                                "month": 9,
                                "search_volume": 30
                            },
                            {
                                "year": 2020,
                                "month": 8,
                                "search_volume": 50
                            }
                        ]
                    }
                ]
            }
        ]
    }
    

    You can retrieve both local and global results. For more information on the supported locations and languages, please check the Lists of Supported Locations and Languages. To learn more about retrieving global results, check out this help article.

    If you’re interested in historical search volume, refer to DataForSEO Labs API part.


    Bing Keyword Data API

    Bing Keyword Data API supplies data on search queries specific to Bing search engine, and the data is based on Bing Ads API. Importantly, Bing returns search volumes that are precise to the nearest tens and allows retrieving device-specific data.

    Bing Keyword Data API also has a set of endpoints, and each returns keywords with average Search Volume, CPC, Competition, and search volume trend for the past 12 months:

    Sample Request
    POST: https://api.dataforseo.com/v3/keywords_data/bing/search_volume/live

    [
        {
            "location_name": "United States",
            "language_code": "en",
            "device": "desktop",
            "keywords": [
                "iphone",
                "apple watch"
            ]
        }
    ]
    

    Sample Response

    {
        "version": "0.1.20210818",
        "status_code": 20000,
        "status_message": "Ok.",
        "time": "8.5607 sec.",
        "cost": 0.075,
        "tasks_count": 1,
        "tasks_error": 0,
        "tasks": [
            {
                "id": "08251903-1535-0093-0000-386e1f6568db",
                "status_code": 20000,
                "status_message": "Ok.",
                "time": "8.4785 sec.",
                "cost": 0.075,
                "result_count": 2,
                "path": [
                    "v3",
                    "keywords_data",
                    "bing",
                    "search_volume",
                    "live"
                ],
                "data": {
                    "api": "keywords_data",
                    "function": "search_volume",
                    "se": "bing",
                    "location_name": "United States",
                    "language_code": "en",
                    "device": "desktop",
                    "keywords": [
                        "iphone",
                        "apple watch"
                    ]
                },
                "result": [
                    {
                        "keyword": "apple watch",
                        "location_code": 2840,
                        "language_code": "en",
                        "search_partners": false,
                        "device": "desktop",
                        "competition": 0.9,
                        "cpc": 0.47,
                        "search_volume": 49950,
                        "categories": null,
                        "monthly_searches": [
                            {
                                "year": 2021,
                                "month": 7,
                                "search_volume": 35100
                            },
                            {
                                "year": 2021,
                                "month": 6,
                                "search_volume": 40940
                            },
                            {
                                "year": 2021,
                                "month": 5,
                                "search_volume": 49710
                            },
                            {
                                "year": 2021,
                                "month": 4,
                                "search_volume": 43150
                            },
                            {
                                "year": 2021,
                                "month": 3,
                                "search_volume": 39800
                            },
                            {
                                "year": 2021,
                                "month": 2,
                                "search_volume": 34090
                            },
                            {
                                "year": 2021,
                                "month": 1,
                                "search_volume": 40230
                            },
                            {
                                "year": 2020,
                                "month": 12,
                                "search_volume": 93950
                            },
                            {
                                "year": 2020,
                                "month": 11,
                                "search_volume": 84360
                            },
                            {
                                "year": 2020,
                                "month": 10,
                                "search_volume": 51300
                            },
                            {
                                "year": 2020,
                                "month": 9,
                                "search_volume": 55160
                            },
                            {
                                "year": 2020,
                                "month": 8,
                                "search_volume": 41860
                            },
                            {
                                "year": 2020,
                                "month": 7,
                                "search_volume": 39730
                            }
                        ]
                    },
                    {
                        "keyword": "iphone",
                        "location_code": 2840,
                        "language_code": "en",
                        "search_partners": false,
                        "device": "desktop",
                        "competition": 0.9,
                        "cpc": 1.17,
                        "search_volume": 54100,
                        "categories": null,
                        "monthly_searches": [
                            {
                                "year": 2021,
                                "month": 7,
                                "search_volume": 40830
                            },
                            {
                                "year": 2021,
                                "month": 6,
                                "search_volume": 41940
                            },
                            {
                                "year": 2021,
                                "month": 5,
                                "search_volume": 48620
                            },
                            {
                                "year": 2021,
                                "month": 4,
                                "search_volume": 48480
                            },
                            {
                                "year": 2021,
                                "month": 3,
                                "search_volume": 59020
                            },
                            {
                                "year": 2021,
                                "month": 2,
                                "search_volume": 50360
                            },
                            {
                                "year": 2021,
                                "month": 1,
                                "search_volume": 60260
                            },
                            {
                                "year": 2020,
                                "month": 12,
                                "search_volume": 61160
                            },
                            {
                                "year": 2020,
                                "month": 11,
                                "search_volume": 64290
                            },
                            {
                                "year": 2020,
                                "month": 10,
                                "search_volume": 69650
                            },
                            {
                                "year": 2020,
                                "month": 9,
                                "search_volume": 57850
                            },
                            {
                                "year": 2020,
                                "month": 8,
                                "search_volume": 52200
                            },
                            {
                                "year": 2020,
                                "month": 7,
                                "search_volume": 48700
                            }
                        ]
                    }
                ]
            }
        ]
    }
    

    Learn more about using Bing Keyword Data API in this article on our blog. If you’re interested in historical search volume, refer to DataForSEO Labs API part.


    DataForSEO Labs API

    DataForSEO Labs API is based on our in-house Keyword Database of over 3.5 billion keywords. This API returns search terms with Search Volume for the last months and last 12 months, current CPC and Competition for both Google and Bing, as well as min/max/avg values for daily impressions, clicks, and CPC for Google.

    All of this data is available to you through four endpoints tailor-made for keyword research:

    Sample Request
    POST: https://api.dataforseo.com/v3/dataforseo_labs/historical_search_volume/live

    [
        {
            "keywords": [
                "buy iphone"
            ],
            "language_name": "English",
            "location_code": 2840,
            "include_serp_info": true,
            "new_historical_search_volume": true
        }
    ]

    Sample Response

    {
        "version": "0.1.20210818",
        "status_code": 20000,
        "status_message": "Ok.",
        "time": "0.1509 sec.",
        "cost": 0.0101,
        "tasks_count": 1,
        "tasks_error": 0,
        "tasks": [
            {
                "id": "08251931-1535-0280-0000-558201f8f57f",
                "status_code": 20000,
                "status_message": "Ok.",
                "time": "0.0377 sec.",
                "cost": 0.0101,
                "result_count": 1,
                "path": [
                    "v3",
                    "dataforseo_labs",
                    "historical_search_volume",
                    "live"
                ],
                "data": {
                    "api": "dataforseo_labs",
                    "function": "historical_search_volume",
                    "keywords": [
                        "buy iphone"
                    ],
                    "language_name": "English",
                    "location_code": 2840,
                    "new_historical_search_volume": true,
                    "include_serp_info": true
                },
                "result": [
                    {
                        "location_code": 2840,
                        "language_code": "en",
                        "items_count": 1,
                        "items": [
                            {
                                "keyword": "buy iphone",
                                "location_code": 2840,
                                "language_code": "en",
                                "search_partners": false,
                                "keyword_info": {
                                    "last_updated_time": "2021-07-03 00:35:18 +00:00",
                                    "competition": 1,
                                    "cpc": 5.631767,
                                    "search_volume": 14800,
                                    "categories": [
                                        10007,
                                        10019,
                                        10167,
                                        10878,
                                        11511,
                                        12161,
                                        13054,
                                        13381,
                                        13419
                                    ],
                                    "monthly_searches": [
                                        {
                                            "year": 2021,
                                            "month": 5,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2021,
                                            "month": 4,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2021,
                                            "month": 3,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2021,
                                            "month": 2,
                                            "search_volume": 9900
                                        },
                                        {
                                            "year": 2021,
                                            "month": 1,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2020,
                                            "month": 12,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 11,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 10,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 9,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2020,
                                            "month": 8,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 7,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 6,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 5,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 4,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2020,
                                            "month": 3,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2020,
                                            "month": 2,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2020,
                                            "month": 1,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2019,
                                            "month": 12,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2019,
                                            "month": 11,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2019,
                                            "month": 10,
                                            "search_volume": 18100
                                        },
                                        {
                                            "year": 2019,
                                            "month": 9,
                                            "search_volume": 18100
                                        },
                                        {
                                            "year": 2019,
                                            "month": 8,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2019,
                                            "month": 7,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2019,
                                            "month": 6,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2019,
                                            "month": 5,
                                            "search_volume": 14800
                                        },
                                        {
                                            "year": 2019,
                                            "month": 4,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2019,
                                            "month": 3,
                                            "search_volume": 12100
                                        },
                                        {
                                            "year": 2019,
                                            "month": 2,
                                            "search_volume": 12100
                                        }
                                    ]
                                },
                                "keyword_properties": null,
                                "impressions_info": {
                                    "last_updated_time": "2021-08-12 20:15:24 +00:00",
                                    "bid": 999,
                                    "match_type": "exact",
                                    "ad_position_min": 1.63,
                                    "ad_position_max": 1,
                                    "ad_position_average": 1.49,
                                    "cpc_min": 333.14,
                                    "cpc_max": 407.17,
                                    "cpc_average": 370.16,
                                    "daily_impressions_min": 366.82,
                                    "daily_impressions_max": 448.33,
                                    "daily_impressions_average": 407.57,
                                    "daily_clicks_min": 8.63,
                                    "daily_clicks_max": 10.55,
                                    "daily_clicks_average": 9.59,
                                    "daily_cost_min": 3194.1,
                                    "daily_cost_max": 3903.9,
                                    "daily_cost_average": 3549
                                },
                                "bing_keyword_info": {
                                    "last_updated_time": "2021-08-13 02:46:37 +00:00",
                                    "search_volume": 12310,
                                    "monthly_searches": [
                                        {
                                            "year": 2021,
                                            "month": 6,
                                            "search_volume": 17140
                                        },
                                        {
                                            "year": 2021,
                                            "month": 5,
                                            "search_volume": 6450
                                        },
                                        {
                                            "year": 2021,
                                            "month": 4,
                                            "search_volume": 5210
                                        },
                                        {
                                            "year": 2021,
                                            "month": 3,
                                            "search_volume": 7660
                                        },
                                        {
                                            "year": 2021,
                                            "month": 2,
                                            "search_volume": 5730
                                        },
                                        {
                                            "year": 2021,
                                            "month": 1,
                                            "search_volume": 6590
                                        },
                                        {
                                            "year": 2020,
                                            "month": 12,
                                            "search_volume": 4900
                                        },
                                        {
                                            "year": 2020,
                                            "month": 11,
                                            "search_volume": 11280
                                        },
                                        {
                                            "year": 2020,
                                            "month": 10,
                                            "search_volume": 27460
                                        },
                                        {
                                            "year": 2020,
                                            "month": 9,
                                            "search_volume": 26380
                                        },
                                        {
                                            "year": 2020,
                                            "month": 8,
                                            "search_volume": 16750
                                        },
                                        {
                                            "year": 2020,
                                            "month": 7,
                                            "search_volume": 11590
                                        }
                                    ]
                                },
                                "serp_info": {
                                    "check_url": "https://www.google.com/search?q=buy%20iphone&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",
                                        "top_stories",
                                        "images",
                                        "google_reviews",
                                        "related_searches",
                                        "knowledge_graph"
                                    ],
                                    "se_results_count": 74,
                                    "last_updated_time": "2021-08-02 14:21:43 +00:00",
                                    "previous_updated_time": null
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    }

    With DataForSEO Labs API, you can refine the data that will be retrieved using extensive filtering and sorting rules. To learn more about using DataForSEO Labs API and applying filters, check out this article on our blog.


    Recommended read:

    What is Search Volume?
    What is CPC?
    What is Competition?