Skip to content

Live data bulk keywords SV

jovixv edited this page Nov 6, 2018 · 3 revisions

Bulk Keyword Search Volume - Live Data

Original docs can be found at https://docs.dataforseo.com/#bulk-keyword-search-volume

Many APIs of DataForSEO are incorporating the variation of a single array in the payload, but in some cases, you may need adding several arrays to the payload with postID or without it. Examples of how to do that are described below.

Attention Each model holds a set of its own configurations. The $isSupportedMerge property applies to determine whether several arrays can be used in the payload of the particular model. If you try using several arrays where it's not possible, you'll receive an Exception or die.

Use case with a single array in the payload.

Method: get() - calls api and returns an object ResponseCollection

require_once '../../../../vendor/autoload.php';

use DFSClient\DFSClient;
use DFSClient\Models\KeywordsDataApi\Bulk_Keyword_Search_Volume\BulkKeywordSearchVolumeLive as BulkSearchVolumeLive;

$DFSClient = new DFSClient('login','password');
$model     = new BulkSearchVolumeLive();

$completed  = $model->setOpt('keys',['Anime','big data', 'dataforseo'])
    ->setOpt('language', 'en')
    ->setOpt('loc_name_canonical', 'United States')
    ->get();


if (!$completed->isSuccessFul())
    dd($completed);


// you can call property as described below
echo 'status: '       .$completed->status        ."<br>";
echo 'results_time: ' .$completed->results_time  ."<br>";
echo 'results_count: '.$completed->results_count ."<br>";


foreach ($completed as $key=>$item) {
    dump($item);
}

Getting Started

  1. Home
  2. Installation
  3. Configuration
  4. Base Usage
  5. Response Collection
  6. Abstract Model

DataForSEO APIs

Clone this wiki locally