Grab keywords search volume from DataForSeo API using R'
What is DataForSeo?
DataForSEO is an all-in-one paid API that provides SEO data.
it allows, for example, to retrieve keywords ranking and keyword search volume directly from Google Ads or Bings Ads.
How to use the DataForSeo API?
When you create your account, you are given a few dollars to test the service.
API Authentication
Grab your credentials can be found inside your personal dashboard

Request Google Ads Search Volume for a keyword
Before making the script run over a list, we'll run it for the keyword and break down each steps
Search volume can be displayed by using this cmd in the terminal.
If the reply is NULL something is wrong and you might want to explore the full API response by displaying it in full like this:

If you are happy with the results you can now save the value.
I would suggest to also store the 'competition', 'competition_index', 'low_top_of_page_bid', 'high_top_of_page_bid'.
Better to have more data, its up to you to use it or not later.
Now that the script is validated we can run the script run over the full list
Request Google Ads Search Volume for a batch of keywords
The first step is to load our keywords list
Then we run a keyword request through a loop
Request Google Ads Search Volume for a big batch of keywords
⚠️ DataForSEO is actually charging per request. So if you have lots of keywords to check will be much cheaper to group keywords.
This is the script that will help you request queries in batches of 100.
Last updated
Was this helpful?