dataforseo-client 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/main.d.ts +1493 -234
  2. package/main.js +1274 -226
  3. package/main.js.map +1 -1
  4. package/main.ts +2930 -633
  5. package/package.json +1 -1
package/main.ts CHANGED
@@ -554,7 +554,7 @@ export class SerpApi {
554
554
  * @param body (optional)
555
555
  * @return Successful operation
556
556
  */
557
- googleOrganicLiveRegular(body: (SerpTaskRequestInfo | undefined)[] | undefined): Promise<SerpGoogleOrganicLiveRegularResponseInfo | null> {
557
+ googleOrganicLiveRegular(body: (SerpGoogleOrganicLiveRegularRequestInfo | undefined)[] | undefined): Promise<SerpGoogleOrganicLiveRegularResponseInfo | null> {
558
558
  let url_ = this.baseUrl + "/v3/serp/google/organic/live/regular";
559
559
  url_ = url_.replace(/[?&]$/, "");
560
560
 
@@ -596,7 +596,7 @@ export class SerpApi {
596
596
  * @param body (optional)
597
597
  * @return Successful operation
598
598
  */
599
- googleOrganicLiveAdvanced(body: (SerpTaskRequestInfo | undefined)[] | undefined): Promise<SerpGoogleOrganicLiveAdvancedResponseInfo | null> {
599
+ googleOrganicLiveAdvanced(body: (SerpGoogleOrganicLiveAdvancedRequestInfo | undefined)[] | undefined): Promise<SerpGoogleOrganicLiveAdvancedResponseInfo | null> {
600
600
  let url_ = this.baseUrl + "/v3/serp/google/organic/live/advanced";
601
601
  url_ = url_.replace(/[?&]$/, "");
602
602
 
@@ -18562,6 +18562,170 @@ export class BusinessDataApi {
18562
18562
  return Promise.resolve<BusinessDataGoogleReviewsTaskGetResponseInfo | null>(null as any);
18563
18563
  }
18564
18564
 
18565
+ /**
18566
+ * @param body (optional)
18567
+ * @return Successful operation
18568
+ */
18569
+ googleQuestionsAndAnswersTaskPost(body: (BusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo | undefined)[] | undefined): Promise<BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo | null> {
18570
+ let url_ = this.baseUrl + "/v3/business_data/google/questions_and_answers/task_post";
18571
+ url_ = url_.replace(/[?&]$/, "");
18572
+
18573
+ const content_ = JSON.stringify(body);
18574
+
18575
+ let options_: RequestInit = {
18576
+ body: content_,
18577
+ method: "POST",
18578
+ headers: {
18579
+ "Content-Type": "application/json",
18580
+ "Accept": "application/json"
18581
+ }
18582
+ };
18583
+
18584
+ return this.http.fetch(url_, options_).then((_response: Response) => {
18585
+ return this.processGoogleQuestionsAndAnswersTaskPost(_response);
18586
+ });
18587
+ }
18588
+
18589
+ protected processGoogleQuestionsAndAnswersTaskPost(response: Response): Promise<BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo | null> {
18590
+ const status = response.status;
18591
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18592
+ if (status === 200) {
18593
+ return response.text().then((_responseText) => {
18594
+ let result200: any = null;
18595
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18596
+ result200 = resultData200 ? BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo.fromJS(resultData200) : <any>null;
18597
+ return result200;
18598
+ });
18599
+ } else if (status !== 200 && status !== 204) {
18600
+ return response.text().then((_responseText) => {
18601
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18602
+ });
18603
+ }
18604
+ return Promise.resolve<BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo | null>(null as any);
18605
+ }
18606
+
18607
+ /**
18608
+ * @return Successful operation
18609
+ */
18610
+ googleQuestionsAndAnswersTasksReady(): Promise<BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo | null> {
18611
+ let url_ = this.baseUrl + "/v3/business_data/google/questions_and_answers/tasks_ready";
18612
+ url_ = url_.replace(/[?&]$/, "");
18613
+
18614
+ let options_: RequestInit = {
18615
+ method: "GET",
18616
+ headers: {
18617
+ "Accept": "application/json"
18618
+ }
18619
+ };
18620
+
18621
+ return this.http.fetch(url_, options_).then((_response: Response) => {
18622
+ return this.processGoogleQuestionsAndAnswersTasksReady(_response);
18623
+ });
18624
+ }
18625
+
18626
+ protected processGoogleQuestionsAndAnswersTasksReady(response: Response): Promise<BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo | null> {
18627
+ const status = response.status;
18628
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18629
+ if (status === 200) {
18630
+ return response.text().then((_responseText) => {
18631
+ let result200: any = null;
18632
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18633
+ result200 = resultData200 ? BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo.fromJS(resultData200) : <any>null;
18634
+ return result200;
18635
+ });
18636
+ } else if (status !== 200 && status !== 204) {
18637
+ return response.text().then((_responseText) => {
18638
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18639
+ });
18640
+ }
18641
+ return Promise.resolve<BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo | null>(null as any);
18642
+ }
18643
+
18644
+ /**
18645
+ * @param id task identifier
18646
+ unique task identifier in our system in the UUID format
18647
+ you will be able to use it within 30 days to request the results of the task at any time
18648
+ * @return Successful operation
18649
+ */
18650
+ googleQuestionsAndAnswersTaskGet(id: string): Promise<BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo | null> {
18651
+ let url_ = this.baseUrl + "/v3/business_data/google/questions_and_answers/task_get/{id}";
18652
+ if (id === undefined || id === null)
18653
+ throw new Error("The parameter 'id' must be defined.");
18654
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18655
+ url_ = url_.replace(/[?&]$/, "");
18656
+
18657
+ let options_: RequestInit = {
18658
+ method: "GET",
18659
+ headers: {
18660
+ "Accept": "application/json"
18661
+ }
18662
+ };
18663
+
18664
+ return this.http.fetch(url_, options_).then((_response: Response) => {
18665
+ return this.processGoogleQuestionsAndAnswersTaskGet(_response);
18666
+ });
18667
+ }
18668
+
18669
+ protected processGoogleQuestionsAndAnswersTaskGet(response: Response): Promise<BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo | null> {
18670
+ const status = response.status;
18671
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18672
+ if (status === 200) {
18673
+ return response.text().then((_responseText) => {
18674
+ let result200: any = null;
18675
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18676
+ result200 = resultData200 ? BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo.fromJS(resultData200) : <any>null;
18677
+ return result200;
18678
+ });
18679
+ } else if (status !== 200 && status !== 204) {
18680
+ return response.text().then((_responseText) => {
18681
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18682
+ });
18683
+ }
18684
+ return Promise.resolve<BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo | null>(null as any);
18685
+ }
18686
+
18687
+ /**
18688
+ * @param body (optional)
18689
+ * @return Successful operation
18690
+ */
18691
+ googleQuestionsAndAnswersLive(body: (BusinessDataGoogleQuestionsAndAnswersLiveRequestInfo | undefined)[] | undefined): Promise<BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo | null> {
18692
+ let url_ = this.baseUrl + "/v3/business_data/google/questions_and_answers/live";
18693
+ url_ = url_.replace(/[?&]$/, "");
18694
+
18695
+ const content_ = JSON.stringify(body);
18696
+
18697
+ let options_: RequestInit = {
18698
+ body: content_,
18699
+ method: "POST",
18700
+ headers: {
18701
+ "Content-Type": "application/json",
18702
+ "Accept": "application/json"
18703
+ }
18704
+ };
18705
+
18706
+ return this.http.fetch(url_, options_).then((_response: Response) => {
18707
+ return this.processGoogleQuestionsAndAnswersLive(_response);
18708
+ });
18709
+ }
18710
+
18711
+ protected processGoogleQuestionsAndAnswersLive(response: Response): Promise<BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo | null> {
18712
+ const status = response.status;
18713
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18714
+ if (status === 200) {
18715
+ return response.text().then((_responseText) => {
18716
+ let result200: any = null;
18717
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18718
+ result200 = resultData200 ? BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo.fromJS(resultData200) : <any>null;
18719
+ return result200;
18720
+ });
18721
+ } else if (status !== 200 && status !== 204) {
18722
+ return response.text().then((_responseText) => {
18723
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18724
+ });
18725
+ }
18726
+ return Promise.resolve<BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo | null>(null as any);
18727
+ }
18728
+
18565
18729
  /**
18566
18730
  * @param body (optional)
18567
18731
  * @return Successful operation
@@ -20278,13 +20442,13 @@ export class BaseDataforseoLabsSerpElementItem implements IBaseDataforseoLabsSer
20278
20442
  result.init(data);
20279
20443
  return result;
20280
20444
  }
20281
- if (data["type"] === "knowledge_graph") {
20282
- let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
20445
+ if (data["type"] === "knowledge_graph_carousel_item") {
20446
+ let result = new KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem();
20283
20447
  result.init(data);
20284
20448
  return result;
20285
20449
  }
20286
- if (data["type"] === "knowledge_graph_carousel_item") {
20287
- let result = new KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem();
20450
+ if (data["type"] === "knowledge_graph") {
20451
+ let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
20288
20452
  result.init(data);
20289
20453
  return result;
20290
20454
  }
@@ -37460,6 +37624,302 @@ export interface ISerpGoogleOrganicTaskGetHtmlResponseInfo extends IBaseResponse
37460
37624
  [key: string]: any;
37461
37625
  }
37462
37626
 
37627
+ export class SerpGoogleOrganicLiveRegularRequestInfo implements ISerpGoogleOrganicLiveRegularRequestInfo {
37628
+ /** direct URL of the search query
37629
+ optional field
37630
+ you can specify a direct URL and we will sort it out to the necessary fields. Note that this method is the most difficult for our API to process and also requires you to specify the exact language and location in the URL. In most cases, we wouldn’t recommend using this method.
37631
+ example:
37632
+ https://www.google.co.uk/search?q=%20rank%20tracker%20api&hl=en&gl=GB&uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS */
37633
+ url?: string | undefined;
37634
+ /** keyword
37635
+ required field
37636
+ you can specify up to 700 symbols in the keyword field
37637
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character)
37638
+ if you need to use the “%” symbol for your keyword, please specify it as “%25”;
37639
+ if you need to use the “+” symbol for your keyword, please specify it as “%2B”;
37640
+ if this field contains such parameters as ‘allinanchor:’, ‘allintext:’, ‘allintitle:’, ‘allinurl:’, ‘define:’, ‘filetype:’, ‘id:’, ‘inanchor:’, ‘info:’, ‘intext:’, ‘intitle:’, ‘inurl:’, ‘link:’, ‘site:’, the charge per task will be multiplied by 5
37641
+ Note: queries containing the ‘cache:’ parameter are not supported and will return a validation error */
37642
+ keyword?: string;
37643
+ /** full name of search engine location
37644
+ required field if you don’t specify location_code or location_coordinate
37645
+ if you use this field, you don’t need to specify location_code or location_coordinate
37646
+ you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
37647
+ example:
37648
+ London,England,United Kingdom */
37649
+ location_name?: string | undefined;
37650
+ /** search engine location code
37651
+ required field if you don’t specify location_name or location_coordinate
37652
+ if you use this field, you don’t need to specify location_name or location_coordinate
37653
+ you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
37654
+ example:
37655
+ 2840 */
37656
+ location_code?: number | undefined;
37657
+ /** GPS coordinates of a location
37658
+ required field if you don’t specify location_name or location_code
37659
+ if you use this field, you don’t need to specify location_name or location_code
37660
+ location_coordinate parameter should be specified in the “latitude,longitude,radius” format
37661
+ the maximum number of decimal digits for “latitude” and “longitude”: 7
37662
+ the minimum value for “radius”: 199.9 (mm)
37663
+ the maximum value for “radius”: 199999 (mm)
37664
+ example:
37665
+ 53.476225,-2.243572,200 */
37666
+ location_coordinate?: string | undefined;
37667
+ /** full name of search engine language
37668
+ required field if you don’t specify language_code
37669
+ if you use this field, you don’t need to specify language_code
37670
+ you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
37671
+ example:
37672
+ English */
37673
+ language_name?: string | undefined;
37674
+ /** search engine language code
37675
+ required field if you don’t specify language_name
37676
+ if you use this field, you don’t need to specify language_name
37677
+ you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
37678
+ example:
37679
+ en */
37680
+ language_code?: string | undefined;
37681
+ /** device type
37682
+ optional field
37683
+ can take the values:desktop, mobile
37684
+ default value: desktop */
37685
+ device?: string | undefined;
37686
+ /** device operating system
37687
+ optional field
37688
+ if you specify desktop in the device field, choose from the following values: windows, macos
37689
+ default value: windows
37690
+ if you specify mobile in the device field, choose from the following values: android, ios
37691
+ default value: android */
37692
+ os?: string | undefined;
37693
+ /** search engine domain
37694
+ optional field
37695
+ we choose the relevant search engine domain automatically according to the location and language you specify
37696
+ however, you can set a custom search engine domain in this field
37697
+ example:
37698
+ google.co.uk, google.com.au, google.de, etc. */
37699
+ se_domain?: string | undefined;
37700
+ /** parsing depth
37701
+ optional field
37702
+ number of results in SERP
37703
+ default value: 100
37704
+ max value: 700
37705
+ Note: your account will be billed per each SERP containing up to 100 results;
37706
+ thus, setting a depth above 100 may result in additional charges if the search engine returns more than 100 results;
37707
+ if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance */
37708
+ depth?: number | undefined;
37709
+ /** target domain, subdomain, or webpage to get results for
37710
+ optional field
37711
+ a domain or a subdomain should be specified without https:// and www.
37712
+ note that the results of target-specific tasks will only include SERP elements that contain a url string;
37713
+ you can also use a wildcard (‘*’) character to specify the search pattern in SERP and narrow down the results;
37714
+ examples:
37715
+ example.com – return results for the website’s home page with URLs, such as https://example.com, or https://www.example.com/, or https://example.com/;
37716
+ example.com* – returns results for the domain, including all its pages;
37717
+ *example.com* – returns results for the entire domain, including all its pages and subdomains;
37718
+ *example.com – returns results for the home page regardless of the subdomain, such as https://en.example.com;
37719
+ example.com/example-page – returns results for the exact URL;
37720
+ example.com/example-page* – returns results for all domain’s URLs that start with the specified string */
37721
+ target?: string | undefined;
37722
+ /** page crawl limit
37723
+ optional field
37724
+ number of search results pages to crawl
37725
+ max value: 100
37726
+ Note: the max_crawl_pages and depth parameters complement each other;
37727
+ learn more at our help center */
37728
+ max_crawl_pages?: number | undefined;
37729
+ /** additional parameters of the search query
37730
+ optional field
37731
+ get the list of available parameters and additional details here */
37732
+ search_param?: string | undefined;
37733
+ /** user-defined task identifier
37734
+ optional field
37735
+ the character limit is 255
37736
+ you can use this parameter to identify the task and match it with the result
37737
+ you will find the specified tag value in the data object of the response */
37738
+ tag?: string | undefined;
37739
+
37740
+ [key: string]: any;
37741
+
37742
+ constructor(data?: ISerpGoogleOrganicLiveRegularRequestInfo) {
37743
+ if (data) {
37744
+ for (var property in data) {
37745
+ if (data.hasOwnProperty(property))
37746
+ (<any>this)[property] = (<any>data)[property];
37747
+ }
37748
+ }
37749
+ }
37750
+
37751
+ init(_data?: any) {
37752
+ if (_data) {
37753
+ for (var property in _data) {
37754
+ if (_data.hasOwnProperty(property))
37755
+ this[property] = _data[property];
37756
+ }
37757
+ this.url = _data["url"];
37758
+ this.keyword = _data["keyword"];
37759
+ this.location_name = _data["location_name"];
37760
+ this.location_code = _data["location_code"];
37761
+ this.location_coordinate = _data["location_coordinate"];
37762
+ this.language_name = _data["language_name"];
37763
+ this.language_code = _data["language_code"];
37764
+ this.device = _data["device"];
37765
+ this.os = _data["os"];
37766
+ this.se_domain = _data["se_domain"];
37767
+ this.depth = _data["depth"];
37768
+ this.target = _data["target"];
37769
+ this.max_crawl_pages = _data["max_crawl_pages"];
37770
+ this.search_param = _data["search_param"];
37771
+ this.tag = _data["tag"];
37772
+ }
37773
+ }
37774
+
37775
+ static fromJS(data: any): SerpGoogleOrganicLiveRegularRequestInfo {
37776
+ data = typeof data === 'object' ? data : {};
37777
+ let result = new SerpGoogleOrganicLiveRegularRequestInfo();
37778
+ result.init(data);
37779
+ return result;
37780
+ }
37781
+
37782
+ toJSON(data?: any) {
37783
+ data = typeof data === 'object' ? data : {};
37784
+ for (var property in this) {
37785
+ if (this.hasOwnProperty(property))
37786
+ data[property] = this[property];
37787
+ }
37788
+ data["url"] = this.url;
37789
+ data["keyword"] = this.keyword;
37790
+ data["location_name"] = this.location_name;
37791
+ data["location_code"] = this.location_code;
37792
+ data["location_coordinate"] = this.location_coordinate;
37793
+ data["language_name"] = this.language_name;
37794
+ data["language_code"] = this.language_code;
37795
+ data["device"] = this.device;
37796
+ data["os"] = this.os;
37797
+ data["se_domain"] = this.se_domain;
37798
+ data["depth"] = this.depth;
37799
+ data["target"] = this.target;
37800
+ data["max_crawl_pages"] = this.max_crawl_pages;
37801
+ data["search_param"] = this.search_param;
37802
+ data["tag"] = this.tag;
37803
+ return data;
37804
+ }
37805
+ }
37806
+
37807
+ export interface ISerpGoogleOrganicLiveRegularRequestInfo {
37808
+ /** direct URL of the search query
37809
+ optional field
37810
+ you can specify a direct URL and we will sort it out to the necessary fields. Note that this method is the most difficult for our API to process and also requires you to specify the exact language and location in the URL. In most cases, we wouldn’t recommend using this method.
37811
+ example:
37812
+ https://www.google.co.uk/search?q=%20rank%20tracker%20api&hl=en&gl=GB&uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS */
37813
+ url?: string | undefined;
37814
+ /** keyword
37815
+ required field
37816
+ you can specify up to 700 symbols in the keyword field
37817
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character)
37818
+ if you need to use the “%” symbol for your keyword, please specify it as “%25”;
37819
+ if you need to use the “+” symbol for your keyword, please specify it as “%2B”;
37820
+ if this field contains such parameters as ‘allinanchor:’, ‘allintext:’, ‘allintitle:’, ‘allinurl:’, ‘define:’, ‘filetype:’, ‘id:’, ‘inanchor:’, ‘info:’, ‘intext:’, ‘intitle:’, ‘inurl:’, ‘link:’, ‘site:’, the charge per task will be multiplied by 5
37821
+ Note: queries containing the ‘cache:’ parameter are not supported and will return a validation error */
37822
+ keyword?: string;
37823
+ /** full name of search engine location
37824
+ required field if you don’t specify location_code or location_coordinate
37825
+ if you use this field, you don’t need to specify location_code or location_coordinate
37826
+ you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
37827
+ example:
37828
+ London,England,United Kingdom */
37829
+ location_name?: string | undefined;
37830
+ /** search engine location code
37831
+ required field if you don’t specify location_name or location_coordinate
37832
+ if you use this field, you don’t need to specify location_name or location_coordinate
37833
+ you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
37834
+ example:
37835
+ 2840 */
37836
+ location_code?: number | undefined;
37837
+ /** GPS coordinates of a location
37838
+ required field if you don’t specify location_name or location_code
37839
+ if you use this field, you don’t need to specify location_name or location_code
37840
+ location_coordinate parameter should be specified in the “latitude,longitude,radius” format
37841
+ the maximum number of decimal digits for “latitude” and “longitude”: 7
37842
+ the minimum value for “radius”: 199.9 (mm)
37843
+ the maximum value for “radius”: 199999 (mm)
37844
+ example:
37845
+ 53.476225,-2.243572,200 */
37846
+ location_coordinate?: string | undefined;
37847
+ /** full name of search engine language
37848
+ required field if you don’t specify language_code
37849
+ if you use this field, you don’t need to specify language_code
37850
+ you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
37851
+ example:
37852
+ English */
37853
+ language_name?: string | undefined;
37854
+ /** search engine language code
37855
+ required field if you don’t specify language_name
37856
+ if you use this field, you don’t need to specify language_name
37857
+ you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
37858
+ example:
37859
+ en */
37860
+ language_code?: string | undefined;
37861
+ /** device type
37862
+ optional field
37863
+ can take the values:desktop, mobile
37864
+ default value: desktop */
37865
+ device?: string | undefined;
37866
+ /** device operating system
37867
+ optional field
37868
+ if you specify desktop in the device field, choose from the following values: windows, macos
37869
+ default value: windows
37870
+ if you specify mobile in the device field, choose from the following values: android, ios
37871
+ default value: android */
37872
+ os?: string | undefined;
37873
+ /** search engine domain
37874
+ optional field
37875
+ we choose the relevant search engine domain automatically according to the location and language you specify
37876
+ however, you can set a custom search engine domain in this field
37877
+ example:
37878
+ google.co.uk, google.com.au, google.de, etc. */
37879
+ se_domain?: string | undefined;
37880
+ /** parsing depth
37881
+ optional field
37882
+ number of results in SERP
37883
+ default value: 100
37884
+ max value: 700
37885
+ Note: your account will be billed per each SERP containing up to 100 results;
37886
+ thus, setting a depth above 100 may result in additional charges if the search engine returns more than 100 results;
37887
+ if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance */
37888
+ depth?: number | undefined;
37889
+ /** target domain, subdomain, or webpage to get results for
37890
+ optional field
37891
+ a domain or a subdomain should be specified without https:// and www.
37892
+ note that the results of target-specific tasks will only include SERP elements that contain a url string;
37893
+ you can also use a wildcard (‘*’) character to specify the search pattern in SERP and narrow down the results;
37894
+ examples:
37895
+ example.com – return results for the website’s home page with URLs, such as https://example.com, or https://www.example.com/, or https://example.com/;
37896
+ example.com* – returns results for the domain, including all its pages;
37897
+ *example.com* – returns results for the entire domain, including all its pages and subdomains;
37898
+ *example.com – returns results for the home page regardless of the subdomain, such as https://en.example.com;
37899
+ example.com/example-page – returns results for the exact URL;
37900
+ example.com/example-page* – returns results for all domain’s URLs that start with the specified string */
37901
+ target?: string | undefined;
37902
+ /** page crawl limit
37903
+ optional field
37904
+ number of search results pages to crawl
37905
+ max value: 100
37906
+ Note: the max_crawl_pages and depth parameters complement each other;
37907
+ learn more at our help center */
37908
+ max_crawl_pages?: number | undefined;
37909
+ /** additional parameters of the search query
37910
+ optional field
37911
+ get the list of available parameters and additional details here */
37912
+ search_param?: string | undefined;
37913
+ /** user-defined task identifier
37914
+ optional field
37915
+ the character limit is 255
37916
+ you can use this parameter to identify the task and match it with the result
37917
+ you will find the specified tag value in the data object of the response */
37918
+ tag?: string | undefined;
37919
+
37920
+ [key: string]: any;
37921
+ }
37922
+
37463
37923
  export class SerpGoogleOrganicLiveRegularResultInfo implements ISerpGoogleOrganicLiveRegularResultInfo {
37464
37924
  /** keyword received in a POST array
37465
37925
  keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character) */
@@ -37726,6 +38186,408 @@ export interface ISerpGoogleOrganicLiveRegularResponseInfo extends IBaseResponse
37726
38186
  [key: string]: any;
37727
38187
  }
37728
38188
 
38189
+ export class SerpGoogleOrganicLiveAdvancedRequestInfo implements ISerpGoogleOrganicLiveAdvancedRequestInfo {
38190
+ /** keyword
38191
+ required field
38192
+ you can specify up to 700 symbols in the keyword field
38193
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character)
38194
+ if you need to use the “%” symbol for your keyword, please specify it as “%25”;
38195
+ if you need to use the “+” symbol for your keyword, please specify it as “%2B”;
38196
+ if this field contains such parameters as ‘allinanchor:’, ‘allintext:’, ‘allintitle:’, ‘allinurl:’, ‘define:’, ‘filetype:’, ‘id:’, ‘inanchor:’, ‘info:’, ‘intext:’, ‘intitle:’, ‘inurl:’, ‘link:’, ‘site:’, the charge per task will be multiplied by 5
38197
+ Note: queries containing the ‘cache:’ parameter are not supported and will return a validation error */
38198
+ keyword?: string;
38199
+ /** direct URL of the search query
38200
+ optional field
38201
+ you can specify a direct URL and we will sort it out to the necessary fields. Note that this method is the most difficult for our API to process and also requires you to specify the exact language and location in the URL. In most cases, we wouldn’t recommend using this method.
38202
+ example:
38203
+ https://www.google.co.uk/search?q=%20rank%20tracker%20api&hl=en&gl=GB&uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS */
38204
+ url?: string | undefined;
38205
+ /** parsing depth
38206
+ optional field
38207
+ number of results in SERP
38208
+ default value: 100
38209
+ max value: 700
38210
+ Note: your account will be billed per each SERP containing up to 100 results;
38211
+ thus, setting a depth above 100 may result in additional charges if the search engine returns more than 100 results;
38212
+ if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance */
38213
+ depth?: number | undefined;
38214
+ /** page crawl limit
38215
+ optional field
38216
+ number of search results pages to crawl
38217
+ max value: 100
38218
+ Note: the max_crawl_pages and depth parameters complement each other;
38219
+ learn more at our help center */
38220
+ max_crawl_pages?: number | undefined;
38221
+ /** full name of search engine location
38222
+ required field if you don’t specify location_code or location_coordinate
38223
+ if you use this field, you don’t need to specify location_code or location_coordinate
38224
+ you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
38225
+ example:
38226
+ London,England,United Kingdom */
38227
+ location_name?: string | undefined;
38228
+ /** search engine location code
38229
+ required field if you don’t specify location_name or location_coordinate
38230
+ if you use this field, you don’t need to specify location_name or location_coordinate
38231
+ you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
38232
+ example:
38233
+ 2840 */
38234
+ location_code?: number | undefined;
38235
+ /** GPS coordinates of a location
38236
+ optional field if you specify location_name or location_code
38237
+ if you use this field, you don’t need to specify location_name or location_code
38238
+ location_coordinate parameter should be specified in the “latitude,longitude,radius” format
38239
+ the maximum number of decimal digits for “latitude” and “longitude”: 7
38240
+ the minimum value for “radius”: 199.9 (mm)
38241
+ the maximum value for “radius”: 199999 (mm)
38242
+ example:
38243
+ 53.476225,-2.243572,200 */
38244
+ location_coordinate?: string | undefined;
38245
+ /** full name of search engine language
38246
+ optional field if you specify language_code
38247
+ if you use this field, you don’t need to specify language_code
38248
+ you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
38249
+ example:
38250
+ English */
38251
+ language_name?: string | undefined;
38252
+ /** search engine language code
38253
+ optional field if you specify language_name
38254
+ if you use this field, you don’t need to specify language_name
38255
+ you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
38256
+ example:
38257
+ en */
38258
+ language_code?: string | undefined;
38259
+ /** search engine domain
38260
+ optional field
38261
+ we choose the relevant search engine domain automatically according to the location and language you specify
38262
+ however, you can set a custom search engine domain in this field
38263
+ example:
38264
+ google.co.uk, google.com.au, google.de, etc. */
38265
+ se_domain?: string | undefined;
38266
+ /** device type
38267
+ optional field
38268
+ can take the values:desktop, mobile
38269
+ default value: desktop */
38270
+ device?: string | undefined;
38271
+ /** device operating system
38272
+ optional field
38273
+ if you specify desktop in the device field, choose from the following values: windows, macos
38274
+ default value: windows
38275
+ if you specify mobile in the device field, choose from the following values: android, ios
38276
+ default value: android */
38277
+ os?: string | undefined;
38278
+ /** target domain, subdomain, or webpage to get results for
38279
+ optional field
38280
+ a domain or a subdomain should be specified without https:// and www.
38281
+ note that the results of target-specific tasks will only include SERP elements that contain a url string;
38282
+ you can also use a wildcard (‘*’) character to specify the search pattern in SERP and narrow down the results;
38283
+ examples:
38284
+ example.com – return results for the website’s home page with URLs, such as https://example.com, or https://www.example.com/, or https://example.com/;
38285
+ example.com* – returns results for the domain, including all its pages;
38286
+ *example.com* – returns results for the entire domain, including all its pages and subdomains;
38287
+ *example.com – returns results for the home page regardless of the subdomain, such as https://en.example.com;
38288
+ example.com/example-page – returns results for the exact URL;
38289
+ example.com/example-page* – returns results for all domain’s URLs that start with the specified string */
38290
+ target?: string | undefined;
38291
+ /** display related results
38292
+ optional field
38293
+ if set to true, the related_result element in the response will be provided as a snippet of its parent organic result;
38294
+ if set to false, the related_result element will be provided as a separate organic result;
38295
+ default value: true */
38296
+ group_organic_results?: boolean | undefined;
38297
+ /** calcualte pixel rankings for SERP elements in advanced results
38298
+ optional field
38299
+ pixel ranking refers to the distance between the result snippet and top left corner of the screen;
38300
+ Visit Help Center to learn more>>
38301
+ by default, the parameter is set to false
38302
+ Note: if set to true, the charge per task will be multiplied by 2 */
38303
+ calculate_rectangles?: boolean | undefined;
38304
+ /** browser screen width
38305
+ optional field
38306
+ you can set a custom browser screen width to calculate pixel rankings for a particular device;
38307
+ by default, the parameter is set to:
38308
+ 1920 for desktop;
38309
+ 360 for mobile on android;
38310
+ 375 for mobile on iOS;
38311
+ Note: to use this parameter, set calculate_rectangles to true */
38312
+ browser_screen_width?: number | undefined;
38313
+ /** browser screen height
38314
+ optional field
38315
+ you can set a custom browser screen height to calculate pixel rankings for a particular device;
38316
+ by default, the parameter is set to:
38317
+ 1080 for desktop;
38318
+ 640 for mobile on android;
38319
+ 812 for mobile on iOS;
38320
+ Note: to use this parameter, set calculate_rectangles to true */
38321
+ browser_screen_height?: number | undefined;
38322
+ /** browser screen resolution ratio
38323
+ optional field
38324
+ you can set a custom browser screen resolution ratio to calculate pixel rankings for a particular device;
38325
+ by default, the parameter is set to:
38326
+ 1 for desktop;
38327
+ 3 for mobile on android;
38328
+ 3 for mobile on iOS;
38329
+ Note: to use this parameter, set calculate_rectangles to true */
38330
+ browser_screen_resolution_ratio?: number | undefined;
38331
+ /** clicks on the corresponding element
38332
+ optional field
38333
+ specify the click depth on the people_also_ask element to get additional people_also_ask_element items;
38334
+ Note your account will be billed $0.00015 extra for each click;
38335
+ if the element is absent or we perform fewer clicks than you specified, all extra charges will be returned to your account balance
38336
+ possible values: from 1 to 4 */
38337
+ people_also_ask_click_depth?: number | undefined;
38338
+ /** additional parameters of the search query
38339
+ optional field
38340
+ get the list of available parameters and additional details here */
38341
+ search_param?: string | undefined;
38342
+ /** user-defined task identifier
38343
+ optional field
38344
+ the character limit is 255
38345
+ you can use this parameter to identify the task and match it with the result
38346
+ you will find the specified tag value in the data object of the response */
38347
+ tag?: string | undefined;
38348
+
38349
+ [key: string]: any;
38350
+
38351
+ constructor(data?: ISerpGoogleOrganicLiveAdvancedRequestInfo) {
38352
+ if (data) {
38353
+ for (var property in data) {
38354
+ if (data.hasOwnProperty(property))
38355
+ (<any>this)[property] = (<any>data)[property];
38356
+ }
38357
+ }
38358
+ }
38359
+
38360
+ init(_data?: any) {
38361
+ if (_data) {
38362
+ for (var property in _data) {
38363
+ if (_data.hasOwnProperty(property))
38364
+ this[property] = _data[property];
38365
+ }
38366
+ this.keyword = _data["keyword"];
38367
+ this.url = _data["url"];
38368
+ this.depth = _data["depth"];
38369
+ this.max_crawl_pages = _data["max_crawl_pages"];
38370
+ this.location_name = _data["location_name"];
38371
+ this.location_code = _data["location_code"];
38372
+ this.location_coordinate = _data["location_coordinate"];
38373
+ this.language_name = _data["language_name"];
38374
+ this.language_code = _data["language_code"];
38375
+ this.se_domain = _data["se_domain"];
38376
+ this.device = _data["device"];
38377
+ this.os = _data["os"];
38378
+ this.target = _data["target"];
38379
+ this.group_organic_results = _data["group_organic_results"];
38380
+ this.calculate_rectangles = _data["calculate_rectangles"];
38381
+ this.browser_screen_width = _data["browser_screen_width"];
38382
+ this.browser_screen_height = _data["browser_screen_height"];
38383
+ this.browser_screen_resolution_ratio = _data["browser_screen_resolution_ratio"];
38384
+ this.people_also_ask_click_depth = _data["people_also_ask_click_depth"];
38385
+ this.search_param = _data["search_param"];
38386
+ this.tag = _data["tag"];
38387
+ }
38388
+ }
38389
+
38390
+ static fromJS(data: any): SerpGoogleOrganicLiveAdvancedRequestInfo {
38391
+ data = typeof data === 'object' ? data : {};
38392
+ let result = new SerpGoogleOrganicLiveAdvancedRequestInfo();
38393
+ result.init(data);
38394
+ return result;
38395
+ }
38396
+
38397
+ toJSON(data?: any) {
38398
+ data = typeof data === 'object' ? data : {};
38399
+ for (var property in this) {
38400
+ if (this.hasOwnProperty(property))
38401
+ data[property] = this[property];
38402
+ }
38403
+ data["keyword"] = this.keyword;
38404
+ data["url"] = this.url;
38405
+ data["depth"] = this.depth;
38406
+ data["max_crawl_pages"] = this.max_crawl_pages;
38407
+ data["location_name"] = this.location_name;
38408
+ data["location_code"] = this.location_code;
38409
+ data["location_coordinate"] = this.location_coordinate;
38410
+ data["language_name"] = this.language_name;
38411
+ data["language_code"] = this.language_code;
38412
+ data["se_domain"] = this.se_domain;
38413
+ data["device"] = this.device;
38414
+ data["os"] = this.os;
38415
+ data["target"] = this.target;
38416
+ data["group_organic_results"] = this.group_organic_results;
38417
+ data["calculate_rectangles"] = this.calculate_rectangles;
38418
+ data["browser_screen_width"] = this.browser_screen_width;
38419
+ data["browser_screen_height"] = this.browser_screen_height;
38420
+ data["browser_screen_resolution_ratio"] = this.browser_screen_resolution_ratio;
38421
+ data["people_also_ask_click_depth"] = this.people_also_ask_click_depth;
38422
+ data["search_param"] = this.search_param;
38423
+ data["tag"] = this.tag;
38424
+ return data;
38425
+ }
38426
+ }
38427
+
38428
+ export interface ISerpGoogleOrganicLiveAdvancedRequestInfo {
38429
+ /** keyword
38430
+ required field
38431
+ you can specify up to 700 symbols in the keyword field
38432
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character)
38433
+ if you need to use the “%” symbol for your keyword, please specify it as “%25”;
38434
+ if you need to use the “+” symbol for your keyword, please specify it as “%2B”;
38435
+ if this field contains such parameters as ‘allinanchor:’, ‘allintext:’, ‘allintitle:’, ‘allinurl:’, ‘define:’, ‘filetype:’, ‘id:’, ‘inanchor:’, ‘info:’, ‘intext:’, ‘intitle:’, ‘inurl:’, ‘link:’, ‘site:’, the charge per task will be multiplied by 5
38436
+ Note: queries containing the ‘cache:’ parameter are not supported and will return a validation error */
38437
+ keyword?: string;
38438
+ /** direct URL of the search query
38439
+ optional field
38440
+ you can specify a direct URL and we will sort it out to the necessary fields. Note that this method is the most difficult for our API to process and also requires you to specify the exact language and location in the URL. In most cases, we wouldn’t recommend using this method.
38441
+ example:
38442
+ https://www.google.co.uk/search?q=%20rank%20tracker%20api&hl=en&gl=GB&uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS */
38443
+ url?: string | undefined;
38444
+ /** parsing depth
38445
+ optional field
38446
+ number of results in SERP
38447
+ default value: 100
38448
+ max value: 700
38449
+ Note: your account will be billed per each SERP containing up to 100 results;
38450
+ thus, setting a depth above 100 may result in additional charges if the search engine returns more than 100 results;
38451
+ if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance */
38452
+ depth?: number | undefined;
38453
+ /** page crawl limit
38454
+ optional field
38455
+ number of search results pages to crawl
38456
+ max value: 100
38457
+ Note: the max_crawl_pages and depth parameters complement each other;
38458
+ learn more at our help center */
38459
+ max_crawl_pages?: number | undefined;
38460
+ /** full name of search engine location
38461
+ required field if you don’t specify location_code or location_coordinate
38462
+ if you use this field, you don’t need to specify location_code or location_coordinate
38463
+ you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
38464
+ example:
38465
+ London,England,United Kingdom */
38466
+ location_name?: string | undefined;
38467
+ /** search engine location code
38468
+ required field if you don’t specify location_name or location_coordinate
38469
+ if you use this field, you don’t need to specify location_name or location_coordinate
38470
+ you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/locations
38471
+ example:
38472
+ 2840 */
38473
+ location_code?: number | undefined;
38474
+ /** GPS coordinates of a location
38475
+ optional field if you specify location_name or location_code
38476
+ if you use this field, you don’t need to specify location_name or location_code
38477
+ location_coordinate parameter should be specified in the “latitude,longitude,radius” format
38478
+ the maximum number of decimal digits for “latitude” and “longitude”: 7
38479
+ the minimum value for “radius”: 199.9 (mm)
38480
+ the maximum value for “radius”: 199999 (mm)
38481
+ example:
38482
+ 53.476225,-2.243572,200 */
38483
+ location_coordinate?: string | undefined;
38484
+ /** full name of search engine language
38485
+ optional field if you specify language_code
38486
+ if you use this field, you don’t need to specify language_code
38487
+ you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
38488
+ example:
38489
+ English */
38490
+ language_name?: string | undefined;
38491
+ /** search engine language code
38492
+ optional field if you specify language_name
38493
+ if you use this field, you don’t need to specify language_name
38494
+ you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/languages
38495
+ example:
38496
+ en */
38497
+ language_code?: string | undefined;
38498
+ /** search engine domain
38499
+ optional field
38500
+ we choose the relevant search engine domain automatically according to the location and language you specify
38501
+ however, you can set a custom search engine domain in this field
38502
+ example:
38503
+ google.co.uk, google.com.au, google.de, etc. */
38504
+ se_domain?: string | undefined;
38505
+ /** device type
38506
+ optional field
38507
+ can take the values:desktop, mobile
38508
+ default value: desktop */
38509
+ device?: string | undefined;
38510
+ /** device operating system
38511
+ optional field
38512
+ if you specify desktop in the device field, choose from the following values: windows, macos
38513
+ default value: windows
38514
+ if you specify mobile in the device field, choose from the following values: android, ios
38515
+ default value: android */
38516
+ os?: string | undefined;
38517
+ /** target domain, subdomain, or webpage to get results for
38518
+ optional field
38519
+ a domain or a subdomain should be specified without https:// and www.
38520
+ note that the results of target-specific tasks will only include SERP elements that contain a url string;
38521
+ you can also use a wildcard (‘*’) character to specify the search pattern in SERP and narrow down the results;
38522
+ examples:
38523
+ example.com – return results for the website’s home page with URLs, such as https://example.com, or https://www.example.com/, or https://example.com/;
38524
+ example.com* – returns results for the domain, including all its pages;
38525
+ *example.com* – returns results for the entire domain, including all its pages and subdomains;
38526
+ *example.com – returns results for the home page regardless of the subdomain, such as https://en.example.com;
38527
+ example.com/example-page – returns results for the exact URL;
38528
+ example.com/example-page* – returns results for all domain’s URLs that start with the specified string */
38529
+ target?: string | undefined;
38530
+ /** display related results
38531
+ optional field
38532
+ if set to true, the related_result element in the response will be provided as a snippet of its parent organic result;
38533
+ if set to false, the related_result element will be provided as a separate organic result;
38534
+ default value: true */
38535
+ group_organic_results?: boolean | undefined;
38536
+ /** calcualte pixel rankings for SERP elements in advanced results
38537
+ optional field
38538
+ pixel ranking refers to the distance between the result snippet and top left corner of the screen;
38539
+ Visit Help Center to learn more>>
38540
+ by default, the parameter is set to false
38541
+ Note: if set to true, the charge per task will be multiplied by 2 */
38542
+ calculate_rectangles?: boolean | undefined;
38543
+ /** browser screen width
38544
+ optional field
38545
+ you can set a custom browser screen width to calculate pixel rankings for a particular device;
38546
+ by default, the parameter is set to:
38547
+ 1920 for desktop;
38548
+ 360 for mobile on android;
38549
+ 375 for mobile on iOS;
38550
+ Note: to use this parameter, set calculate_rectangles to true */
38551
+ browser_screen_width?: number | undefined;
38552
+ /** browser screen height
38553
+ optional field
38554
+ you can set a custom browser screen height to calculate pixel rankings for a particular device;
38555
+ by default, the parameter is set to:
38556
+ 1080 for desktop;
38557
+ 640 for mobile on android;
38558
+ 812 for mobile on iOS;
38559
+ Note: to use this parameter, set calculate_rectangles to true */
38560
+ browser_screen_height?: number | undefined;
38561
+ /** browser screen resolution ratio
38562
+ optional field
38563
+ you can set a custom browser screen resolution ratio to calculate pixel rankings for a particular device;
38564
+ by default, the parameter is set to:
38565
+ 1 for desktop;
38566
+ 3 for mobile on android;
38567
+ 3 for mobile on iOS;
38568
+ Note: to use this parameter, set calculate_rectangles to true */
38569
+ browser_screen_resolution_ratio?: number | undefined;
38570
+ /** clicks on the corresponding element
38571
+ optional field
38572
+ specify the click depth on the people_also_ask element to get additional people_also_ask_element items;
38573
+ Note your account will be billed $0.00015 extra for each click;
38574
+ if the element is absent or we perform fewer clicks than you specified, all extra charges will be returned to your account balance
38575
+ possible values: from 1 to 4 */
38576
+ people_also_ask_click_depth?: number | undefined;
38577
+ /** additional parameters of the search query
38578
+ optional field
38579
+ get the list of available parameters and additional details here */
38580
+ search_param?: string | undefined;
38581
+ /** user-defined task identifier
38582
+ optional field
38583
+ the character limit is 255
38584
+ you can use this parameter to identify the task and match it with the result
38585
+ you will find the specified tag value in the data object of the response */
38586
+ tag?: string | undefined;
38587
+
38588
+ [key: string]: any;
38589
+ }
38590
+
37729
38591
  export class SerpGoogleOrganicLiveAdvancedResultInfo implements ISerpGoogleOrganicLiveAdvancedResultInfo {
37730
38592
  /** keyword received in a POST array
37731
38593
  the keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character) */
@@ -44020,8 +44882,7 @@ top_stories, news_search */
44020
44882
  se_results_count?: number | undefined;
44021
44883
  /** the number of results returned in the items array */
44022
44884
  items_count?: number | undefined;
44023
- /** additional items present in the element
44024
- if there are none, equals null */
44885
+ /** elements of search results found in SERP */
44025
44886
  items?: (BaseSerpElementItem | undefined)[] | undefined;
44026
44887
 
44027
44888
  [key: string]: any;
@@ -44133,8 +44994,7 @@ top_stories, news_search */
44133
44994
  se_results_count?: number | undefined;
44134
44995
  /** the number of results returned in the items array */
44135
44996
  items_count?: number | undefined;
44136
- /** additional items present in the element
44137
- if there are none, equals null */
44997
+ /** elements of search results found in SERP */
44138
44998
  items?: (BaseSerpElementItem | undefined)[] | undefined;
44139
44999
 
44140
45000
  [key: string]: any;
@@ -57760,8 +58620,7 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
57760
58620
  se_results_count?: number | undefined;
57761
58621
  /** the number of results returned in the items array */
57762
58622
  items_count?: number | undefined;
57763
- /** additional items present in the element
57764
- if there are none, equals null */
58623
+ /** items featured in the faq_box */
57765
58624
  items?: (BaseSerpElementItem | undefined)[] | undefined;
57766
58625
 
57767
58626
  [key: string]: any;
@@ -57873,8 +58732,7 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
57873
58732
  se_results_count?: number | undefined;
57874
58733
  /** the number of results returned in the items array */
57875
58734
  items_count?: number | undefined;
57876
- /** additional items present in the element
57877
- if there are none, equals null */
58735
+ /** items featured in the faq_box */
57878
58736
  items?: (BaseSerpElementItem | undefined)[] | undefined;
57879
58737
 
57880
58738
  [key: string]: any;
@@ -94478,10 +95336,9 @@ if there are none, equals null */
94478
95336
  [key: string]: any;
94479
95337
  }
94480
95338
 
94481
- export class KnowledgeGraphDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphDataforseoLabsSerpElementItem {
94482
- /** search engine type */
94483
- se_type?: string | undefined;
94484
- /** position within a group of elements with identical type values
95339
+ export class KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphCarouselItemDataforseoLabsSerpElementItem {
95340
+ /** group rank in SERP
95341
+ position within a group of elements with identical type values
94485
95342
  positions of elements with different type values are omitted from rank_group */
94486
95343
  rank_group?: number | undefined;
94487
95344
  /** absolute rank in SERP
@@ -94493,30 +95350,23 @@ left, right */
94493
95350
  position?: string | undefined;
94494
95351
  /** the XPath of the element */
94495
95352
  xpath?: string | undefined;
94496
- /** title of the result in SERP */
95353
+ /** title of the link */
94497
95354
  title?: string | undefined;
94498
- /** subtitle of the item */
94499
- sub_title?: string | undefined;
94500
- /** description of the results element in SERP */
94501
- description?: string | undefined;
94502
- /** card id */
94503
- card_id?: string | undefined;
94504
- /** relevant URL of the Ad element in SERP */
94505
- url?: string | undefined;
94506
- /** URL of the image from knowledge graph */
94507
- image_url?: string | undefined;
94508
- /** URL of the logo from knowledge graph */
94509
- logo_url?: string | undefined;
94510
- /** google-defined client id */
94511
- cid?: string | undefined;
94512
- /** elements of search results found in SERP */
94513
- items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
95355
+ /** google defined data attribute ID
95356
+ example:
95357
+ ss:/webfacts:net_worth */
95358
+ data_attrid?: string | undefined;
95359
+ /** link of the element */
95360
+ link?: any | undefined;
95361
+ /** additional items present in the element
95362
+ if there are none, equals null */
95363
+ items?: (KnowledgeGraphListElement | undefined)[] | undefined;
94514
95364
 
94515
95365
  [key: string]: any;
94516
95366
 
94517
- constructor(data?: IKnowledgeGraphDataforseoLabsSerpElementItem) {
95367
+ constructor(data?: IKnowledgeGraphCarouselItemDataforseoLabsSerpElementItem) {
94518
95368
  super(data);
94519
- this._discriminator = "knowledge_graph";
95369
+ this._discriminator = "knowledge_graph_carousel_item";
94520
95370
  }
94521
95371
 
94522
95372
  init(_data?: any) {
@@ -94526,30 +95376,24 @@ left, right */
94526
95376
  if (_data.hasOwnProperty(property))
94527
95377
  this[property] = _data[property];
94528
95378
  }
94529
- this.se_type = _data["se_type"];
94530
95379
  this.rank_group = _data["rank_group"];
94531
95380
  this.rank_absolute = _data["rank_absolute"];
94532
95381
  this.position = _data["position"];
94533
95382
  this.xpath = _data["xpath"];
94534
95383
  this.title = _data["title"];
94535
- this.sub_title = _data["sub_title"];
94536
- this.description = _data["description"];
94537
- this.card_id = _data["card_id"];
94538
- this.url = _data["url"];
94539
- this.image_url = _data["image_url"];
94540
- this.logo_url = _data["logo_url"];
94541
- this.cid = _data["cid"];
95384
+ this.data_attrid = _data["data_attrid"];
95385
+ this.link = _data["link"];
94542
95386
  if (Array.isArray(_data["items"])) {
94543
95387
  this.items = [] as any;
94544
95388
  for (let item of _data["items"])
94545
- this.items!.push(BaseDataforseoLabsSerpElementItem.fromJS(item));
95389
+ this.items!.push(KnowledgeGraphListElement.fromJS(item));
94546
95390
  }
94547
95391
  }
94548
95392
  }
94549
95393
 
94550
- static fromJS(data: any): KnowledgeGraphDataforseoLabsSerpElementItem {
95394
+ static fromJS(data: any): KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem {
94551
95395
  data = typeof data === 'object' ? data : {};
94552
- let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
95396
+ let result = new KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem();
94553
95397
  result.init(data);
94554
95398
  return result;
94555
95399
  }
@@ -94560,19 +95404,13 @@ left, right */
94560
95404
  if (this.hasOwnProperty(property))
94561
95405
  data[property] = this[property];
94562
95406
  }
94563
- data["se_type"] = this.se_type;
94564
95407
  data["rank_group"] = this.rank_group;
94565
95408
  data["rank_absolute"] = this.rank_absolute;
94566
95409
  data["position"] = this.position;
94567
95410
  data["xpath"] = this.xpath;
94568
95411
  data["title"] = this.title;
94569
- data["sub_title"] = this.sub_title;
94570
- data["description"] = this.description;
94571
- data["card_id"] = this.card_id;
94572
- data["url"] = this.url;
94573
- data["image_url"] = this.image_url;
94574
- data["logo_url"] = this.logo_url;
94575
- data["cid"] = this.cid;
95412
+ data["data_attrid"] = this.data_attrid;
95413
+ data["link"] = this.link;
94576
95414
  if (Array.isArray(this.items)) {
94577
95415
  data["items"] = [];
94578
95416
  for (let item of this.items)
@@ -94583,202 +95421,7 @@ left, right */
94583
95421
  }
94584
95422
  }
94585
95423
 
94586
- export interface IKnowledgeGraphDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
94587
- /** search engine type */
94588
- se_type?: string | undefined;
94589
- /** position within a group of elements with identical type values
94590
- positions of elements with different type values are omitted from rank_group */
94591
- rank_group?: number | undefined;
94592
- /** absolute rank in SERP
94593
- absolute position among all the elements in SERP */
94594
- rank_absolute?: number | undefined;
94595
- /** the alignment of the element in SERP
94596
- can take the following values:
94597
- left, right */
94598
- position?: string | undefined;
94599
- /** the XPath of the element */
94600
- xpath?: string | undefined;
94601
- /** title of the result in SERP */
94602
- title?: string | undefined;
94603
- /** subtitle of the item */
94604
- sub_title?: string | undefined;
94605
- /** description of the results element in SERP */
94606
- description?: string | undefined;
94607
- /** card id */
94608
- card_id?: string | undefined;
94609
- /** relevant URL of the Ad element in SERP */
94610
- url?: string | undefined;
94611
- /** URL of the image from knowledge graph */
94612
- image_url?: string | undefined;
94613
- /** URL of the logo from knowledge graph */
94614
- logo_url?: string | undefined;
94615
- /** google-defined client id */
94616
- cid?: string | undefined;
94617
- /** elements of search results found in SERP */
94618
- items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
94619
-
94620
- [key: string]: any;
94621
- }
94622
-
94623
- export class DataforseoLabsGoogleHistoricalSerpsLiveItem implements IDataforseoLabsGoogleHistoricalSerpsLiveItem {
94624
- /** search engine type */
94625
- se_type?: string | undefined;
94626
- /** keyword obtained as a result of search engine autocorrection
94627
- the results will be provided for the corrected keyword */
94628
- keyword?: string | undefined;
94629
- /** type of element */
94630
- type?: string | undefined;
94631
- /** search engine domain in a POST array */
94632
- se_domain?: string | undefined;
94633
- /** location code in a POST array */
94634
- location_code?: number | undefined;
94635
- /** language code in a POST array */
94636
- language_code?: string | undefined;
94637
- /** direct URL to search engine results
94638
- you can use it to make sure that we provided accurate results */
94639
- check_url?: string | undefined;
94640
- /** date and time when the result was received
94641
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
94642
- example:
94643
- 2019-11-15 12:57:46 +00:00 */
94644
- datetime?: string | undefined;
94645
- /** autocorrection of the search engine
94646
- if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection */
94647
- spell?: SpellInfo | undefined;
94648
- /** types of search results in SERP
94649
- contains types of search results (items) found in SERP.
94650
- possible item types:
94651
- answer_box, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_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, visual_stories, commercial_units, local_services, google_hotels, math_solver */
94652
- item_types?: (string | undefined)[] | undefined;
94653
- /** total number of results in SERP */
94654
- se_results_count?: number | undefined;
94655
- /** the number of results returned in the items array */
94656
- items_count?: number | undefined;
94657
- /** additional items present in the element
94658
- if there are none, equals null */
94659
- items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
94660
-
94661
- [key: string]: any;
94662
-
94663
- constructor(data?: IDataforseoLabsGoogleHistoricalSerpsLiveItem) {
94664
- if (data) {
94665
- for (var property in data) {
94666
- if (data.hasOwnProperty(property))
94667
- (<any>this)[property] = (<any>data)[property];
94668
- }
94669
- }
94670
- }
94671
-
94672
- init(_data?: any) {
94673
- if (_data) {
94674
- for (var property in _data) {
94675
- if (_data.hasOwnProperty(property))
94676
- this[property] = _data[property];
94677
- }
94678
- this.se_type = _data["se_type"];
94679
- this.keyword = _data["keyword"];
94680
- this.type = _data["type"];
94681
- this.se_domain = _data["se_domain"];
94682
- this.location_code = _data["location_code"];
94683
- this.language_code = _data["language_code"];
94684
- this.check_url = _data["check_url"];
94685
- this.datetime = _data["datetime"];
94686
- this.spell = _data["spell"] ? SpellInfo.fromJS(_data["spell"]) : <any>undefined;
94687
- if (Array.isArray(_data["item_types"])) {
94688
- this.item_types = [] as any;
94689
- for (let item of _data["item_types"])
94690
- this.item_types!.push(item);
94691
- }
94692
- this.se_results_count = _data["se_results_count"];
94693
- this.items_count = _data["items_count"];
94694
- if (Array.isArray(_data["items"])) {
94695
- this.items = [] as any;
94696
- for (let item of _data["items"])
94697
- this.items!.push(BaseDataforseoLabsSerpElementItem.fromJS(item));
94698
- }
94699
- }
94700
- }
94701
-
94702
- static fromJS(data: any): DataforseoLabsGoogleHistoricalSerpsLiveItem {
94703
- data = typeof data === 'object' ? data : {};
94704
- let result = new DataforseoLabsGoogleHistoricalSerpsLiveItem();
94705
- result.init(data);
94706
- return result;
94707
- }
94708
-
94709
- toJSON(data?: any) {
94710
- data = typeof data === 'object' ? data : {};
94711
- for (var property in this) {
94712
- if (this.hasOwnProperty(property))
94713
- data[property] = this[property];
94714
- }
94715
- data["se_type"] = this.se_type;
94716
- data["keyword"] = this.keyword;
94717
- data["type"] = this.type;
94718
- data["se_domain"] = this.se_domain;
94719
- data["location_code"] = this.location_code;
94720
- data["language_code"] = this.language_code;
94721
- data["check_url"] = this.check_url;
94722
- data["datetime"] = this.datetime;
94723
- data["spell"] = this.spell ? this.spell.toJSON() : <any>undefined;
94724
- if (Array.isArray(this.item_types)) {
94725
- data["item_types"] = [];
94726
- for (let item of this.item_types)
94727
- data["item_types"].push(item);
94728
- }
94729
- data["se_results_count"] = this.se_results_count;
94730
- data["items_count"] = this.items_count;
94731
- if (Array.isArray(this.items)) {
94732
- data["items"] = [];
94733
- for (let item of this.items)
94734
- data["items"].push(item.toJSON());
94735
- }
94736
- return data;
94737
- }
94738
- }
94739
-
94740
- export interface IDataforseoLabsGoogleHistoricalSerpsLiveItem {
94741
- /** search engine type */
94742
- se_type?: string | undefined;
94743
- /** keyword obtained as a result of search engine autocorrection
94744
- the results will be provided for the corrected keyword */
94745
- keyword?: string | undefined;
94746
- /** type of element */
94747
- type?: string | undefined;
94748
- /** search engine domain in a POST array */
94749
- se_domain?: string | undefined;
94750
- /** location code in a POST array */
94751
- location_code?: number | undefined;
94752
- /** language code in a POST array */
94753
- language_code?: string | undefined;
94754
- /** direct URL to search engine results
94755
- you can use it to make sure that we provided accurate results */
94756
- check_url?: string | undefined;
94757
- /** date and time when the result was received
94758
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
94759
- example:
94760
- 2019-11-15 12:57:46 +00:00 */
94761
- datetime?: string | undefined;
94762
- /** autocorrection of the search engine
94763
- if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection */
94764
- spell?: SpellInfo | undefined;
94765
- /** types of search results in SERP
94766
- contains types of search results (items) found in SERP.
94767
- possible item types:
94768
- answer_box, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_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, visual_stories, commercial_units, local_services, google_hotels, math_solver */
94769
- item_types?: (string | undefined)[] | undefined;
94770
- /** total number of results in SERP */
94771
- se_results_count?: number | undefined;
94772
- /** the number of results returned in the items array */
94773
- items_count?: number | undefined;
94774
- /** additional items present in the element
94775
- if there are none, equals null */
94776
- items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
94777
-
94778
- [key: string]: any;
94779
- }
94780
-
94781
- export class KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphCarouselItemDataforseoLabsSerpElementItem {
95424
+ export interface IKnowledgeGraphCarouselItemDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
94782
95425
  /** group rank in SERP
94783
95426
  position within a group of elements with identical type values
94784
95427
  positions of elements with different type values are omitted from rank_group */
@@ -94805,10 +95448,47 @@ if there are none, equals null */
94805
95448
  items?: (KnowledgeGraphListElement | undefined)[] | undefined;
94806
95449
 
94807
95450
  [key: string]: any;
95451
+ }
94808
95452
 
94809
- constructor(data?: IKnowledgeGraphCarouselItemDataforseoLabsSerpElementItem) {
95453
+ export class KnowledgeGraphDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphDataforseoLabsSerpElementItem {
95454
+ /** search engine type */
95455
+ se_type?: string | undefined;
95456
+ /** position within a group of elements with identical type values
95457
+ positions of elements with different type values are omitted from rank_group */
95458
+ rank_group?: number | undefined;
95459
+ /** absolute rank in SERP
95460
+ absolute position among all the elements in SERP */
95461
+ rank_absolute?: number | undefined;
95462
+ /** the alignment of the element in SERP
95463
+ can take the following values:
95464
+ left, right */
95465
+ position?: string | undefined;
95466
+ /** the XPath of the element */
95467
+ xpath?: string | undefined;
95468
+ /** title of the result in SERP */
95469
+ title?: string | undefined;
95470
+ /** subtitle of the item */
95471
+ sub_title?: string | undefined;
95472
+ /** description of the results element in SERP */
95473
+ description?: string | undefined;
95474
+ /** card id */
95475
+ card_id?: string | undefined;
95476
+ /** relevant URL of the Ad element in SERP */
95477
+ url?: string | undefined;
95478
+ /** URL of the image from knowledge graph */
95479
+ image_url?: string | undefined;
95480
+ /** URL of the logo from knowledge graph */
95481
+ logo_url?: string | undefined;
95482
+ /** google-defined client id */
95483
+ cid?: string | undefined;
95484
+ /** elements of search results found in SERP */
95485
+ items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
95486
+
95487
+ [key: string]: any;
95488
+
95489
+ constructor(data?: IKnowledgeGraphDataforseoLabsSerpElementItem) {
94810
95490
  super(data);
94811
- this._discriminator = "knowledge_graph_carousel_item";
95491
+ this._discriminator = "knowledge_graph";
94812
95492
  }
94813
95493
 
94814
95494
  init(_data?: any) {
@@ -94818,24 +95498,30 @@ if there are none, equals null */
94818
95498
  if (_data.hasOwnProperty(property))
94819
95499
  this[property] = _data[property];
94820
95500
  }
95501
+ this.se_type = _data["se_type"];
94821
95502
  this.rank_group = _data["rank_group"];
94822
95503
  this.rank_absolute = _data["rank_absolute"];
94823
95504
  this.position = _data["position"];
94824
95505
  this.xpath = _data["xpath"];
94825
95506
  this.title = _data["title"];
94826
- this.data_attrid = _data["data_attrid"];
94827
- this.link = _data["link"];
95507
+ this.sub_title = _data["sub_title"];
95508
+ this.description = _data["description"];
95509
+ this.card_id = _data["card_id"];
95510
+ this.url = _data["url"];
95511
+ this.image_url = _data["image_url"];
95512
+ this.logo_url = _data["logo_url"];
95513
+ this.cid = _data["cid"];
94828
95514
  if (Array.isArray(_data["items"])) {
94829
95515
  this.items = [] as any;
94830
95516
  for (let item of _data["items"])
94831
- this.items!.push(KnowledgeGraphListElement.fromJS(item));
95517
+ this.items!.push(BaseDataforseoLabsSerpElementItem.fromJS(item));
94832
95518
  }
94833
95519
  }
94834
95520
  }
94835
95521
 
94836
- static fromJS(data: any): KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem {
95522
+ static fromJS(data: any): KnowledgeGraphDataforseoLabsSerpElementItem {
94837
95523
  data = typeof data === 'object' ? data : {};
94838
- let result = new KnowledgeGraphCarouselItemDataforseoLabsSerpElementItem();
95524
+ let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
94839
95525
  result.init(data);
94840
95526
  return result;
94841
95527
  }
@@ -94846,13 +95532,19 @@ if there are none, equals null */
94846
95532
  if (this.hasOwnProperty(property))
94847
95533
  data[property] = this[property];
94848
95534
  }
95535
+ data["se_type"] = this.se_type;
94849
95536
  data["rank_group"] = this.rank_group;
94850
95537
  data["rank_absolute"] = this.rank_absolute;
94851
95538
  data["position"] = this.position;
94852
95539
  data["xpath"] = this.xpath;
94853
95540
  data["title"] = this.title;
94854
- data["data_attrid"] = this.data_attrid;
94855
- data["link"] = this.link;
95541
+ data["sub_title"] = this.sub_title;
95542
+ data["description"] = this.description;
95543
+ data["card_id"] = this.card_id;
95544
+ data["url"] = this.url;
95545
+ data["image_url"] = this.image_url;
95546
+ data["logo_url"] = this.logo_url;
95547
+ data["cid"] = this.cid;
94856
95548
  if (Array.isArray(this.items)) {
94857
95549
  data["items"] = [];
94858
95550
  for (let item of this.items)
@@ -94863,9 +95555,10 @@ if there are none, equals null */
94863
95555
  }
94864
95556
  }
94865
95557
 
94866
- export interface IKnowledgeGraphCarouselItemDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
94867
- /** group rank in SERP
94868
- position within a group of elements with identical type values
95558
+ export interface IKnowledgeGraphDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
95559
+ /** search engine type */
95560
+ se_type?: string | undefined;
95561
+ /** position within a group of elements with identical type values
94869
95562
  positions of elements with different type values are omitted from rank_group */
94870
95563
  rank_group?: number | undefined;
94871
95564
  /** absolute rank in SERP
@@ -94877,17 +95570,182 @@ left, right */
94877
95570
  position?: string | undefined;
94878
95571
  /** the XPath of the element */
94879
95572
  xpath?: string | undefined;
94880
- /** title of the link */
95573
+ /** title of the result in SERP */
94881
95574
  title?: string | undefined;
94882
- /** google defined data attribute ID
95575
+ /** subtitle of the item */
95576
+ sub_title?: string | undefined;
95577
+ /** description of the results element in SERP */
95578
+ description?: string | undefined;
95579
+ /** card id */
95580
+ card_id?: string | undefined;
95581
+ /** relevant URL of the Ad element in SERP */
95582
+ url?: string | undefined;
95583
+ /** URL of the image from knowledge graph */
95584
+ image_url?: string | undefined;
95585
+ /** URL of the logo from knowledge graph */
95586
+ logo_url?: string | undefined;
95587
+ /** google-defined client id */
95588
+ cid?: string | undefined;
95589
+ /** elements of search results found in SERP */
95590
+ items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
95591
+
95592
+ [key: string]: any;
95593
+ }
95594
+
95595
+ export class DataforseoLabsGoogleHistoricalSerpsLiveItem implements IDataforseoLabsGoogleHistoricalSerpsLiveItem {
95596
+ /** search engine type */
95597
+ se_type?: string | undefined;
95598
+ /** keyword obtained as a result of search engine autocorrection
95599
+ the results will be provided for the corrected keyword */
95600
+ keyword?: string | undefined;
95601
+ /** type of element */
95602
+ type?: string | undefined;
95603
+ /** search engine domain in a POST array */
95604
+ se_domain?: string | undefined;
95605
+ /** location code in a POST array */
95606
+ location_code?: number | undefined;
95607
+ /** language code in a POST array */
95608
+ language_code?: string | undefined;
95609
+ /** direct URL to search engine results
95610
+ you can use it to make sure that we provided accurate results */
95611
+ check_url?: string | undefined;
95612
+ /** date and time when the result was received
95613
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
94883
95614
  example:
94884
- ss:/webfacts:net_worth */
94885
- data_attrid?: string | undefined;
94886
- /** link of the element */
94887
- link?: any | undefined;
95615
+ 2019-11-15 12:57:46 +00:00 */
95616
+ datetime?: string | undefined;
95617
+ /** autocorrection of the search engine
95618
+ if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection */
95619
+ spell?: SpellInfo | undefined;
95620
+ /** types of search results in SERP
95621
+ contains types of search results (items) found in SERP.
95622
+ possible item types:
95623
+ answer_box, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_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, visual_stories, commercial_units, local_services, google_hotels, math_solver */
95624
+ item_types?: (string | undefined)[] | undefined;
95625
+ /** total number of results in SERP */
95626
+ se_results_count?: number | undefined;
95627
+ /** the number of results returned in the items array */
95628
+ items_count?: number | undefined;
94888
95629
  /** additional items present in the element
94889
95630
  if there are none, equals null */
94890
- items?: (KnowledgeGraphListElement | undefined)[] | undefined;
95631
+ items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
95632
+
95633
+ [key: string]: any;
95634
+
95635
+ constructor(data?: IDataforseoLabsGoogleHistoricalSerpsLiveItem) {
95636
+ if (data) {
95637
+ for (var property in data) {
95638
+ if (data.hasOwnProperty(property))
95639
+ (<any>this)[property] = (<any>data)[property];
95640
+ }
95641
+ }
95642
+ }
95643
+
95644
+ init(_data?: any) {
95645
+ if (_data) {
95646
+ for (var property in _data) {
95647
+ if (_data.hasOwnProperty(property))
95648
+ this[property] = _data[property];
95649
+ }
95650
+ this.se_type = _data["se_type"];
95651
+ this.keyword = _data["keyword"];
95652
+ this.type = _data["type"];
95653
+ this.se_domain = _data["se_domain"];
95654
+ this.location_code = _data["location_code"];
95655
+ this.language_code = _data["language_code"];
95656
+ this.check_url = _data["check_url"];
95657
+ this.datetime = _data["datetime"];
95658
+ this.spell = _data["spell"] ? SpellInfo.fromJS(_data["spell"]) : <any>undefined;
95659
+ if (Array.isArray(_data["item_types"])) {
95660
+ this.item_types = [] as any;
95661
+ for (let item of _data["item_types"])
95662
+ this.item_types!.push(item);
95663
+ }
95664
+ this.se_results_count = _data["se_results_count"];
95665
+ this.items_count = _data["items_count"];
95666
+ if (Array.isArray(_data["items"])) {
95667
+ this.items = [] as any;
95668
+ for (let item of _data["items"])
95669
+ this.items!.push(BaseDataforseoLabsSerpElementItem.fromJS(item));
95670
+ }
95671
+ }
95672
+ }
95673
+
95674
+ static fromJS(data: any): DataforseoLabsGoogleHistoricalSerpsLiveItem {
95675
+ data = typeof data === 'object' ? data : {};
95676
+ let result = new DataforseoLabsGoogleHistoricalSerpsLiveItem();
95677
+ result.init(data);
95678
+ return result;
95679
+ }
95680
+
95681
+ toJSON(data?: any) {
95682
+ data = typeof data === 'object' ? data : {};
95683
+ for (var property in this) {
95684
+ if (this.hasOwnProperty(property))
95685
+ data[property] = this[property];
95686
+ }
95687
+ data["se_type"] = this.se_type;
95688
+ data["keyword"] = this.keyword;
95689
+ data["type"] = this.type;
95690
+ data["se_domain"] = this.se_domain;
95691
+ data["location_code"] = this.location_code;
95692
+ data["language_code"] = this.language_code;
95693
+ data["check_url"] = this.check_url;
95694
+ data["datetime"] = this.datetime;
95695
+ data["spell"] = this.spell ? this.spell.toJSON() : <any>undefined;
95696
+ if (Array.isArray(this.item_types)) {
95697
+ data["item_types"] = [];
95698
+ for (let item of this.item_types)
95699
+ data["item_types"].push(item);
95700
+ }
95701
+ data["se_results_count"] = this.se_results_count;
95702
+ data["items_count"] = this.items_count;
95703
+ if (Array.isArray(this.items)) {
95704
+ data["items"] = [];
95705
+ for (let item of this.items)
95706
+ data["items"].push(item.toJSON());
95707
+ }
95708
+ return data;
95709
+ }
95710
+ }
95711
+
95712
+ export interface IDataforseoLabsGoogleHistoricalSerpsLiveItem {
95713
+ /** search engine type */
95714
+ se_type?: string | undefined;
95715
+ /** keyword obtained as a result of search engine autocorrection
95716
+ the results will be provided for the corrected keyword */
95717
+ keyword?: string | undefined;
95718
+ /** type of element */
95719
+ type?: string | undefined;
95720
+ /** search engine domain in a POST array */
95721
+ se_domain?: string | undefined;
95722
+ /** location code in a POST array */
95723
+ location_code?: number | undefined;
95724
+ /** language code in a POST array */
95725
+ language_code?: string | undefined;
95726
+ /** direct URL to search engine results
95727
+ you can use it to make sure that we provided accurate results */
95728
+ check_url?: string | undefined;
95729
+ /** date and time when the result was received
95730
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
95731
+ example:
95732
+ 2019-11-15 12:57:46 +00:00 */
95733
+ datetime?: string | undefined;
95734
+ /** autocorrection of the search engine
95735
+ if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection */
95736
+ spell?: SpellInfo | undefined;
95737
+ /** types of search results in SERP
95738
+ contains types of search results (items) found in SERP.
95739
+ possible item types:
95740
+ answer_box, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_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, visual_stories, commercial_units, local_services, google_hotels, math_solver */
95741
+ item_types?: (string | undefined)[] | undefined;
95742
+ /** total number of results in SERP */
95743
+ se_results_count?: number | undefined;
95744
+ /** the number of results returned in the items array */
95745
+ items_count?: number | undefined;
95746
+ /** additional items present in the element
95747
+ if there are none, equals null */
95748
+ items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
94891
95749
 
94892
95750
  [key: string]: any;
94893
95751
  }
@@ -154729,6 +155587,145 @@ status code of the page to which the link is pointing */
154729
155587
  [key: string]: any;
154730
155588
  }
154731
155589
 
155590
+ export class OnPageLinksResultInfo implements IOnPageLinksResultInfo {
155591
+ /** status of the crawling session
155592
+ possible values: in_progress, finished */
155593
+ crawl_progress?: string | undefined;
155594
+ /** details of the crawling session */
155595
+ crawl_status?: CrawlStatusInfo | undefined;
155596
+ /** total number of relevant items in the database */
155597
+ total_items_count?: number | undefined;
155598
+ /** number of items in the results array */
155599
+ items_count?: number | undefined;
155600
+ /** items array */
155601
+ items?: (BaseOnPageLinkItemInfo | undefined)[] | undefined;
155602
+
155603
+ [key: string]: any;
155604
+
155605
+ constructor(data?: IOnPageLinksResultInfo) {
155606
+ if (data) {
155607
+ for (var property in data) {
155608
+ if (data.hasOwnProperty(property))
155609
+ (<any>this)[property] = (<any>data)[property];
155610
+ }
155611
+ }
155612
+ }
155613
+
155614
+ init(_data?: any) {
155615
+ if (_data) {
155616
+ for (var property in _data) {
155617
+ if (_data.hasOwnProperty(property))
155618
+ this[property] = _data[property];
155619
+ }
155620
+ this.crawl_progress = _data["crawl_progress"];
155621
+ this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
155622
+ this.total_items_count = _data["total_items_count"];
155623
+ this.items_count = _data["items_count"];
155624
+ if (Array.isArray(_data["items"])) {
155625
+ this.items = [] as any;
155626
+ for (let item of _data["items"])
155627
+ this.items!.push(BaseOnPageLinkItemInfo.fromJS(item));
155628
+ }
155629
+ }
155630
+ }
155631
+
155632
+ static fromJS(data: any): OnPageLinksResultInfo {
155633
+ data = typeof data === 'object' ? data : {};
155634
+ let result = new OnPageLinksResultInfo();
155635
+ result.init(data);
155636
+ return result;
155637
+ }
155638
+
155639
+ toJSON(data?: any) {
155640
+ data = typeof data === 'object' ? data : {};
155641
+ for (var property in this) {
155642
+ if (this.hasOwnProperty(property))
155643
+ data[property] = this[property];
155644
+ }
155645
+ data["crawl_progress"] = this.crawl_progress;
155646
+ data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
155647
+ data["total_items_count"] = this.total_items_count;
155648
+ data["items_count"] = this.items_count;
155649
+ if (Array.isArray(this.items)) {
155650
+ data["items"] = [];
155651
+ for (let item of this.items)
155652
+ data["items"].push(item.toJSON());
155653
+ }
155654
+ return data;
155655
+ }
155656
+ }
155657
+
155658
+ export interface IOnPageLinksResultInfo {
155659
+ /** status of the crawling session
155660
+ possible values: in_progress, finished */
155661
+ crawl_progress?: string | undefined;
155662
+ /** details of the crawling session */
155663
+ crawl_status?: CrawlStatusInfo | undefined;
155664
+ /** total number of relevant items in the database */
155665
+ total_items_count?: number | undefined;
155666
+ /** number of items in the results array */
155667
+ items_count?: number | undefined;
155668
+ /** items array */
155669
+ items?: (BaseOnPageLinkItemInfo | undefined)[] | undefined;
155670
+
155671
+ [key: string]: any;
155672
+ }
155673
+
155674
+ export class OnPageLinksTaskInfo extends BaseResponseTaskInfo implements IOnPageLinksTaskInfo {
155675
+ /** array of results */
155676
+ result?: (OnPageLinksResultInfo | undefined)[] | undefined;
155677
+
155678
+ [key: string]: any;
155679
+
155680
+ constructor(data?: IOnPageLinksTaskInfo) {
155681
+ super(data);
155682
+ }
155683
+
155684
+ init(_data?: any) {
155685
+ super.init(_data);
155686
+ if (_data) {
155687
+ for (var property in _data) {
155688
+ if (_data.hasOwnProperty(property))
155689
+ this[property] = _data[property];
155690
+ }
155691
+ if (Array.isArray(_data["result"])) {
155692
+ this.result = [] as any;
155693
+ for (let item of _data["result"])
155694
+ this.result!.push(OnPageLinksResultInfo.fromJS(item));
155695
+ }
155696
+ }
155697
+ }
155698
+
155699
+ static fromJS(data: any): OnPageLinksTaskInfo {
155700
+ data = typeof data === 'object' ? data : {};
155701
+ let result = new OnPageLinksTaskInfo();
155702
+ result.init(data);
155703
+ return result;
155704
+ }
155705
+
155706
+ toJSON(data?: any) {
155707
+ data = typeof data === 'object' ? data : {};
155708
+ for (var property in this) {
155709
+ if (this.hasOwnProperty(property))
155710
+ data[property] = this[property];
155711
+ }
155712
+ if (Array.isArray(this.result)) {
155713
+ data["result"] = [];
155714
+ for (let item of this.result)
155715
+ data["result"].push(item.toJSON());
155716
+ }
155717
+ super.toJSON(data);
155718
+ return data;
155719
+ }
155720
+ }
155721
+
155722
+ export interface IOnPageLinksTaskInfo extends IBaseResponseTaskInfo {
155723
+ /** array of results */
155724
+ result?: (OnPageLinksResultInfo | undefined)[] | undefined;
155725
+
155726
+ [key: string]: any;
155727
+ }
155728
+
154732
155729
  export class ImageLinkElementItem extends BaseOnPageLinkItemInfo implements IImageLinkElementItem {
154733
155730
  /** referring domain
154734
155731
  the link was found on this domain */
@@ -154909,145 +155906,6 @@ status code of the page to which the link is pointing */
154909
155906
  [key: string]: any;
154910
155907
  }
154911
155908
 
154912
- export class OnPageLinksResultInfo implements IOnPageLinksResultInfo {
154913
- /** status of the crawling session
154914
- possible values: in_progress, finished */
154915
- crawl_progress?: string | undefined;
154916
- /** details of the crawling session */
154917
- crawl_status?: CrawlStatusInfo | undefined;
154918
- /** total number of relevant items in the database */
154919
- total_items_count?: number | undefined;
154920
- /** number of items in the results array */
154921
- items_count?: number | undefined;
154922
- /** items array */
154923
- items?: (BaseOnPageLinkItemInfo | undefined)[] | undefined;
154924
-
154925
- [key: string]: any;
154926
-
154927
- constructor(data?: IOnPageLinksResultInfo) {
154928
- if (data) {
154929
- for (var property in data) {
154930
- if (data.hasOwnProperty(property))
154931
- (<any>this)[property] = (<any>data)[property];
154932
- }
154933
- }
154934
- }
154935
-
154936
- init(_data?: any) {
154937
- if (_data) {
154938
- for (var property in _data) {
154939
- if (_data.hasOwnProperty(property))
154940
- this[property] = _data[property];
154941
- }
154942
- this.crawl_progress = _data["crawl_progress"];
154943
- this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
154944
- this.total_items_count = _data["total_items_count"];
154945
- this.items_count = _data["items_count"];
154946
- if (Array.isArray(_data["items"])) {
154947
- this.items = [] as any;
154948
- for (let item of _data["items"])
154949
- this.items!.push(BaseOnPageLinkItemInfo.fromJS(item));
154950
- }
154951
- }
154952
- }
154953
-
154954
- static fromJS(data: any): OnPageLinksResultInfo {
154955
- data = typeof data === 'object' ? data : {};
154956
- let result = new OnPageLinksResultInfo();
154957
- result.init(data);
154958
- return result;
154959
- }
154960
-
154961
- toJSON(data?: any) {
154962
- data = typeof data === 'object' ? data : {};
154963
- for (var property in this) {
154964
- if (this.hasOwnProperty(property))
154965
- data[property] = this[property];
154966
- }
154967
- data["crawl_progress"] = this.crawl_progress;
154968
- data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
154969
- data["total_items_count"] = this.total_items_count;
154970
- data["items_count"] = this.items_count;
154971
- if (Array.isArray(this.items)) {
154972
- data["items"] = [];
154973
- for (let item of this.items)
154974
- data["items"].push(item.toJSON());
154975
- }
154976
- return data;
154977
- }
154978
- }
154979
-
154980
- export interface IOnPageLinksResultInfo {
154981
- /** status of the crawling session
154982
- possible values: in_progress, finished */
154983
- crawl_progress?: string | undefined;
154984
- /** details of the crawling session */
154985
- crawl_status?: CrawlStatusInfo | undefined;
154986
- /** total number of relevant items in the database */
154987
- total_items_count?: number | undefined;
154988
- /** number of items in the results array */
154989
- items_count?: number | undefined;
154990
- /** items array */
154991
- items?: (BaseOnPageLinkItemInfo | undefined)[] | undefined;
154992
-
154993
- [key: string]: any;
154994
- }
154995
-
154996
- export class OnPageLinksTaskInfo extends BaseResponseTaskInfo implements IOnPageLinksTaskInfo {
154997
- /** array of results */
154998
- result?: (OnPageLinksResultInfo | undefined)[] | undefined;
154999
-
155000
- [key: string]: any;
155001
-
155002
- constructor(data?: IOnPageLinksTaskInfo) {
155003
- super(data);
155004
- }
155005
-
155006
- init(_data?: any) {
155007
- super.init(_data);
155008
- if (_data) {
155009
- for (var property in _data) {
155010
- if (_data.hasOwnProperty(property))
155011
- this[property] = _data[property];
155012
- }
155013
- if (Array.isArray(_data["result"])) {
155014
- this.result = [] as any;
155015
- for (let item of _data["result"])
155016
- this.result!.push(OnPageLinksResultInfo.fromJS(item));
155017
- }
155018
- }
155019
- }
155020
-
155021
- static fromJS(data: any): OnPageLinksTaskInfo {
155022
- data = typeof data === 'object' ? data : {};
155023
- let result = new OnPageLinksTaskInfo();
155024
- result.init(data);
155025
- return result;
155026
- }
155027
-
155028
- toJSON(data?: any) {
155029
- data = typeof data === 'object' ? data : {};
155030
- for (var property in this) {
155031
- if (this.hasOwnProperty(property))
155032
- data[property] = this[property];
155033
- }
155034
- if (Array.isArray(this.result)) {
155035
- data["result"] = [];
155036
- for (let item of this.result)
155037
- data["result"].push(item.toJSON());
155038
- }
155039
- super.toJSON(data);
155040
- return data;
155041
- }
155042
- }
155043
-
155044
- export interface IOnPageLinksTaskInfo extends IBaseResponseTaskInfo {
155045
- /** array of results */
155046
- result?: (OnPageLinksResultInfo | undefined)[] | undefined;
155047
-
155048
- [key: string]: any;
155049
- }
155050
-
155051
155909
  export class AlternateLinkElementItem extends BaseOnPageLinkItemInfo implements IAlternateLinkElementItem {
155052
155910
  /** referring domain
155053
155911
  the link was found on this domain */
@@ -195529,6 +196387,14 @@ example:
195529
196387
  /** the element’s rating
195530
196388
  the popularity rate based on reviews and displayed in SERP */
195531
196389
  rating?: RatingInfo | undefined;
196390
+ /** hotel class rating
196391
+ class ratings range between 1-5 stars, learn more
196392
+ if there is no hotel class rating information, the value will be null */
196393
+ hotel_rating?: number | undefined;
196394
+ /** property price level
196395
+ can take values: inexpensive, moderate, expensive, very_expensive
196396
+ if there is no price level information, the value will be null */
196397
+ price_level?: string | undefined;
195532
196398
  /** the distribution of ratings of the business entity
195533
196399
  the object displays the number of 1-star to 5-star ratings, as reviewed by users */
195534
196400
  rating_distribution?: { [key: string]: number; } | undefined;
@@ -195540,8 +196406,6 @@ information related to operational hours of the business entity */
195540
196406
  /** popular times
195541
196407
  information related to busy hours of the business entity */
195542
196408
  popular_times?: PopularTimes | undefined;
195543
- /** available interactions with the business
195544
- list of options to interact with the business directly from search results */
195545
196409
  local_business_links?: (BaseLocalBusinessLink | undefined)[] | undefined;
195546
196410
  /** available contacts of the business
195547
196411
  list of contacts to interact with the business */
@@ -195610,6 +196474,8 @@ example:
195610
196474
  }
195611
196475
  }
195612
196476
  this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
196477
+ this.hotel_rating = _data["hotel_rating"];
196478
+ this.price_level = _data["price_level"];
195613
196479
  if (_data["rating_distribution"]) {
195614
196480
  this.rating_distribution = {} as any;
195615
196481
  for (let key in _data["rating_distribution"]) {
@@ -195690,6 +196556,8 @@ example:
195690
196556
  }
195691
196557
  }
195692
196558
  data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
196559
+ data["hotel_rating"] = this.hotel_rating;
196560
+ data["price_level"] = this.price_level;
195693
196561
  if (this.rating_distribution) {
195694
196562
  data["rating_distribution"] = {};
195695
196563
  for (let key in this.rating_distribution) {
@@ -195791,6 +196659,14 @@ example:
195791
196659
  /** the element’s rating
195792
196660
  the popularity rate based on reviews and displayed in SERP */
195793
196661
  rating?: RatingInfo | undefined;
196662
+ /** hotel class rating
196663
+ class ratings range between 1-5 stars, learn more
196664
+ if there is no hotel class rating information, the value will be null */
196665
+ hotel_rating?: number | undefined;
196666
+ /** property price level
196667
+ can take values: inexpensive, moderate, expensive, very_expensive
196668
+ if there is no price level information, the value will be null */
196669
+ price_level?: string | undefined;
195794
196670
  /** the distribution of ratings of the business entity
195795
196671
  the object displays the number of 1-star to 5-star ratings, as reviewed by users */
195796
196672
  rating_distribution?: { [key: string]: number; } | undefined;
@@ -195802,8 +196678,6 @@ information related to operational hours of the business entity */
195802
196678
  /** popular times
195803
196679
  information related to busy hours of the business entity */
195804
196680
  popular_times?: PopularTimes | undefined;
195805
- /** available interactions with the business
195806
- list of options to interact with the business directly from search results */
195807
196681
  local_business_links?: (BaseLocalBusinessLink | undefined)[] | undefined;
195808
196682
  /** available contacts of the business
195809
196683
  list of contacts to interact with the business */
@@ -197897,6 +198771,7 @@ example:
197897
198771
  longitude?: number | undefined;
197898
198772
  /** shows whether the entity is verified by its owner on Google Maps */
197899
198773
  is_claimed?: boolean | undefined;
198774
+ questions_and_answers_count?: number | undefined;
197900
198775
  /** service details in a form of user-reviewed checks;
197901
198776
  service details of a business entity displayed in a form of checks and based on user feedback and business category */
197902
198777
  attributes?: BusinessDataAttributesInfo | undefined;
@@ -197988,6 +198863,7 @@ includes information about businesses that are located within the target busines
197988
198863
  this.latitude = _data["latitude"];
197989
198864
  this.longitude = _data["longitude"];
197990
198865
  this.is_claimed = _data["is_claimed"];
198866
+ this.questions_and_answers_count = _data["questions_and_answers_count"];
197991
198867
  this.attributes = _data["attributes"] ? BusinessDataAttributesInfo.fromJS(_data["attributes"]) : <any>undefined;
197992
198868
  if (_data["place_topics"]) {
197993
198869
  this.place_topics = {} as any;
@@ -198068,6 +198944,7 @@ includes information about businesses that are located within the target busines
198068
198944
  data["latitude"] = this.latitude;
198069
198945
  data["longitude"] = this.longitude;
198070
198946
  data["is_claimed"] = this.is_claimed;
198947
+ data["questions_and_answers_count"] = this.questions_and_answers_count;
198071
198948
  data["attributes"] = this.attributes ? this.attributes.toJSON() : <any>undefined;
198072
198949
  if (this.place_topics) {
198073
198950
  data["place_topics"] = {};
@@ -198170,6 +199047,7 @@ example:
198170
199047
  longitude?: number | undefined;
198171
199048
  /** shows whether the entity is verified by its owner on Google Maps */
198172
199049
  is_claimed?: boolean | undefined;
199050
+ questions_and_answers_count?: number | undefined;
198173
199051
  /** service details in a form of user-reviewed checks;
198174
199052
  service details of a business entity displayed in a form of checks and based on user feedback and business category */
198175
199053
  attributes?: BusinessDataAttributesInfo | undefined;
@@ -205132,86 +206010,37 @@ export interface IBusinessDataGoogleReviewsTaskGetResponseInfo extends IBaseResp
205132
206010
  [key: string]: any;
205133
206011
  }
205134
206012
 
205135
- export class BusinessDataTrustpilotSearchTaskPostRequestInfo implements IBusinessDataTrustpilotSearchTaskPostRequestInfo {
205136
- /** keyword
205137
- required field
205138
- the keyword you specify should indicate a business category or company name;
205139
- you can specify up to 700 symbols in the keyword filed;
205140
- all %## will be decoded (plus symbol ‘+’ will be decoded to a space character);
205141
- if you need to use the “%” symbol for your keyword, please specify it as “%25” */
205142
- keyword?: string;
205143
- /** task priority
205144
- optional field
205145
- can take the following values:
205146
- 1 – normal execution priority (set by default)
205147
- 2 – high execution priority
205148
- You will be additionally charged for the tasks with high execution priority.
205149
- The cost can be calculated on the Pricing page. */
205150
- priority?: number | undefined;
206013
+ export class BusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo extends BusinessDataTaskRequestInfo implements IBusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo {
205151
206014
  /** parsing depth
205152
206015
  optional field
205153
- number of search results to be returned from the API response
205154
- we strongly recommend setting the parsing depth in the multiples of twenty because our systems processes twenty search results in a row;
205155
- default value: 10;
205156
- maximum value: 140
205157
- Note: your account will be charged for every 10 search results returned, e.g. if you specify depth: 11, you will be charged as per 20 search results */
206016
+ number of question rows in the result
206017
+ default value: 20
206018
+ max value: 700
206019
+ Note: your account will be billed for every 20 questions;
206020
+ thus, setting a depth above 20 may result in additional charges if the search engine returns more than 20 questions;
206021
+ if the specified depth is higher than the number of questions in the response, the difference will be refunded automatically to your account balance */
205158
206022
  depth?: number | undefined;
205159
- /** user-defined task identifier
205160
- optional field
205161
- the character limit is 255
205162
- you can use this parameter to identify the task and match it with the result
205163
- you will find the specified tag value in the data object of the response */
205164
- tag?: string | undefined;
205165
- /** return URL for sending task results
205166
- optional field
205167
- once the task is completed, we will send a POST request with its results compressed in the gzip format to the postback_url you specified
205168
- you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
205169
- example:
205170
- http://your-server.com/postbackscript?id=$id
205171
- http://your-server.com/postbackscript?id=$id&tag=$tag
205172
- Note: special symbols in postback_url will be urlencoded;
205173
- i.a., the # symbol will be encoded into %23 */
205174
- postback_url?: string | undefined;
205175
- /** notification URL of a completed task
205176
- optional field
205177
- when a task is completed we will notify you by GET request sent to the URL you have specified
205178
- you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
205179
- example:
205180
- http://your-server.com/pingscript?id=$id
205181
- http://your-server.com/pingscript?id=$id&tag=$tag
205182
- Note: special symbols in pingback_url will be urlencoded;
205183
- i.a., the # symbol will be encoded into %23 */
205184
- pingback_url?: string | undefined;
205185
206023
 
205186
206024
  [key: string]: any;
205187
206025
 
205188
- constructor(data?: IBusinessDataTrustpilotSearchTaskPostRequestInfo) {
205189
- if (data) {
205190
- for (var property in data) {
205191
- if (data.hasOwnProperty(property))
205192
- (<any>this)[property] = (<any>data)[property];
205193
- }
205194
- }
206026
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo) {
206027
+ super(data);
205195
206028
  }
205196
206029
 
205197
206030
  init(_data?: any) {
206031
+ super.init(_data);
205198
206032
  if (_data) {
205199
206033
  for (var property in _data) {
205200
206034
  if (_data.hasOwnProperty(property))
205201
206035
  this[property] = _data[property];
205202
206036
  }
205203
- this.keyword = _data["keyword"];
205204
- this.priority = _data["priority"];
205205
206037
  this.depth = _data["depth"];
205206
- this.tag = _data["tag"];
205207
- this.postback_url = _data["postback_url"];
205208
- this.pingback_url = _data["pingback_url"];
205209
206038
  }
205210
206039
  }
205211
206040
 
205212
- static fromJS(data: any): BusinessDataTrustpilotSearchTaskPostRequestInfo {
206041
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo {
205213
206042
  data = typeof data === 'object' ? data : {};
205214
- let result = new BusinessDataTrustpilotSearchTaskPostRequestInfo();
206043
+ let result = new BusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo();
205215
206044
  result.init(data);
205216
206045
  return result;
205217
206046
  }
@@ -205222,78 +206051,34 @@ i.a., the # symbol will be encoded into %23 */
205222
206051
  if (this.hasOwnProperty(property))
205223
206052
  data[property] = this[property];
205224
206053
  }
205225
- data["keyword"] = this.keyword;
205226
- data["priority"] = this.priority;
205227
206054
  data["depth"] = this.depth;
205228
- data["tag"] = this.tag;
205229
- data["postback_url"] = this.postback_url;
205230
- data["pingback_url"] = this.pingback_url;
206055
+ super.toJSON(data);
205231
206056
  return data;
205232
206057
  }
205233
206058
  }
205234
206059
 
205235
- export interface IBusinessDataTrustpilotSearchTaskPostRequestInfo {
205236
- /** keyword
205237
- required field
205238
- the keyword you specify should indicate a business category or company name;
205239
- you can specify up to 700 symbols in the keyword filed;
205240
- all %## will be decoded (plus symbol ‘+’ will be decoded to a space character);
205241
- if you need to use the “%” symbol for your keyword, please specify it as “%25” */
205242
- keyword?: string;
205243
- /** task priority
205244
- optional field
205245
- can take the following values:
205246
- 1 – normal execution priority (set by default)
205247
- 2 – high execution priority
205248
- You will be additionally charged for the tasks with high execution priority.
205249
- The cost can be calculated on the Pricing page. */
205250
- priority?: number | undefined;
206060
+ export interface IBusinessDataGoogleQuestionsAndAnswersTaskPostRequestInfo extends IBusinessDataTaskRequestInfo {
205251
206061
  /** parsing depth
205252
206062
  optional field
205253
- number of search results to be returned from the API response
205254
- we strongly recommend setting the parsing depth in the multiples of twenty because our systems processes twenty search results in a row;
205255
- default value: 10;
205256
- maximum value: 140
205257
- Note: your account will be charged for every 10 search results returned, e.g. if you specify depth: 11, you will be charged as per 20 search results */
206063
+ number of question rows in the result
206064
+ default value: 20
206065
+ max value: 700
206066
+ Note: your account will be billed for every 20 questions;
206067
+ thus, setting a depth above 20 may result in additional charges if the search engine returns more than 20 questions;
206068
+ if the specified depth is higher than the number of questions in the response, the difference will be refunded automatically to your account balance */
205258
206069
  depth?: number | undefined;
205259
- /** user-defined task identifier
205260
- optional field
205261
- the character limit is 255
205262
- you can use this parameter to identify the task and match it with the result
205263
- you will find the specified tag value in the data object of the response */
205264
- tag?: string | undefined;
205265
- /** return URL for sending task results
205266
- optional field
205267
- once the task is completed, we will send a POST request with its results compressed in the gzip format to the postback_url you specified
205268
- you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
205269
- example:
205270
- http://your-server.com/postbackscript?id=$id
205271
- http://your-server.com/postbackscript?id=$id&tag=$tag
205272
- Note: special symbols in postback_url will be urlencoded;
205273
- i.a., the # symbol will be encoded into %23 */
205274
- postback_url?: string | undefined;
205275
- /** notification URL of a completed task
205276
- optional field
205277
- when a task is completed we will notify you by GET request sent to the URL you have specified
205278
- you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
205279
- example:
205280
- http://your-server.com/pingscript?id=$id
205281
- http://your-server.com/pingscript?id=$id&tag=$tag
205282
- Note: special symbols in pingback_url will be urlencoded;
205283
- i.a., the # symbol will be encoded into %23 */
205284
- pingback_url?: string | undefined;
205285
206070
 
205286
206071
  [key: string]: any;
205287
206072
  }
205288
206073
 
205289
- export class BusinessDataTrustpilotSearchTaskPostTaskInfo extends BaseResponseTaskInfo implements IBusinessDataTrustpilotSearchTaskPostTaskInfo {
206074
+ export class BusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo extends BaseResponseTaskInfo implements IBusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo {
205290
206075
  /** array of results
205291
206076
  in this case, the value will be null */
205292
206077
  result?: any | undefined;
205293
206078
 
205294
206079
  [key: string]: any;
205295
206080
 
205296
- constructor(data?: IBusinessDataTrustpilotSearchTaskPostTaskInfo) {
206081
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo) {
205297
206082
  super(data);
205298
206083
  }
205299
206084
 
@@ -205308,9 +206093,9 @@ in this case, the value will be null */
205308
206093
  }
205309
206094
  }
205310
206095
 
205311
- static fromJS(data: any): BusinessDataTrustpilotSearchTaskPostTaskInfo {
206096
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo {
205312
206097
  data = typeof data === 'object' ? data : {};
205313
- let result = new BusinessDataTrustpilotSearchTaskPostTaskInfo();
206098
+ let result = new BusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo();
205314
206099
  result.init(data);
205315
206100
  return result;
205316
206101
  }
@@ -205327,7 +206112,7 @@ in this case, the value will be null */
205327
206112
  }
205328
206113
  }
205329
206114
 
205330
- export interface IBusinessDataTrustpilotSearchTaskPostTaskInfo extends IBaseResponseTaskInfo {
206115
+ export interface IBusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo extends IBaseResponseTaskInfo {
205331
206116
  /** array of results
205332
206117
  in this case, the value will be null */
205333
206118
  result?: any | undefined;
@@ -205335,13 +206120,13 @@ in this case, the value will be null */
205335
206120
  [key: string]: any;
205336
206121
  }
205337
206122
 
205338
- export class BusinessDataTrustpilotSearchTaskPostResponseInfo extends BaseResponseInfo implements IBusinessDataTrustpilotSearchTaskPostResponseInfo {
206123
+ export class BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo extends BaseResponseInfo implements IBusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo {
205339
206124
  /** array of tasks */
205340
- tasks?: (BusinessDataTrustpilotSearchTaskPostTaskInfo | undefined)[] | undefined;
206125
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo | undefined)[] | undefined;
205341
206126
 
205342
206127
  [key: string]: any;
205343
206128
 
205344
- constructor(data?: IBusinessDataTrustpilotSearchTaskPostResponseInfo) {
206129
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo) {
205345
206130
  super(data);
205346
206131
  }
205347
206132
 
@@ -205355,14 +206140,14 @@ export class BusinessDataTrustpilotSearchTaskPostResponseInfo extends BaseRespon
205355
206140
  if (Array.isArray(_data["tasks"])) {
205356
206141
  this.tasks = [] as any;
205357
206142
  for (let item of _data["tasks"])
205358
- this.tasks!.push(BusinessDataTrustpilotSearchTaskPostTaskInfo.fromJS(item));
206143
+ this.tasks!.push(BusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo.fromJS(item));
205359
206144
  }
205360
206145
  }
205361
206146
  }
205362
206147
 
205363
- static fromJS(data: any): BusinessDataTrustpilotSearchTaskPostResponseInfo {
206148
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo {
205364
206149
  data = typeof data === 'object' ? data : {};
205365
- let result = new BusinessDataTrustpilotSearchTaskPostResponseInfo();
206150
+ let result = new BusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo();
205366
206151
  result.init(data);
205367
206152
  return result;
205368
206153
  }
@@ -205383,19 +206168,19 @@ export class BusinessDataTrustpilotSearchTaskPostResponseInfo extends BaseRespon
205383
206168
  }
205384
206169
  }
205385
206170
 
205386
- export interface IBusinessDataTrustpilotSearchTaskPostResponseInfo extends IBaseResponseInfo {
206171
+ export interface IBusinessDataGoogleQuestionsAndAnswersTaskPostResponseInfo extends IBaseResponseInfo {
205387
206172
  /** array of tasks */
205388
- tasks?: (BusinessDataTrustpilotSearchTaskPostTaskInfo | undefined)[] | undefined;
206173
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersTaskPostTaskInfo | undefined)[] | undefined;
205389
206174
 
205390
206175
  [key: string]: any;
205391
206176
  }
205392
206177
 
205393
- export class BusinessDataTrustpilotSearchTasksReadyResultInfo implements IBusinessDataTrustpilotSearchTasksReadyResultInfo {
206178
+ export class BusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo implements IBusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo {
205394
206179
  /** task identifier of the completed task
205395
206180
  unique task identifier in our system in the UUID format */
205396
206181
  id?: string | undefined;
205397
206182
  /** search engine specified when setting the task
205398
- can take the following values: trustpilot */
206183
+ can take the following values: google */
205399
206184
  se?: string | undefined;
205400
206185
  /** date when the task was posted (in the UTC format) */
205401
206186
  date_posted?: string | undefined;
@@ -205406,7 +206191,1571 @@ can take the following values: trustpilot */
205406
206191
 
205407
206192
  [key: string]: any;
205408
206193
 
205409
- constructor(data?: IBusinessDataTrustpilotSearchTasksReadyResultInfo) {
206194
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo) {
206195
+ if (data) {
206196
+ for (var property in data) {
206197
+ if (data.hasOwnProperty(property))
206198
+ (<any>this)[property] = (<any>data)[property];
206199
+ }
206200
+ }
206201
+ }
206202
+
206203
+ init(_data?: any) {
206204
+ if (_data) {
206205
+ for (var property in _data) {
206206
+ if (_data.hasOwnProperty(property))
206207
+ this[property] = _data[property];
206208
+ }
206209
+ this.id = _data["id"];
206210
+ this.se = _data["se"];
206211
+ this.date_posted = _data["date_posted"];
206212
+ this.tag = _data["tag"];
206213
+ this.endpoint = _data["endpoint"];
206214
+ }
206215
+ }
206216
+
206217
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo {
206218
+ data = typeof data === 'object' ? data : {};
206219
+ let result = new BusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo();
206220
+ result.init(data);
206221
+ return result;
206222
+ }
206223
+
206224
+ toJSON(data?: any) {
206225
+ data = typeof data === 'object' ? data : {};
206226
+ for (var property in this) {
206227
+ if (this.hasOwnProperty(property))
206228
+ data[property] = this[property];
206229
+ }
206230
+ data["id"] = this.id;
206231
+ data["se"] = this.se;
206232
+ data["date_posted"] = this.date_posted;
206233
+ data["tag"] = this.tag;
206234
+ data["endpoint"] = this.endpoint;
206235
+ return data;
206236
+ }
206237
+ }
206238
+
206239
+ export interface IBusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo {
206240
+ /** task identifier of the completed task
206241
+ unique task identifier in our system in the UUID format */
206242
+ id?: string | undefined;
206243
+ /** search engine specified when setting the task
206244
+ can take the following values: google */
206245
+ se?: string | undefined;
206246
+ /** date when the task was posted (in the UTC format) */
206247
+ date_posted?: string | undefined;
206248
+ /** user-defined task identifier */
206249
+ tag?: string | undefined;
206250
+ /** URL for collecting the results of the task */
206251
+ endpoint?: string | undefined;
206252
+
206253
+ [key: string]: any;
206254
+ }
206255
+
206256
+ export class BusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo extends BaseResponseTaskInfo implements IBusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo {
206257
+ /** array of results */
206258
+ result?: (BusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo | undefined)[] | undefined;
206259
+
206260
+ [key: string]: any;
206261
+
206262
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo) {
206263
+ super(data);
206264
+ }
206265
+
206266
+ init(_data?: any) {
206267
+ super.init(_data);
206268
+ if (_data) {
206269
+ for (var property in _data) {
206270
+ if (_data.hasOwnProperty(property))
206271
+ this[property] = _data[property];
206272
+ }
206273
+ if (Array.isArray(_data["result"])) {
206274
+ this.result = [] as any;
206275
+ for (let item of _data["result"])
206276
+ this.result!.push(BusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo.fromJS(item));
206277
+ }
206278
+ }
206279
+ }
206280
+
206281
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo {
206282
+ data = typeof data === 'object' ? data : {};
206283
+ let result = new BusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo();
206284
+ result.init(data);
206285
+ return result;
206286
+ }
206287
+
206288
+ toJSON(data?: any) {
206289
+ data = typeof data === 'object' ? data : {};
206290
+ for (var property in this) {
206291
+ if (this.hasOwnProperty(property))
206292
+ data[property] = this[property];
206293
+ }
206294
+ if (Array.isArray(this.result)) {
206295
+ data["result"] = [];
206296
+ for (let item of this.result)
206297
+ data["result"].push(item.toJSON());
206298
+ }
206299
+ super.toJSON(data);
206300
+ return data;
206301
+ }
206302
+ }
206303
+
206304
+ export interface IBusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo extends IBaseResponseTaskInfo {
206305
+ /** array of results */
206306
+ result?: (BusinessDataGoogleQuestionsAndAnswersTasksReadyResultInfo | undefined)[] | undefined;
206307
+
206308
+ [key: string]: any;
206309
+ }
206310
+
206311
+ export class BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo extends BaseResponseInfo implements IBusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo {
206312
+ /** array of tasks */
206313
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo | undefined)[] | undefined;
206314
+
206315
+ [key: string]: any;
206316
+
206317
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo) {
206318
+ super(data);
206319
+ }
206320
+
206321
+ init(_data?: any) {
206322
+ super.init(_data);
206323
+ if (_data) {
206324
+ for (var property in _data) {
206325
+ if (_data.hasOwnProperty(property))
206326
+ this[property] = _data[property];
206327
+ }
206328
+ if (Array.isArray(_data["tasks"])) {
206329
+ this.tasks = [] as any;
206330
+ for (let item of _data["tasks"])
206331
+ this.tasks!.push(BusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo.fromJS(item));
206332
+ }
206333
+ }
206334
+ }
206335
+
206336
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo {
206337
+ data = typeof data === 'object' ? data : {};
206338
+ let result = new BusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo();
206339
+ result.init(data);
206340
+ return result;
206341
+ }
206342
+
206343
+ toJSON(data?: any) {
206344
+ data = typeof data === 'object' ? data : {};
206345
+ for (var property in this) {
206346
+ if (this.hasOwnProperty(property))
206347
+ data[property] = this[property];
206348
+ }
206349
+ if (Array.isArray(this.tasks)) {
206350
+ data["tasks"] = [];
206351
+ for (let item of this.tasks)
206352
+ data["tasks"].push(item.toJSON());
206353
+ }
206354
+ super.toJSON(data);
206355
+ return data;
206356
+ }
206357
+ }
206358
+
206359
+ export interface IBusinessDataGoogleQuestionsAndAnswersTasksReadyResponseInfo extends IBaseResponseInfo {
206360
+ /** array of tasks */
206361
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersTasksReadyTaskInfo | undefined)[] | undefined;
206362
+
206363
+ [key: string]: any;
206364
+ }
206365
+
206366
+ export class ItemsWithoutAnswers implements IItemsWithoutAnswers {
206367
+ /** type of element */
206368
+ type?: string | undefined;
206369
+ /** position within a group of elements with identical type values
206370
+ positions of elements with different type values are omitted from rank_group */
206371
+ rank_group?: number | undefined;
206372
+ /** absolute rank among all the elements */
206373
+ rank_absolute?: number | undefined;
206374
+ /** ID of the question */
206375
+ question_id?: string | undefined;
206376
+ /** URL of the question */
206377
+ url?: string | undefined;
206378
+ /** URL of the user’s profile image */
206379
+ profile_image_url?: string | undefined;
206380
+ /** URL of the user’s profile */
206381
+ profile_url?: string | undefined;
206382
+ /** displayed name of the user */
206383
+ profile_name?: string | undefined;
206384
+ /** current text of the question */
206385
+ question_text?: string | undefined;
206386
+ /** original text of the question */
206387
+ original_question_text?: string | undefined;
206388
+ /** estimated time when the question was posted */
206389
+ time_ago?: string | undefined;
206390
+ /** exact time when the question was posted */
206391
+ timestamp?: string | undefined;
206392
+ /** array of items
206393
+ items within google_business_question_item */
206394
+ items?: any | undefined;
206395
+
206396
+ [key: string]: any;
206397
+
206398
+ constructor(data?: IItemsWithoutAnswers) {
206399
+ if (data) {
206400
+ for (var property in data) {
206401
+ if (data.hasOwnProperty(property))
206402
+ (<any>this)[property] = (<any>data)[property];
206403
+ }
206404
+ }
206405
+ }
206406
+
206407
+ init(_data?: any) {
206408
+ if (_data) {
206409
+ for (var property in _data) {
206410
+ if (_data.hasOwnProperty(property))
206411
+ this[property] = _data[property];
206412
+ }
206413
+ this.type = _data["type"];
206414
+ this.rank_group = _data["rank_group"];
206415
+ this.rank_absolute = _data["rank_absolute"];
206416
+ this.question_id = _data["question_id"];
206417
+ this.url = _data["url"];
206418
+ this.profile_image_url = _data["profile_image_url"];
206419
+ this.profile_url = _data["profile_url"];
206420
+ this.profile_name = _data["profile_name"];
206421
+ this.question_text = _data["question_text"];
206422
+ this.original_question_text = _data["original_question_text"];
206423
+ this.time_ago = _data["time_ago"];
206424
+ this.timestamp = _data["timestamp"];
206425
+ this.items = _data["items"];
206426
+ }
206427
+ }
206428
+
206429
+ static fromJS(data: any): ItemsWithoutAnswers {
206430
+ data = typeof data === 'object' ? data : {};
206431
+ let result = new ItemsWithoutAnswers();
206432
+ result.init(data);
206433
+ return result;
206434
+ }
206435
+
206436
+ toJSON(data?: any) {
206437
+ data = typeof data === 'object' ? data : {};
206438
+ for (var property in this) {
206439
+ if (this.hasOwnProperty(property))
206440
+ data[property] = this[property];
206441
+ }
206442
+ data["type"] = this.type;
206443
+ data["rank_group"] = this.rank_group;
206444
+ data["rank_absolute"] = this.rank_absolute;
206445
+ data["question_id"] = this.question_id;
206446
+ data["url"] = this.url;
206447
+ data["profile_image_url"] = this.profile_image_url;
206448
+ data["profile_url"] = this.profile_url;
206449
+ data["profile_name"] = this.profile_name;
206450
+ data["question_text"] = this.question_text;
206451
+ data["original_question_text"] = this.original_question_text;
206452
+ data["time_ago"] = this.time_ago;
206453
+ data["timestamp"] = this.timestamp;
206454
+ data["items"] = this.items;
206455
+ return data;
206456
+ }
206457
+ }
206458
+
206459
+ export interface IItemsWithoutAnswers {
206460
+ /** type of element */
206461
+ type?: string | undefined;
206462
+ /** position within a group of elements with identical type values
206463
+ positions of elements with different type values are omitted from rank_group */
206464
+ rank_group?: number | undefined;
206465
+ /** absolute rank among all the elements */
206466
+ rank_absolute?: number | undefined;
206467
+ /** ID of the question */
206468
+ question_id?: string | undefined;
206469
+ /** URL of the question */
206470
+ url?: string | undefined;
206471
+ /** URL of the user’s profile image */
206472
+ profile_image_url?: string | undefined;
206473
+ /** URL of the user’s profile */
206474
+ profile_url?: string | undefined;
206475
+ /** displayed name of the user */
206476
+ profile_name?: string | undefined;
206477
+ /** current text of the question */
206478
+ question_text?: string | undefined;
206479
+ /** original text of the question */
206480
+ original_question_text?: string | undefined;
206481
+ /** estimated time when the question was posted */
206482
+ time_ago?: string | undefined;
206483
+ /** exact time when the question was posted */
206484
+ timestamp?: string | undefined;
206485
+ /** array of items
206486
+ items within google_business_question_item */
206487
+ items?: any | undefined;
206488
+
206489
+ [key: string]: any;
206490
+ }
206491
+
206492
+ export class GoogleBusinessAnswerElement implements IGoogleBusinessAnswerElement {
206493
+ /** type of element */
206494
+ type?: string | undefined;
206495
+ /** ID of the answer */
206496
+ answer_id?: string | undefined;
206497
+ /** URL of the user’s profile image */
206498
+ profile_image_url?: string | undefined;
206499
+ /** URL of the user’s profile */
206500
+ profile_url?: string | undefined;
206501
+ /** displayed name of the user */
206502
+ profile_name?: string | undefined;
206503
+ /** current text of the answer */
206504
+ answer_text?: string | undefined;
206505
+ /** original text of the answer */
206506
+ original_answer_text?: string | undefined;
206507
+ /** estimated time when the answer was posted */
206508
+ time_ago?: string | undefined;
206509
+ /** exact time when the answer was posted */
206510
+ timestamp?: string | undefined;
206511
+
206512
+ [key: string]: any;
206513
+
206514
+ constructor(data?: IGoogleBusinessAnswerElement) {
206515
+ if (data) {
206516
+ for (var property in data) {
206517
+ if (data.hasOwnProperty(property))
206518
+ (<any>this)[property] = (<any>data)[property];
206519
+ }
206520
+ }
206521
+ }
206522
+
206523
+ init(_data?: any) {
206524
+ if (_data) {
206525
+ for (var property in _data) {
206526
+ if (_data.hasOwnProperty(property))
206527
+ this[property] = _data[property];
206528
+ }
206529
+ this.type = _data["type"];
206530
+ this.answer_id = _data["answer_id"];
206531
+ this.profile_image_url = _data["profile_image_url"];
206532
+ this.profile_url = _data["profile_url"];
206533
+ this.profile_name = _data["profile_name"];
206534
+ this.answer_text = _data["answer_text"];
206535
+ this.original_answer_text = _data["original_answer_text"];
206536
+ this.time_ago = _data["time_ago"];
206537
+ this.timestamp = _data["timestamp"];
206538
+ }
206539
+ }
206540
+
206541
+ static fromJS(data: any): GoogleBusinessAnswerElement {
206542
+ data = typeof data === 'object' ? data : {};
206543
+ let result = new GoogleBusinessAnswerElement();
206544
+ result.init(data);
206545
+ return result;
206546
+ }
206547
+
206548
+ toJSON(data?: any) {
206549
+ data = typeof data === 'object' ? data : {};
206550
+ for (var property in this) {
206551
+ if (this.hasOwnProperty(property))
206552
+ data[property] = this[property];
206553
+ }
206554
+ data["type"] = this.type;
206555
+ data["answer_id"] = this.answer_id;
206556
+ data["profile_image_url"] = this.profile_image_url;
206557
+ data["profile_url"] = this.profile_url;
206558
+ data["profile_name"] = this.profile_name;
206559
+ data["answer_text"] = this.answer_text;
206560
+ data["original_answer_text"] = this.original_answer_text;
206561
+ data["time_ago"] = this.time_ago;
206562
+ data["timestamp"] = this.timestamp;
206563
+ return data;
206564
+ }
206565
+ }
206566
+
206567
+ export interface IGoogleBusinessAnswerElement {
206568
+ /** type of element */
206569
+ type?: string | undefined;
206570
+ /** ID of the answer */
206571
+ answer_id?: string | undefined;
206572
+ /** URL of the user’s profile image */
206573
+ profile_image_url?: string | undefined;
206574
+ /** URL of the user’s profile */
206575
+ profile_url?: string | undefined;
206576
+ /** displayed name of the user */
206577
+ profile_name?: string | undefined;
206578
+ /** current text of the answer */
206579
+ answer_text?: string | undefined;
206580
+ /** original text of the answer */
206581
+ original_answer_text?: string | undefined;
206582
+ /** estimated time when the answer was posted */
206583
+ time_ago?: string | undefined;
206584
+ /** exact time when the answer was posted */
206585
+ timestamp?: string | undefined;
206586
+
206587
+ [key: string]: any;
206588
+ }
206589
+
206590
+ export class BusinessDataGoogleQuestionsAndAnswersItem implements IBusinessDataGoogleQuestionsAndAnswersItem {
206591
+ /** type of element */
206592
+ type?: string | undefined;
206593
+ /** position within a group of elements with identical type values
206594
+ positions of elements with different type values are omitted from rank_group */
206595
+ rank_group?: number | undefined;
206596
+ /** absolute rank among all the elements */
206597
+ rank_absolute?: number | undefined;
206598
+ /** ID of the question */
206599
+ question_id?: string | undefined;
206600
+ /** URL of the question */
206601
+ url?: string | undefined;
206602
+ /** URL of the user’s profile image */
206603
+ profile_image_url?: string | undefined;
206604
+ /** URL of the user’s profile */
206605
+ profile_url?: string | undefined;
206606
+ /** displayed name of the user */
206607
+ profile_name?: string | undefined;
206608
+ /** current text of the question */
206609
+ question_text?: string | undefined;
206610
+ /** original text of the question */
206611
+ original_question_text?: string | undefined;
206612
+ /** estimated time when the question was posted */
206613
+ time_ago?: string | undefined;
206614
+ /** exact time when the question was posted */
206615
+ timestamp?: string | undefined;
206616
+ /** array of google business question items with answers
206617
+ possible item types: google_business_question_item */
206618
+ items?: (GoogleBusinessAnswerElement | undefined)[] | undefined;
206619
+
206620
+ [key: string]: any;
206621
+
206622
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersItem) {
206623
+ if (data) {
206624
+ for (var property in data) {
206625
+ if (data.hasOwnProperty(property))
206626
+ (<any>this)[property] = (<any>data)[property];
206627
+ }
206628
+ }
206629
+ }
206630
+
206631
+ init(_data?: any) {
206632
+ if (_data) {
206633
+ for (var property in _data) {
206634
+ if (_data.hasOwnProperty(property))
206635
+ this[property] = _data[property];
206636
+ }
206637
+ this.type = _data["type"];
206638
+ this.rank_group = _data["rank_group"];
206639
+ this.rank_absolute = _data["rank_absolute"];
206640
+ this.question_id = _data["question_id"];
206641
+ this.url = _data["url"];
206642
+ this.profile_image_url = _data["profile_image_url"];
206643
+ this.profile_url = _data["profile_url"];
206644
+ this.profile_name = _data["profile_name"];
206645
+ this.question_text = _data["question_text"];
206646
+ this.original_question_text = _data["original_question_text"];
206647
+ this.time_ago = _data["time_ago"];
206648
+ this.timestamp = _data["timestamp"];
206649
+ if (Array.isArray(_data["items"])) {
206650
+ this.items = [] as any;
206651
+ for (let item of _data["items"])
206652
+ this.items!.push(GoogleBusinessAnswerElement.fromJS(item));
206653
+ }
206654
+ }
206655
+ }
206656
+
206657
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersItem {
206658
+ data = typeof data === 'object' ? data : {};
206659
+ let result = new BusinessDataGoogleQuestionsAndAnswersItem();
206660
+ result.init(data);
206661
+ return result;
206662
+ }
206663
+
206664
+ toJSON(data?: any) {
206665
+ data = typeof data === 'object' ? data : {};
206666
+ for (var property in this) {
206667
+ if (this.hasOwnProperty(property))
206668
+ data[property] = this[property];
206669
+ }
206670
+ data["type"] = this.type;
206671
+ data["rank_group"] = this.rank_group;
206672
+ data["rank_absolute"] = this.rank_absolute;
206673
+ data["question_id"] = this.question_id;
206674
+ data["url"] = this.url;
206675
+ data["profile_image_url"] = this.profile_image_url;
206676
+ data["profile_url"] = this.profile_url;
206677
+ data["profile_name"] = this.profile_name;
206678
+ data["question_text"] = this.question_text;
206679
+ data["original_question_text"] = this.original_question_text;
206680
+ data["time_ago"] = this.time_ago;
206681
+ data["timestamp"] = this.timestamp;
206682
+ if (Array.isArray(this.items)) {
206683
+ data["items"] = [];
206684
+ for (let item of this.items)
206685
+ data["items"].push(item.toJSON());
206686
+ }
206687
+ return data;
206688
+ }
206689
+ }
206690
+
206691
+ export interface IBusinessDataGoogleQuestionsAndAnswersItem {
206692
+ /** type of element */
206693
+ type?: string | undefined;
206694
+ /** position within a group of elements with identical type values
206695
+ positions of elements with different type values are omitted from rank_group */
206696
+ rank_group?: number | undefined;
206697
+ /** absolute rank among all the elements */
206698
+ rank_absolute?: number | undefined;
206699
+ /** ID of the question */
206700
+ question_id?: string | undefined;
206701
+ /** URL of the question */
206702
+ url?: string | undefined;
206703
+ /** URL of the user’s profile image */
206704
+ profile_image_url?: string | undefined;
206705
+ /** URL of the user’s profile */
206706
+ profile_url?: string | undefined;
206707
+ /** displayed name of the user */
206708
+ profile_name?: string | undefined;
206709
+ /** current text of the question */
206710
+ question_text?: string | undefined;
206711
+ /** original text of the question */
206712
+ original_question_text?: string | undefined;
206713
+ /** estimated time when the question was posted */
206714
+ time_ago?: string | undefined;
206715
+ /** exact time when the question was posted */
206716
+ timestamp?: string | undefined;
206717
+ /** array of google business question items with answers
206718
+ possible item types: google_business_question_item */
206719
+ items?: (GoogleBusinessAnswerElement | undefined)[] | undefined;
206720
+
206721
+ [key: string]: any;
206722
+ }
206723
+
206724
+ export class BusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo implements IBusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo {
206725
+ /** keyword received in a POST array
206726
+ keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character)
206727
+ this field will contain the cid parameter if you specified it in the keyword field when setting a task;
206728
+ example:
206729
+ cid:2946633002421908862
206730
+ learn more about the parameter in this help center article */
206731
+ keyword?: string | undefined;
206732
+ /** search engine domain as specified in a POST array */
206733
+ se_domain?: string | undefined;
206734
+ /** location code in a POST array */
206735
+ location_code?: number | undefined;
206736
+ /** language code in a POST array */
206737
+ language_code?: string | undefined;
206738
+ /** direct URL to search engine results
206739
+ you can use it to make sure that we provided accurate results */
206740
+ check_url?: string | undefined;
206741
+ /** date and time when the result was received
206742
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
206743
+ example:
206744
+ 2019-11-15 12:57:46 +00:00 */
206745
+ datetime?: string | undefined;
206746
+ /** google-defined client id
206747
+ unique id of a local establishment;
206748
+ learn more about the identifier in this help center article */
206749
+ cid?: string | undefined;
206750
+ /** unique identifier of the SERP feature */
206751
+ feature_id?: string | undefined;
206752
+ /** item types
206753
+ types of search engine results encountered in the items array;
206754
+ possible item types: google_business_question_item */
206755
+ item_types?: (string | undefined)[] | undefined;
206756
+ /** array of google business question items without answers */
206757
+ items_without_answers?: (ItemsWithoutAnswers | undefined)[] | undefined;
206758
+ /** the number of items in the items array */
206759
+ items_count?: number | undefined;
206760
+ /** array of items within google_business_question_item
206761
+ contains answers to the google business questions;
206762
+ the maximum number of answers returned for each question: 5
206763
+ possible item types google_business_answer_element */
206764
+ items?: (BusinessDataGoogleQuestionsAndAnswersItem | undefined)[] | undefined;
206765
+
206766
+ [key: string]: any;
206767
+
206768
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo) {
206769
+ if (data) {
206770
+ for (var property in data) {
206771
+ if (data.hasOwnProperty(property))
206772
+ (<any>this)[property] = (<any>data)[property];
206773
+ }
206774
+ }
206775
+ }
206776
+
206777
+ init(_data?: any) {
206778
+ if (_data) {
206779
+ for (var property in _data) {
206780
+ if (_data.hasOwnProperty(property))
206781
+ this[property] = _data[property];
206782
+ }
206783
+ this.keyword = _data["keyword"];
206784
+ this.se_domain = _data["se_domain"];
206785
+ this.location_code = _data["location_code"];
206786
+ this.language_code = _data["language_code"];
206787
+ this.check_url = _data["check_url"];
206788
+ this.datetime = _data["datetime"];
206789
+ this.cid = _data["cid"];
206790
+ this.feature_id = _data["feature_id"];
206791
+ if (Array.isArray(_data["item_types"])) {
206792
+ this.item_types = [] as any;
206793
+ for (let item of _data["item_types"])
206794
+ this.item_types!.push(item);
206795
+ }
206796
+ if (Array.isArray(_data["items_without_answers"])) {
206797
+ this.items_without_answers = [] as any;
206798
+ for (let item of _data["items_without_answers"])
206799
+ this.items_without_answers!.push(ItemsWithoutAnswers.fromJS(item));
206800
+ }
206801
+ this.items_count = _data["items_count"];
206802
+ if (Array.isArray(_data["items"])) {
206803
+ this.items = [] as any;
206804
+ for (let item of _data["items"])
206805
+ this.items!.push(BusinessDataGoogleQuestionsAndAnswersItem.fromJS(item));
206806
+ }
206807
+ }
206808
+ }
206809
+
206810
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo {
206811
+ data = typeof data === 'object' ? data : {};
206812
+ let result = new BusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo();
206813
+ result.init(data);
206814
+ return result;
206815
+ }
206816
+
206817
+ toJSON(data?: any) {
206818
+ data = typeof data === 'object' ? data : {};
206819
+ for (var property in this) {
206820
+ if (this.hasOwnProperty(property))
206821
+ data[property] = this[property];
206822
+ }
206823
+ data["keyword"] = this.keyword;
206824
+ data["se_domain"] = this.se_domain;
206825
+ data["location_code"] = this.location_code;
206826
+ data["language_code"] = this.language_code;
206827
+ data["check_url"] = this.check_url;
206828
+ data["datetime"] = this.datetime;
206829
+ data["cid"] = this.cid;
206830
+ data["feature_id"] = this.feature_id;
206831
+ if (Array.isArray(this.item_types)) {
206832
+ data["item_types"] = [];
206833
+ for (let item of this.item_types)
206834
+ data["item_types"].push(item);
206835
+ }
206836
+ if (Array.isArray(this.items_without_answers)) {
206837
+ data["items_without_answers"] = [];
206838
+ for (let item of this.items_without_answers)
206839
+ data["items_without_answers"].push(item.toJSON());
206840
+ }
206841
+ data["items_count"] = this.items_count;
206842
+ if (Array.isArray(this.items)) {
206843
+ data["items"] = [];
206844
+ for (let item of this.items)
206845
+ data["items"].push(item.toJSON());
206846
+ }
206847
+ return data;
206848
+ }
206849
+ }
206850
+
206851
+ export interface IBusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo {
206852
+ /** keyword received in a POST array
206853
+ keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character)
206854
+ this field will contain the cid parameter if you specified it in the keyword field when setting a task;
206855
+ example:
206856
+ cid:2946633002421908862
206857
+ learn more about the parameter in this help center article */
206858
+ keyword?: string | undefined;
206859
+ /** search engine domain as specified in a POST array */
206860
+ se_domain?: string | undefined;
206861
+ /** location code in a POST array */
206862
+ location_code?: number | undefined;
206863
+ /** language code in a POST array */
206864
+ language_code?: string | undefined;
206865
+ /** direct URL to search engine results
206866
+ you can use it to make sure that we provided accurate results */
206867
+ check_url?: string | undefined;
206868
+ /** date and time when the result was received
206869
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
206870
+ example:
206871
+ 2019-11-15 12:57:46 +00:00 */
206872
+ datetime?: string | undefined;
206873
+ /** google-defined client id
206874
+ unique id of a local establishment;
206875
+ learn more about the identifier in this help center article */
206876
+ cid?: string | undefined;
206877
+ /** unique identifier of the SERP feature */
206878
+ feature_id?: string | undefined;
206879
+ /** item types
206880
+ types of search engine results encountered in the items array;
206881
+ possible item types: google_business_question_item */
206882
+ item_types?: (string | undefined)[] | undefined;
206883
+ /** array of google business question items without answers */
206884
+ items_without_answers?: (ItemsWithoutAnswers | undefined)[] | undefined;
206885
+ /** the number of items in the items array */
206886
+ items_count?: number | undefined;
206887
+ /** array of items within google_business_question_item
206888
+ contains answers to the google business questions;
206889
+ the maximum number of answers returned for each question: 5
206890
+ possible item types google_business_answer_element */
206891
+ items?: (BusinessDataGoogleQuestionsAndAnswersItem | undefined)[] | undefined;
206892
+
206893
+ [key: string]: any;
206894
+ }
206895
+
206896
+ export class BusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo extends BaseResponseTaskInfo implements IBusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo {
206897
+ /** array of results */
206898
+ result?: (BusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo | undefined)[] | undefined;
206899
+
206900
+ [key: string]: any;
206901
+
206902
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo) {
206903
+ super(data);
206904
+ }
206905
+
206906
+ init(_data?: any) {
206907
+ super.init(_data);
206908
+ if (_data) {
206909
+ for (var property in _data) {
206910
+ if (_data.hasOwnProperty(property))
206911
+ this[property] = _data[property];
206912
+ }
206913
+ if (Array.isArray(_data["result"])) {
206914
+ this.result = [] as any;
206915
+ for (let item of _data["result"])
206916
+ this.result!.push(BusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo.fromJS(item));
206917
+ }
206918
+ }
206919
+ }
206920
+
206921
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo {
206922
+ data = typeof data === 'object' ? data : {};
206923
+ let result = new BusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo();
206924
+ result.init(data);
206925
+ return result;
206926
+ }
206927
+
206928
+ toJSON(data?: any) {
206929
+ data = typeof data === 'object' ? data : {};
206930
+ for (var property in this) {
206931
+ if (this.hasOwnProperty(property))
206932
+ data[property] = this[property];
206933
+ }
206934
+ if (Array.isArray(this.result)) {
206935
+ data["result"] = [];
206936
+ for (let item of this.result)
206937
+ data["result"].push(item.toJSON());
206938
+ }
206939
+ super.toJSON(data);
206940
+ return data;
206941
+ }
206942
+ }
206943
+
206944
+ export interface IBusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo extends IBaseResponseTaskInfo {
206945
+ /** array of results */
206946
+ result?: (BusinessDataGoogleQuestionsAndAnswersTaskGetResultInfo | undefined)[] | undefined;
206947
+
206948
+ [key: string]: any;
206949
+ }
206950
+
206951
+ export class BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo extends BaseResponseInfo implements IBusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo {
206952
+ /** array of tasks */
206953
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo | undefined)[] | undefined;
206954
+
206955
+ [key: string]: any;
206956
+
206957
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo) {
206958
+ super(data);
206959
+ }
206960
+
206961
+ init(_data?: any) {
206962
+ super.init(_data);
206963
+ if (_data) {
206964
+ for (var property in _data) {
206965
+ if (_data.hasOwnProperty(property))
206966
+ this[property] = _data[property];
206967
+ }
206968
+ if (Array.isArray(_data["tasks"])) {
206969
+ this.tasks = [] as any;
206970
+ for (let item of _data["tasks"])
206971
+ this.tasks!.push(BusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo.fromJS(item));
206972
+ }
206973
+ }
206974
+ }
206975
+
206976
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo {
206977
+ data = typeof data === 'object' ? data : {};
206978
+ let result = new BusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo();
206979
+ result.init(data);
206980
+ return result;
206981
+ }
206982
+
206983
+ toJSON(data?: any) {
206984
+ data = typeof data === 'object' ? data : {};
206985
+ for (var property in this) {
206986
+ if (this.hasOwnProperty(property))
206987
+ data[property] = this[property];
206988
+ }
206989
+ if (Array.isArray(this.tasks)) {
206990
+ data["tasks"] = [];
206991
+ for (let item of this.tasks)
206992
+ data["tasks"].push(item.toJSON());
206993
+ }
206994
+ super.toJSON(data);
206995
+ return data;
206996
+ }
206997
+ }
206998
+
206999
+ export interface IBusinessDataGoogleQuestionsAndAnswersTaskGetResponseInfo extends IBaseResponseInfo {
207000
+ /** array of tasks */
207001
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersTaskGetTaskInfo | undefined)[] | undefined;
207002
+
207003
+ [key: string]: any;
207004
+ }
207005
+
207006
+ export class BusinessDataGoogleQuestionsAndAnswersLiveRequestInfo implements IBusinessDataGoogleQuestionsAndAnswersLiveRequestInfo {
207007
+ /** keyword
207008
+ required field
207009
+ the keyword you specify should indicate the name of the local establishment
207010
+ you can specify up to 700 symbols in the keyword filed
207011
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character)
207012
+ if you need to use the “%” symbol for your keyword, please specify it as “%25”;
207013
+ this field can also be used to pass the following parameters:
207014
+ cid – a unique, google-defined id of the business entity;
207015
+ place_id – an identifier of the business entity in Google Maps;
207016
+ spp – a unique identifier of local services featured in the local_pack element of Google SERP
207017
+ example:
207018
+ cid:194604053573767737
207019
+ place_id:GhIJQWDl0CIeQUARxks3icF8U8A
207020
+ spp:CgsvZy8xdGN4cWRraBoUChIJPZDrEzLsZIgRoNrpodC5P30
207021
+ learn more about the cid and place_id identifiers in this help center article */
207022
+ keyword?: string;
207023
+ /** full name of search engine location
207024
+ required field if you don’t specify location_code or location_coordinate
207025
+ if you use this field, you don’t need to specify location_code or location_coordinate
207026
+ you can receive the list of available locations with location_name by making a separate request to https://api.dataforseo.com/v3/business_data/google/locations
207027
+ example:
207028
+ London,England,United Kingdom */
207029
+ location_name?: string | undefined;
207030
+ /** search engine location code
207031
+ required field if you don’t specify location_name or location_coordinate
207032
+ if you use this field, you don’t need to specify location_name or location_coordinate
207033
+ you can receive the list of available locations with location_code by making a separate request to the https://api.dataforseo.com/v3/business_data/google/locations
207034
+ example:
207035
+ 2840 */
207036
+ location_code?: number | undefined;
207037
+ /** GPS coordinates of a location
207038
+ required field if you don’t specify location_name or location_code
207039
+ if you use this field, you don’t need to specify location_name or location_code
207040
+ location_coordinate parameter should be specified in the “latitude,longitude,radius” format
207041
+ the maximum number of decimal digits for “latitude” and “longitude”: 7
207042
+ the minimum value for “radius”: 199.9 (mm)
207043
+ the maximum value for “radius”: 199999 (mm)
207044
+ example:
207045
+ 53.476225,-2.243572,200 */
207046
+ location_coordinate?: string | undefined;
207047
+ /** full name of search engine language
207048
+ required field if you don’t specify language_code
207049
+ if you use this field, you don’t need to specify language_code
207050
+ you can receive the list of available languages with language_name by making a separate request to https://api.dataforseo.com/v3/business_data/google/languages
207051
+ example:
207052
+ English */
207053
+ language_name?: string | undefined;
207054
+ /** search engine language code
207055
+ required field if you don’t specify language_name
207056
+ if you use this field, you don’t need to specify language_name
207057
+ you can receive the list of available languages with their language_code by making a separate request to https://api.dataforseo.com/v3/business_data/google/languages
207058
+ example:
207059
+ en */
207060
+ language_code?: string | undefined;
207061
+ /** parsing depth
207062
+ optional field
207063
+ number of results in SERP
207064
+ default value: 20
207065
+ max value: 100
207066
+ Note: your account will be billed per each SERP containing up to 20 results;
207067
+ thus, setting a depth above 20 may result in additional charges if the search engine returns more than 20 results;
207068
+ if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance */
207069
+ depth?: number | undefined;
207070
+ /** user-defined task identifier
207071
+ optional field
207072
+ the character limit is 255
207073
+ you can use this parameter to identify the task and match it with the result
207074
+ you will find the specified tag value in the data object of the response */
207075
+ tag?: string | undefined;
207076
+
207077
+ [key: string]: any;
207078
+
207079
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersLiveRequestInfo) {
207080
+ if (data) {
207081
+ for (var property in data) {
207082
+ if (data.hasOwnProperty(property))
207083
+ (<any>this)[property] = (<any>data)[property];
207084
+ }
207085
+ }
207086
+ }
207087
+
207088
+ init(_data?: any) {
207089
+ if (_data) {
207090
+ for (var property in _data) {
207091
+ if (_data.hasOwnProperty(property))
207092
+ this[property] = _data[property];
207093
+ }
207094
+ this.keyword = _data["keyword"];
207095
+ this.location_name = _data["location_name"];
207096
+ this.location_code = _data["location_code"];
207097
+ this.location_coordinate = _data["location_coordinate"];
207098
+ this.language_name = _data["language_name"];
207099
+ this.language_code = _data["language_code"];
207100
+ this.depth = _data["depth"];
207101
+ this.tag = _data["tag"];
207102
+ }
207103
+ }
207104
+
207105
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersLiveRequestInfo {
207106
+ data = typeof data === 'object' ? data : {};
207107
+ let result = new BusinessDataGoogleQuestionsAndAnswersLiveRequestInfo();
207108
+ result.init(data);
207109
+ return result;
207110
+ }
207111
+
207112
+ toJSON(data?: any) {
207113
+ data = typeof data === 'object' ? data : {};
207114
+ for (var property in this) {
207115
+ if (this.hasOwnProperty(property))
207116
+ data[property] = this[property];
207117
+ }
207118
+ data["keyword"] = this.keyword;
207119
+ data["location_name"] = this.location_name;
207120
+ data["location_code"] = this.location_code;
207121
+ data["location_coordinate"] = this.location_coordinate;
207122
+ data["language_name"] = this.language_name;
207123
+ data["language_code"] = this.language_code;
207124
+ data["depth"] = this.depth;
207125
+ data["tag"] = this.tag;
207126
+ return data;
207127
+ }
207128
+ }
207129
+
207130
+ export interface IBusinessDataGoogleQuestionsAndAnswersLiveRequestInfo {
207131
+ /** keyword
207132
+ required field
207133
+ the keyword you specify should indicate the name of the local establishment
207134
+ you can specify up to 700 symbols in the keyword filed
207135
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character)
207136
+ if you need to use the “%” symbol for your keyword, please specify it as “%25”;
207137
+ this field can also be used to pass the following parameters:
207138
+ cid – a unique, google-defined id of the business entity;
207139
+ place_id – an identifier of the business entity in Google Maps;
207140
+ spp – a unique identifier of local services featured in the local_pack element of Google SERP
207141
+ example:
207142
+ cid:194604053573767737
207143
+ place_id:GhIJQWDl0CIeQUARxks3icF8U8A
207144
+ spp:CgsvZy8xdGN4cWRraBoUChIJPZDrEzLsZIgRoNrpodC5P30
207145
+ learn more about the cid and place_id identifiers in this help center article */
207146
+ keyword?: string;
207147
+ /** full name of search engine location
207148
+ required field if you don’t specify location_code or location_coordinate
207149
+ if you use this field, you don’t need to specify location_code or location_coordinate
207150
+ you can receive the list of available locations with location_name by making a separate request to https://api.dataforseo.com/v3/business_data/google/locations
207151
+ example:
207152
+ London,England,United Kingdom */
207153
+ location_name?: string | undefined;
207154
+ /** search engine location code
207155
+ required field if you don’t specify location_name or location_coordinate
207156
+ if you use this field, you don’t need to specify location_name or location_coordinate
207157
+ you can receive the list of available locations with location_code by making a separate request to the https://api.dataforseo.com/v3/business_data/google/locations
207158
+ example:
207159
+ 2840 */
207160
+ location_code?: number | undefined;
207161
+ /** GPS coordinates of a location
207162
+ required field if you don’t specify location_name or location_code
207163
+ if you use this field, you don’t need to specify location_name or location_code
207164
+ location_coordinate parameter should be specified in the “latitude,longitude,radius” format
207165
+ the maximum number of decimal digits for “latitude” and “longitude”: 7
207166
+ the minimum value for “radius”: 199.9 (mm)
207167
+ the maximum value for “radius”: 199999 (mm)
207168
+ example:
207169
+ 53.476225,-2.243572,200 */
207170
+ location_coordinate?: string | undefined;
207171
+ /** full name of search engine language
207172
+ required field if you don’t specify language_code
207173
+ if you use this field, you don’t need to specify language_code
207174
+ you can receive the list of available languages with language_name by making a separate request to https://api.dataforseo.com/v3/business_data/google/languages
207175
+ example:
207176
+ English */
207177
+ language_name?: string | undefined;
207178
+ /** search engine language code
207179
+ required field if you don’t specify language_name
207180
+ if you use this field, you don’t need to specify language_name
207181
+ you can receive the list of available languages with their language_code by making a separate request to https://api.dataforseo.com/v3/business_data/google/languages
207182
+ example:
207183
+ en */
207184
+ language_code?: string | undefined;
207185
+ /** parsing depth
207186
+ optional field
207187
+ number of results in SERP
207188
+ default value: 20
207189
+ max value: 100
207190
+ Note: your account will be billed per each SERP containing up to 20 results;
207191
+ thus, setting a depth above 20 may result in additional charges if the search engine returns more than 20 results;
207192
+ if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance */
207193
+ depth?: number | undefined;
207194
+ /** user-defined task identifier
207195
+ optional field
207196
+ the character limit is 255
207197
+ you can use this parameter to identify the task and match it with the result
207198
+ you will find the specified tag value in the data object of the response */
207199
+ tag?: string | undefined;
207200
+
207201
+ [key: string]: any;
207202
+ }
207203
+
207204
+ export class BusinessDataGoogleQuestionsAndAnswersLiveResultInfo implements IBusinessDataGoogleQuestionsAndAnswersLiveResultInfo {
207205
+ /** keyword received in a POST array
207206
+ keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character)
207207
+ this field will contain the cid parameter if you specified it in the keyword field when setting a task;
207208
+ example:
207209
+ cid:2946633002421908862
207210
+ learn more about the parameter in this help center article */
207211
+ keyword?: string | undefined;
207212
+ /** search engine domain as specified in a POST array */
207213
+ se_domain?: string | undefined;
207214
+ /** location code in a POST array */
207215
+ location_code?: number | undefined;
207216
+ /** language code in a POST array */
207217
+ language_code?: string | undefined;
207218
+ /** direct URL to search engine results
207219
+ you can use it to make sure that we provided accurate results */
207220
+ check_url?: string | undefined;
207221
+ /** date and time when the result was received
207222
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
207223
+ example:
207224
+ 2019-11-15 12:57:46 +00:00 */
207225
+ datetime?: string | undefined;
207226
+ /** google-defined client id
207227
+ unique id of a local establishment;
207228
+ learn more about the identifier in this help center article */
207229
+ cid?: string | undefined;
207230
+ /** unique identifier of the SERP feature */
207231
+ feature_id?: string | undefined;
207232
+ /** item types
207233
+ types of search engine results encountered in the items array;
207234
+ possible item types: google_business_question_item */
207235
+ item_types?: (string | undefined)[] | undefined;
207236
+ /** array of google business question items without answers */
207237
+ items_without_answers?: (ItemsWithoutAnswers | undefined)[] | undefined;
207238
+ /** the number of items in the items array */
207239
+ items_count?: number | undefined;
207240
+ /** array of items within google_business_question_item
207241
+ contains answers to the google business questions;
207242
+ possible item types google_business_answer_element */
207243
+ items?: (BusinessDataGoogleQuestionsAndAnswersItem | undefined)[] | undefined;
207244
+
207245
+ [key: string]: any;
207246
+
207247
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersLiveResultInfo) {
207248
+ if (data) {
207249
+ for (var property in data) {
207250
+ if (data.hasOwnProperty(property))
207251
+ (<any>this)[property] = (<any>data)[property];
207252
+ }
207253
+ }
207254
+ }
207255
+
207256
+ init(_data?: any) {
207257
+ if (_data) {
207258
+ for (var property in _data) {
207259
+ if (_data.hasOwnProperty(property))
207260
+ this[property] = _data[property];
207261
+ }
207262
+ this.keyword = _data["keyword"];
207263
+ this.se_domain = _data["se_domain"];
207264
+ this.location_code = _data["location_code"];
207265
+ this.language_code = _data["language_code"];
207266
+ this.check_url = _data["check_url"];
207267
+ this.datetime = _data["datetime"];
207268
+ this.cid = _data["cid"];
207269
+ this.feature_id = _data["feature_id"];
207270
+ if (Array.isArray(_data["item_types"])) {
207271
+ this.item_types = [] as any;
207272
+ for (let item of _data["item_types"])
207273
+ this.item_types!.push(item);
207274
+ }
207275
+ if (Array.isArray(_data["items_without_answers"])) {
207276
+ this.items_without_answers = [] as any;
207277
+ for (let item of _data["items_without_answers"])
207278
+ this.items_without_answers!.push(ItemsWithoutAnswers.fromJS(item));
207279
+ }
207280
+ this.items_count = _data["items_count"];
207281
+ if (Array.isArray(_data["items"])) {
207282
+ this.items = [] as any;
207283
+ for (let item of _data["items"])
207284
+ this.items!.push(BusinessDataGoogleQuestionsAndAnswersItem.fromJS(item));
207285
+ }
207286
+ }
207287
+ }
207288
+
207289
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersLiveResultInfo {
207290
+ data = typeof data === 'object' ? data : {};
207291
+ let result = new BusinessDataGoogleQuestionsAndAnswersLiveResultInfo();
207292
+ result.init(data);
207293
+ return result;
207294
+ }
207295
+
207296
+ toJSON(data?: any) {
207297
+ data = typeof data === 'object' ? data : {};
207298
+ for (var property in this) {
207299
+ if (this.hasOwnProperty(property))
207300
+ data[property] = this[property];
207301
+ }
207302
+ data["keyword"] = this.keyword;
207303
+ data["se_domain"] = this.se_domain;
207304
+ data["location_code"] = this.location_code;
207305
+ data["language_code"] = this.language_code;
207306
+ data["check_url"] = this.check_url;
207307
+ data["datetime"] = this.datetime;
207308
+ data["cid"] = this.cid;
207309
+ data["feature_id"] = this.feature_id;
207310
+ if (Array.isArray(this.item_types)) {
207311
+ data["item_types"] = [];
207312
+ for (let item of this.item_types)
207313
+ data["item_types"].push(item);
207314
+ }
207315
+ if (Array.isArray(this.items_without_answers)) {
207316
+ data["items_without_answers"] = [];
207317
+ for (let item of this.items_without_answers)
207318
+ data["items_without_answers"].push(item.toJSON());
207319
+ }
207320
+ data["items_count"] = this.items_count;
207321
+ if (Array.isArray(this.items)) {
207322
+ data["items"] = [];
207323
+ for (let item of this.items)
207324
+ data["items"].push(item.toJSON());
207325
+ }
207326
+ return data;
207327
+ }
207328
+ }
207329
+
207330
+ export interface IBusinessDataGoogleQuestionsAndAnswersLiveResultInfo {
207331
+ /** keyword received in a POST array
207332
+ keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character)
207333
+ this field will contain the cid parameter if you specified it in the keyword field when setting a task;
207334
+ example:
207335
+ cid:2946633002421908862
207336
+ learn more about the parameter in this help center article */
207337
+ keyword?: string | undefined;
207338
+ /** search engine domain as specified in a POST array */
207339
+ se_domain?: string | undefined;
207340
+ /** location code in a POST array */
207341
+ location_code?: number | undefined;
207342
+ /** language code in a POST array */
207343
+ language_code?: string | undefined;
207344
+ /** direct URL to search engine results
207345
+ you can use it to make sure that we provided accurate results */
207346
+ check_url?: string | undefined;
207347
+ /** date and time when the result was received
207348
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
207349
+ example:
207350
+ 2019-11-15 12:57:46 +00:00 */
207351
+ datetime?: string | undefined;
207352
+ /** google-defined client id
207353
+ unique id of a local establishment;
207354
+ learn more about the identifier in this help center article */
207355
+ cid?: string | undefined;
207356
+ /** unique identifier of the SERP feature */
207357
+ feature_id?: string | undefined;
207358
+ /** item types
207359
+ types of search engine results encountered in the items array;
207360
+ possible item types: google_business_question_item */
207361
+ item_types?: (string | undefined)[] | undefined;
207362
+ /** array of google business question items without answers */
207363
+ items_without_answers?: (ItemsWithoutAnswers | undefined)[] | undefined;
207364
+ /** the number of items in the items array */
207365
+ items_count?: number | undefined;
207366
+ /** array of items within google_business_question_item
207367
+ contains answers to the google business questions;
207368
+ possible item types google_business_answer_element */
207369
+ items?: (BusinessDataGoogleQuestionsAndAnswersItem | undefined)[] | undefined;
207370
+
207371
+ [key: string]: any;
207372
+ }
207373
+
207374
+ export class BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo extends BaseResponseTaskInfo implements IBusinessDataGoogleQuestionsAndAnswersLiveTaskInfo {
207375
+ /** array of results */
207376
+ result?: (BusinessDataGoogleQuestionsAndAnswersLiveResultInfo | undefined)[] | undefined;
207377
+
207378
+ [key: string]: any;
207379
+
207380
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersLiveTaskInfo) {
207381
+ super(data);
207382
+ }
207383
+
207384
+ init(_data?: any) {
207385
+ super.init(_data);
207386
+ if (_data) {
207387
+ for (var property in _data) {
207388
+ if (_data.hasOwnProperty(property))
207389
+ this[property] = _data[property];
207390
+ }
207391
+ if (Array.isArray(_data["result"])) {
207392
+ this.result = [] as any;
207393
+ for (let item of _data["result"])
207394
+ this.result!.push(BusinessDataGoogleQuestionsAndAnswersLiveResultInfo.fromJS(item));
207395
+ }
207396
+ }
207397
+ }
207398
+
207399
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo {
207400
+ data = typeof data === 'object' ? data : {};
207401
+ let result = new BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo();
207402
+ result.init(data);
207403
+ return result;
207404
+ }
207405
+
207406
+ toJSON(data?: any) {
207407
+ data = typeof data === 'object' ? data : {};
207408
+ for (var property in this) {
207409
+ if (this.hasOwnProperty(property))
207410
+ data[property] = this[property];
207411
+ }
207412
+ if (Array.isArray(this.result)) {
207413
+ data["result"] = [];
207414
+ for (let item of this.result)
207415
+ data["result"].push(item.toJSON());
207416
+ }
207417
+ super.toJSON(data);
207418
+ return data;
207419
+ }
207420
+ }
207421
+
207422
+ export interface IBusinessDataGoogleQuestionsAndAnswersLiveTaskInfo extends IBaseResponseTaskInfo {
207423
+ /** array of results */
207424
+ result?: (BusinessDataGoogleQuestionsAndAnswersLiveResultInfo | undefined)[] | undefined;
207425
+
207426
+ [key: string]: any;
207427
+ }
207428
+
207429
+ export class BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo extends BaseResponseInfo implements IBusinessDataGoogleQuestionsAndAnswersLiveResponseInfo {
207430
+ /** array of tasks */
207431
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo | undefined)[] | undefined;
207432
+
207433
+ [key: string]: any;
207434
+
207435
+ constructor(data?: IBusinessDataGoogleQuestionsAndAnswersLiveResponseInfo) {
207436
+ super(data);
207437
+ }
207438
+
207439
+ init(_data?: any) {
207440
+ super.init(_data);
207441
+ if (_data) {
207442
+ for (var property in _data) {
207443
+ if (_data.hasOwnProperty(property))
207444
+ this[property] = _data[property];
207445
+ }
207446
+ if (Array.isArray(_data["tasks"])) {
207447
+ this.tasks = [] as any;
207448
+ for (let item of _data["tasks"])
207449
+ this.tasks!.push(BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo.fromJS(item));
207450
+ }
207451
+ }
207452
+ }
207453
+
207454
+ static fromJS(data: any): BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo {
207455
+ data = typeof data === 'object' ? data : {};
207456
+ let result = new BusinessDataGoogleQuestionsAndAnswersLiveResponseInfo();
207457
+ result.init(data);
207458
+ return result;
207459
+ }
207460
+
207461
+ toJSON(data?: any) {
207462
+ data = typeof data === 'object' ? data : {};
207463
+ for (var property in this) {
207464
+ if (this.hasOwnProperty(property))
207465
+ data[property] = this[property];
207466
+ }
207467
+ if (Array.isArray(this.tasks)) {
207468
+ data["tasks"] = [];
207469
+ for (let item of this.tasks)
207470
+ data["tasks"].push(item.toJSON());
207471
+ }
207472
+ super.toJSON(data);
207473
+ return data;
207474
+ }
207475
+ }
207476
+
207477
+ export interface IBusinessDataGoogleQuestionsAndAnswersLiveResponseInfo extends IBaseResponseInfo {
207478
+ /** array of tasks */
207479
+ tasks?: (BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo | undefined)[] | undefined;
207480
+
207481
+ [key: string]: any;
207482
+ }
207483
+
207484
+ export class BusinessDataTrustpilotSearchTaskPostRequestInfo implements IBusinessDataTrustpilotSearchTaskPostRequestInfo {
207485
+ /** keyword
207486
+ required field
207487
+ the keyword you specify should indicate a business category or company name;
207488
+ you can specify up to 700 symbols in the keyword filed;
207489
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character);
207490
+ if you need to use the “%” symbol for your keyword, please specify it as “%25” */
207491
+ keyword?: string;
207492
+ /** task priority
207493
+ optional field
207494
+ can take the following values:
207495
+ 1 – normal execution priority (set by default)
207496
+ 2 – high execution priority
207497
+ You will be additionally charged for the tasks with high execution priority.
207498
+ The cost can be calculated on the Pricing page. */
207499
+ priority?: number | undefined;
207500
+ /** parsing depth
207501
+ optional field
207502
+ number of search results to be returned from the API response
207503
+ we strongly recommend setting the parsing depth in the multiples of twenty because our systems processes twenty search results in a row;
207504
+ default value: 10;
207505
+ maximum value: 140
207506
+ Note: your account will be charged for every 10 search results returned, e.g. if you specify depth: 11, you will be charged as per 20 search results */
207507
+ depth?: number | undefined;
207508
+ /** user-defined task identifier
207509
+ optional field
207510
+ the character limit is 255
207511
+ you can use this parameter to identify the task and match it with the result
207512
+ you will find the specified tag value in the data object of the response */
207513
+ tag?: string | undefined;
207514
+ /** return URL for sending task results
207515
+ optional field
207516
+ once the task is completed, we will send a POST request with its results compressed in the gzip format to the postback_url you specified
207517
+ you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
207518
+ example:
207519
+ http://your-server.com/postbackscript?id=$id
207520
+ http://your-server.com/postbackscript?id=$id&tag=$tag
207521
+ Note: special symbols in postback_url will be urlencoded;
207522
+ i.a., the # symbol will be encoded into %23 */
207523
+ postback_url?: string | undefined;
207524
+ /** notification URL of a completed task
207525
+ optional field
207526
+ when a task is completed we will notify you by GET request sent to the URL you have specified
207527
+ you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
207528
+ example:
207529
+ http://your-server.com/pingscript?id=$id
207530
+ http://your-server.com/pingscript?id=$id&tag=$tag
207531
+ Note: special symbols in pingback_url will be urlencoded;
207532
+ i.a., the # symbol will be encoded into %23 */
207533
+ pingback_url?: string | undefined;
207534
+
207535
+ [key: string]: any;
207536
+
207537
+ constructor(data?: IBusinessDataTrustpilotSearchTaskPostRequestInfo) {
207538
+ if (data) {
207539
+ for (var property in data) {
207540
+ if (data.hasOwnProperty(property))
207541
+ (<any>this)[property] = (<any>data)[property];
207542
+ }
207543
+ }
207544
+ }
207545
+
207546
+ init(_data?: any) {
207547
+ if (_data) {
207548
+ for (var property in _data) {
207549
+ if (_data.hasOwnProperty(property))
207550
+ this[property] = _data[property];
207551
+ }
207552
+ this.keyword = _data["keyword"];
207553
+ this.priority = _data["priority"];
207554
+ this.depth = _data["depth"];
207555
+ this.tag = _data["tag"];
207556
+ this.postback_url = _data["postback_url"];
207557
+ this.pingback_url = _data["pingback_url"];
207558
+ }
207559
+ }
207560
+
207561
+ static fromJS(data: any): BusinessDataTrustpilotSearchTaskPostRequestInfo {
207562
+ data = typeof data === 'object' ? data : {};
207563
+ let result = new BusinessDataTrustpilotSearchTaskPostRequestInfo();
207564
+ result.init(data);
207565
+ return result;
207566
+ }
207567
+
207568
+ toJSON(data?: any) {
207569
+ data = typeof data === 'object' ? data : {};
207570
+ for (var property in this) {
207571
+ if (this.hasOwnProperty(property))
207572
+ data[property] = this[property];
207573
+ }
207574
+ data["keyword"] = this.keyword;
207575
+ data["priority"] = this.priority;
207576
+ data["depth"] = this.depth;
207577
+ data["tag"] = this.tag;
207578
+ data["postback_url"] = this.postback_url;
207579
+ data["pingback_url"] = this.pingback_url;
207580
+ return data;
207581
+ }
207582
+ }
207583
+
207584
+ export interface IBusinessDataTrustpilotSearchTaskPostRequestInfo {
207585
+ /** keyword
207586
+ required field
207587
+ the keyword you specify should indicate a business category or company name;
207588
+ you can specify up to 700 symbols in the keyword filed;
207589
+ all %## will be decoded (plus symbol ‘+’ will be decoded to a space character);
207590
+ if you need to use the “%” symbol for your keyword, please specify it as “%25” */
207591
+ keyword?: string;
207592
+ /** task priority
207593
+ optional field
207594
+ can take the following values:
207595
+ 1 – normal execution priority (set by default)
207596
+ 2 – high execution priority
207597
+ You will be additionally charged for the tasks with high execution priority.
207598
+ The cost can be calculated on the Pricing page. */
207599
+ priority?: number | undefined;
207600
+ /** parsing depth
207601
+ optional field
207602
+ number of search results to be returned from the API response
207603
+ we strongly recommend setting the parsing depth in the multiples of twenty because our systems processes twenty search results in a row;
207604
+ default value: 10;
207605
+ maximum value: 140
207606
+ Note: your account will be charged for every 10 search results returned, e.g. if you specify depth: 11, you will be charged as per 20 search results */
207607
+ depth?: number | undefined;
207608
+ /** user-defined task identifier
207609
+ optional field
207610
+ the character limit is 255
207611
+ you can use this parameter to identify the task and match it with the result
207612
+ you will find the specified tag value in the data object of the response */
207613
+ tag?: string | undefined;
207614
+ /** return URL for sending task results
207615
+ optional field
207616
+ once the task is completed, we will send a POST request with its results compressed in the gzip format to the postback_url you specified
207617
+ you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
207618
+ example:
207619
+ http://your-server.com/postbackscript?id=$id
207620
+ http://your-server.com/postbackscript?id=$id&tag=$tag
207621
+ Note: special symbols in postback_url will be urlencoded;
207622
+ i.a., the # symbol will be encoded into %23 */
207623
+ postback_url?: string | undefined;
207624
+ /** notification URL of a completed task
207625
+ optional field
207626
+ when a task is completed we will notify you by GET request sent to the URL you have specified
207627
+ you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.
207628
+ example:
207629
+ http://your-server.com/pingscript?id=$id
207630
+ http://your-server.com/pingscript?id=$id&tag=$tag
207631
+ Note: special symbols in pingback_url will be urlencoded;
207632
+ i.a., the # symbol will be encoded into %23 */
207633
+ pingback_url?: string | undefined;
207634
+
207635
+ [key: string]: any;
207636
+ }
207637
+
207638
+ export class BusinessDataTrustpilotSearchTaskPostTaskInfo extends BaseResponseTaskInfo implements IBusinessDataTrustpilotSearchTaskPostTaskInfo {
207639
+ /** array of results
207640
+ in this case, the value will be null */
207641
+ result?: any | undefined;
207642
+
207643
+ [key: string]: any;
207644
+
207645
+ constructor(data?: IBusinessDataTrustpilotSearchTaskPostTaskInfo) {
207646
+ super(data);
207647
+ }
207648
+
207649
+ init(_data?: any) {
207650
+ super.init(_data);
207651
+ if (_data) {
207652
+ for (var property in _data) {
207653
+ if (_data.hasOwnProperty(property))
207654
+ this[property] = _data[property];
207655
+ }
207656
+ this.result = _data["result"];
207657
+ }
207658
+ }
207659
+
207660
+ static fromJS(data: any): BusinessDataTrustpilotSearchTaskPostTaskInfo {
207661
+ data = typeof data === 'object' ? data : {};
207662
+ let result = new BusinessDataTrustpilotSearchTaskPostTaskInfo();
207663
+ result.init(data);
207664
+ return result;
207665
+ }
207666
+
207667
+ toJSON(data?: any) {
207668
+ data = typeof data === 'object' ? data : {};
207669
+ for (var property in this) {
207670
+ if (this.hasOwnProperty(property))
207671
+ data[property] = this[property];
207672
+ }
207673
+ data["result"] = this.result;
207674
+ super.toJSON(data);
207675
+ return data;
207676
+ }
207677
+ }
207678
+
207679
+ export interface IBusinessDataTrustpilotSearchTaskPostTaskInfo extends IBaseResponseTaskInfo {
207680
+ /** array of results
207681
+ in this case, the value will be null */
207682
+ result?: any | undefined;
207683
+
207684
+ [key: string]: any;
207685
+ }
207686
+
207687
+ export class BusinessDataTrustpilotSearchTaskPostResponseInfo extends BaseResponseInfo implements IBusinessDataTrustpilotSearchTaskPostResponseInfo {
207688
+ /** array of tasks */
207689
+ tasks?: (BusinessDataTrustpilotSearchTaskPostTaskInfo | undefined)[] | undefined;
207690
+
207691
+ [key: string]: any;
207692
+
207693
+ constructor(data?: IBusinessDataTrustpilotSearchTaskPostResponseInfo) {
207694
+ super(data);
207695
+ }
207696
+
207697
+ init(_data?: any) {
207698
+ super.init(_data);
207699
+ if (_data) {
207700
+ for (var property in _data) {
207701
+ if (_data.hasOwnProperty(property))
207702
+ this[property] = _data[property];
207703
+ }
207704
+ if (Array.isArray(_data["tasks"])) {
207705
+ this.tasks = [] as any;
207706
+ for (let item of _data["tasks"])
207707
+ this.tasks!.push(BusinessDataTrustpilotSearchTaskPostTaskInfo.fromJS(item));
207708
+ }
207709
+ }
207710
+ }
207711
+
207712
+ static fromJS(data: any): BusinessDataTrustpilotSearchTaskPostResponseInfo {
207713
+ data = typeof data === 'object' ? data : {};
207714
+ let result = new BusinessDataTrustpilotSearchTaskPostResponseInfo();
207715
+ result.init(data);
207716
+ return result;
207717
+ }
207718
+
207719
+ toJSON(data?: any) {
207720
+ data = typeof data === 'object' ? data : {};
207721
+ for (var property in this) {
207722
+ if (this.hasOwnProperty(property))
207723
+ data[property] = this[property];
207724
+ }
207725
+ if (Array.isArray(this.tasks)) {
207726
+ data["tasks"] = [];
207727
+ for (let item of this.tasks)
207728
+ data["tasks"].push(item.toJSON());
207729
+ }
207730
+ super.toJSON(data);
207731
+ return data;
207732
+ }
207733
+ }
207734
+
207735
+ export interface IBusinessDataTrustpilotSearchTaskPostResponseInfo extends IBaseResponseInfo {
207736
+ /** array of tasks */
207737
+ tasks?: (BusinessDataTrustpilotSearchTaskPostTaskInfo | undefined)[] | undefined;
207738
+
207739
+ [key: string]: any;
207740
+ }
207741
+
207742
+ export class BusinessDataTrustpilotSearchTasksReadyResultInfo implements IBusinessDataTrustpilotSearchTasksReadyResultInfo {
207743
+ /** task identifier of the completed task
207744
+ unique task identifier in our system in the UUID format */
207745
+ id?: string | undefined;
207746
+ /** search engine specified when setting the task
207747
+ can take the following values: trustpilot */
207748
+ se?: string | undefined;
207749
+ /** date when the task was posted (in the UTC format) */
207750
+ date_posted?: string | undefined;
207751
+ /** user-defined task identifier */
207752
+ tag?: string | undefined;
207753
+ /** URL for collecting the results of the task */
207754
+ endpoint?: string | undefined;
207755
+
207756
+ [key: string]: any;
207757
+
207758
+ constructor(data?: IBusinessDataTrustpilotSearchTasksReadyResultInfo) {
205410
207759
  if (data) {
205411
207760
  for (var property in data) {
205412
207761
  if (data.hasOwnProperty(property))
@@ -214338,6 +216687,7 @@ export class AppendixBusinessDataGoogleInfo implements IAppendixBusinessDataGoog
214338
216687
  hotel_info?: AppendixSerpLimitsRatesDataInfo | undefined;
214339
216688
  hotel_searches?: AppendixFunctionInfo | undefined;
214340
216689
  reviews?: AppendixFunctionInfo | undefined;
216690
+ questions_and_answers?: AppendixFunctionInfo | undefined;
214341
216691
 
214342
216692
  [key: string]: any;
214343
216693
 
@@ -214361,6 +216711,7 @@ export class AppendixBusinessDataGoogleInfo implements IAppendixBusinessDataGoog
214361
216711
  this.hotel_info = _data["hotel_info"] ? AppendixSerpLimitsRatesDataInfo.fromJS(_data["hotel_info"]) : <any>undefined;
214362
216712
  this.hotel_searches = _data["hotel_searches"] ? AppendixFunctionInfo.fromJS(_data["hotel_searches"]) : <any>undefined;
214363
216713
  this.reviews = _data["reviews"] ? AppendixFunctionInfo.fromJS(_data["reviews"]) : <any>undefined;
216714
+ this.questions_and_answers = _data["questions_and_answers"] ? AppendixFunctionInfo.fromJS(_data["questions_and_answers"]) : <any>undefined;
214364
216715
  }
214365
216716
  }
214366
216717
 
@@ -214382,6 +216733,7 @@ export class AppendixBusinessDataGoogleInfo implements IAppendixBusinessDataGoog
214382
216733
  data["hotel_info"] = this.hotel_info ? this.hotel_info.toJSON() : <any>undefined;
214383
216734
  data["hotel_searches"] = this.hotel_searches ? this.hotel_searches.toJSON() : <any>undefined;
214384
216735
  data["reviews"] = this.reviews ? this.reviews.toJSON() : <any>undefined;
216736
+ data["questions_and_answers"] = this.questions_and_answers ? this.questions_and_answers.toJSON() : <any>undefined;
214385
216737
  return data;
214386
216738
  }
214387
216739
  }
@@ -214392,6 +216744,7 @@ export interface IAppendixBusinessDataGoogleInfo {
214392
216744
  hotel_info?: AppendixSerpLimitsRatesDataInfo | undefined;
214393
216745
  hotel_searches?: AppendixFunctionInfo | undefined;
214394
216746
  reviews?: AppendixFunctionInfo | undefined;
216747
+ questions_and_answers?: AppendixFunctionInfo | undefined;
214395
216748
 
214396
216749
  [key: string]: any;
214397
216750
  }
@@ -217151,9 +219504,9 @@ export interface IAppendixMerchantPriceData {
217151
219504
  }
217152
219505
 
217153
219506
  export class AppendixSerpPriceDataInfo implements IAppendixSerpPriceDataInfo {
219507
+ regular?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217154
219508
  advanced?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217155
219509
  html?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217156
- regular?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217157
219510
 
217158
219511
  [key: string]: any;
217159
219512
 
@@ -217172,9 +219525,9 @@ export class AppendixSerpPriceDataInfo implements IAppendixSerpPriceDataInfo {
217172
219525
  if (_data.hasOwnProperty(property))
217173
219526
  this[property] = _data[property];
217174
219527
  }
219528
+ this.regular = _data["regular"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["regular"]) : <any>undefined;
217175
219529
  this.advanced = _data["advanced"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["advanced"]) : <any>undefined;
217176
219530
  this.html = _data["html"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["html"]) : <any>undefined;
217177
- this.regular = _data["regular"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["regular"]) : <any>undefined;
217178
219531
  }
217179
219532
  }
217180
219533
 
@@ -217191,17 +219544,17 @@ export class AppendixSerpPriceDataInfo implements IAppendixSerpPriceDataInfo {
217191
219544
  if (this.hasOwnProperty(property))
217192
219545
  data[property] = this[property];
217193
219546
  }
219547
+ data["regular"] = this.regular ? this.regular.toJSON() : <any>undefined;
217194
219548
  data["advanced"] = this.advanced ? this.advanced.toJSON() : <any>undefined;
217195
219549
  data["html"] = this.html ? this.html.toJSON() : <any>undefined;
217196
- data["regular"] = this.regular ? this.regular.toJSON() : <any>undefined;
217197
219550
  return data;
217198
219551
  }
217199
219552
  }
217200
219553
 
217201
219554
  export interface IAppendixSerpPriceDataInfo {
219555
+ regular?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217202
219556
  advanced?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217203
219557
  html?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217204
- regular?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217205
219558
 
217206
219559
  [key: string]: any;
217207
219560
  }
@@ -217722,7 +220075,7 @@ export interface IAppendixHotelInfoGoogleBusinessDataPriceData {
217722
220075
  [key: string]: any;
217723
220076
  }
217724
220077
 
217725
- export class AppendixHotelSearchesGoogleBusinessDataPriceData implements IAppendixHotelSearchesGoogleBusinessDataPriceData {
220078
+ export class AppendixsGoogleBusinessDataPriceDataInfo implements IAppendixsGoogleBusinessDataPriceDataInfo {
217726
220079
  live?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217727
220080
  task_get?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217728
220081
  task_post?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
@@ -217730,7 +220083,7 @@ export class AppendixHotelSearchesGoogleBusinessDataPriceData implements IAppend
217730
220083
 
217731
220084
  [key: string]: any;
217732
220085
 
217733
- constructor(data?: IAppendixHotelSearchesGoogleBusinessDataPriceData) {
220086
+ constructor(data?: IAppendixsGoogleBusinessDataPriceDataInfo) {
217734
220087
  if (data) {
217735
220088
  for (var property in data) {
217736
220089
  if (data.hasOwnProperty(property))
@@ -217752,9 +220105,9 @@ export class AppendixHotelSearchesGoogleBusinessDataPriceData implements IAppend
217752
220105
  }
217753
220106
  }
217754
220107
 
217755
- static fromJS(data: any): AppendixHotelSearchesGoogleBusinessDataPriceData {
220108
+ static fromJS(data: any): AppendixsGoogleBusinessDataPriceDataInfo {
217756
220109
  data = typeof data === 'object' ? data : {};
217757
- let result = new AppendixHotelSearchesGoogleBusinessDataPriceData();
220110
+ let result = new AppendixsGoogleBusinessDataPriceDataInfo();
217758
220111
  result.init(data);
217759
220112
  return result;
217760
220113
  }
@@ -217773,7 +220126,7 @@ export class AppendixHotelSearchesGoogleBusinessDataPriceData implements IAppend
217773
220126
  }
217774
220127
  }
217775
220128
 
217776
- export interface IAppendixHotelSearchesGoogleBusinessDataPriceData {
220129
+ export interface IAppendixsGoogleBusinessDataPriceDataInfo {
217777
220130
  live?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217778
220131
  task_get?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
217779
220132
  task_post?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
@@ -217784,10 +220137,11 @@ export interface IAppendixHotelSearchesGoogleBusinessDataPriceData {
217784
220137
 
217785
220138
  export class AppendixGoogleBusinessDataPriceData implements IAppendixGoogleBusinessDataPriceData {
217786
220139
  hotel_info?: AppendixHotelInfoGoogleBusinessDataPriceData | undefined;
217787
- hotel_searches?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217788
- my_business_info?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217789
- my_business_updates?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217790
- reviews?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
220140
+ hotel_searches?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220141
+ my_business_info?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220142
+ my_business_updates?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220143
+ questions_and_answers?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220144
+ reviews?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
217791
220145
 
217792
220146
  [key: string]: any;
217793
220147
 
@@ -217807,10 +220161,11 @@ export class AppendixGoogleBusinessDataPriceData implements IAppendixGoogleBusin
217807
220161
  this[property] = _data[property];
217808
220162
  }
217809
220163
  this.hotel_info = _data["hotel_info"] ? AppendixHotelInfoGoogleBusinessDataPriceData.fromJS(_data["hotel_info"]) : <any>undefined;
217810
- this.hotel_searches = _data["hotel_searches"] ? AppendixHotelSearchesGoogleBusinessDataPriceData.fromJS(_data["hotel_searches"]) : <any>undefined;
217811
- this.my_business_info = _data["my_business_info"] ? AppendixHotelSearchesGoogleBusinessDataPriceData.fromJS(_data["my_business_info"]) : <any>undefined;
217812
- this.my_business_updates = _data["my_business_updates"] ? AppendixHotelSearchesGoogleBusinessDataPriceData.fromJS(_data["my_business_updates"]) : <any>undefined;
217813
- this.reviews = _data["reviews"] ? AppendixHotelSearchesGoogleBusinessDataPriceData.fromJS(_data["reviews"]) : <any>undefined;
220164
+ this.hotel_searches = _data["hotel_searches"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["hotel_searches"]) : <any>undefined;
220165
+ this.my_business_info = _data["my_business_info"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["my_business_info"]) : <any>undefined;
220166
+ this.my_business_updates = _data["my_business_updates"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["my_business_updates"]) : <any>undefined;
220167
+ this.questions_and_answers = _data["questions_and_answers"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["questions_and_answers"]) : <any>undefined;
220168
+ this.reviews = _data["reviews"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["reviews"]) : <any>undefined;
217814
220169
  }
217815
220170
  }
217816
220171
 
@@ -217831,6 +220186,7 @@ export class AppendixGoogleBusinessDataPriceData implements IAppendixGoogleBusin
217831
220186
  data["hotel_searches"] = this.hotel_searches ? this.hotel_searches.toJSON() : <any>undefined;
217832
220187
  data["my_business_info"] = this.my_business_info ? this.my_business_info.toJSON() : <any>undefined;
217833
220188
  data["my_business_updates"] = this.my_business_updates ? this.my_business_updates.toJSON() : <any>undefined;
220189
+ data["questions_and_answers"] = this.questions_and_answers ? this.questions_and_answers.toJSON() : <any>undefined;
217834
220190
  data["reviews"] = this.reviews ? this.reviews.toJSON() : <any>undefined;
217835
220191
  return data;
217836
220192
  }
@@ -217838,17 +220194,18 @@ export class AppendixGoogleBusinessDataPriceData implements IAppendixGoogleBusin
217838
220194
 
217839
220195
  export interface IAppendixGoogleBusinessDataPriceData {
217840
220196
  hotel_info?: AppendixHotelInfoGoogleBusinessDataPriceData | undefined;
217841
- hotel_searches?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217842
- my_business_info?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217843
- my_business_updates?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217844
- reviews?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
220197
+ hotel_searches?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220198
+ my_business_info?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220199
+ my_business_updates?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220200
+ questions_and_answers?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220201
+ reviews?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
217845
220202
 
217846
220203
  [key: string]: any;
217847
220204
  }
217848
220205
 
217849
220206
  export class AppendixTrBusinessDataPriceDataInfo implements IAppendixTrBusinessDataPriceDataInfo {
217850
- reviews?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217851
- search?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
220207
+ reviews?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220208
+ search?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
217852
220209
 
217853
220210
  [key: string]: any;
217854
220211
 
@@ -217867,8 +220224,8 @@ export class AppendixTrBusinessDataPriceDataInfo implements IAppendixTrBusinessD
217867
220224
  if (_data.hasOwnProperty(property))
217868
220225
  this[property] = _data[property];
217869
220226
  }
217870
- this.reviews = _data["reviews"] ? AppendixHotelSearchesGoogleBusinessDataPriceData.fromJS(_data["reviews"]) : <any>undefined;
217871
- this.search = _data["search"] ? AppendixHotelSearchesGoogleBusinessDataPriceData.fromJS(_data["search"]) : <any>undefined;
220227
+ this.reviews = _data["reviews"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["reviews"]) : <any>undefined;
220228
+ this.search = _data["search"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["search"]) : <any>undefined;
217872
220229
  }
217873
220230
  }
217874
220231
 
@@ -217892,8 +220249,8 @@ export class AppendixTrBusinessDataPriceDataInfo implements IAppendixTrBusinessD
217892
220249
  }
217893
220250
 
217894
220251
  export interface IAppendixTrBusinessDataPriceDataInfo {
217895
- reviews?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
217896
- search?: AppendixHotelSearchesGoogleBusinessDataPriceData | undefined;
220252
+ reviews?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
220253
+ search?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
217897
220254
 
217898
220255
  [key: string]: any;
217899
220256
  }
@@ -218554,69 +220911,9 @@ export interface IAppendixDomainAnalyticsPriceData {
218554
220911
  [key: string]: any;
218555
220912
  }
218556
220913
 
218557
- export class AppendixLighthouseOnPagePriceData implements IAppendixLighthouseOnPagePriceData {
218558
- live?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218559
- task_get?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218560
- task_post?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218561
- tasks_ready?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218562
-
218563
- [key: string]: any;
218564
-
218565
- constructor(data?: IAppendixLighthouseOnPagePriceData) {
218566
- if (data) {
218567
- for (var property in data) {
218568
- if (data.hasOwnProperty(property))
218569
- (<any>this)[property] = (<any>data)[property];
218570
- }
218571
- }
218572
- }
218573
-
218574
- init(_data?: any) {
218575
- if (_data) {
218576
- for (var property in _data) {
218577
- if (_data.hasOwnProperty(property))
218578
- this[property] = _data[property];
218579
- }
218580
- this.live = _data["live"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["live"]) : <any>undefined;
218581
- this.task_get = _data["task_get"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["task_get"]) : <any>undefined;
218582
- this.task_post = _data["task_post"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["task_post"]) : <any>undefined;
218583
- this.tasks_ready = _data["tasks_ready"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["tasks_ready"]) : <any>undefined;
218584
- }
218585
- }
218586
-
218587
- static fromJS(data: any): AppendixLighthouseOnPagePriceData {
218588
- data = typeof data === 'object' ? data : {};
218589
- let result = new AppendixLighthouseOnPagePriceData();
218590
- result.init(data);
218591
- return result;
218592
- }
218593
-
218594
- toJSON(data?: any) {
218595
- data = typeof data === 'object' ? data : {};
218596
- for (var property in this) {
218597
- if (this.hasOwnProperty(property))
218598
- data[property] = this[property];
218599
- }
218600
- data["live"] = this.live ? this.live.toJSON() : <any>undefined;
218601
- data["task_get"] = this.task_get ? this.task_get.toJSON() : <any>undefined;
218602
- data["task_post"] = this.task_post ? this.task_post.toJSON() : <any>undefined;
218603
- data["tasks_ready"] = this.tasks_ready ? this.tasks_ready.toJSON() : <any>undefined;
218604
- return data;
218605
- }
218606
- }
218607
-
218608
- export interface IAppendixLighthouseOnPagePriceData {
218609
- live?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218610
- task_get?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218611
- task_post?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218612
- tasks_ready?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218613
-
218614
- [key: string]: any;
218615
- }
218616
-
218617
220914
  export class AppendixOnPagePriceData implements IAppendixOnPagePriceData {
218618
220915
  errors?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218619
- lighthouse?: AppendixLighthouseOnPagePriceData | undefined;
220916
+ lighthouse?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
218620
220917
  content_parsing?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218621
220918
  content_parsing_live?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218622
220919
  duplicate_content?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
@@ -218654,7 +220951,7 @@ export class AppendixOnPagePriceData implements IAppendixOnPagePriceData {
218654
220951
  this[property] = _data[property];
218655
220952
  }
218656
220953
  this.errors = _data["errors"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["errors"]) : <any>undefined;
218657
- this.lighthouse = _data["lighthouse"] ? AppendixLighthouseOnPagePriceData.fromJS(_data["lighthouse"]) : <any>undefined;
220954
+ this.lighthouse = _data["lighthouse"] ? AppendixsGoogleBusinessDataPriceDataInfo.fromJS(_data["lighthouse"]) : <any>undefined;
218658
220955
  this.content_parsing = _data["content_parsing"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["content_parsing"]) : <any>undefined;
218659
220956
  this.content_parsing_live = _data["content_parsing_live"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["content_parsing_live"]) : <any>undefined;
218660
220957
  this.duplicate_content = _data["duplicate_content"] ? AppendixTaskKeywordsDataPriceDataInfo.fromJS(_data["duplicate_content"]) : <any>undefined;
@@ -218715,7 +221012,7 @@ export class AppendixOnPagePriceData implements IAppendixOnPagePriceData {
218715
221012
 
218716
221013
  export interface IAppendixOnPagePriceData {
218717
221014
  errors?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218718
- lighthouse?: AppendixLighthouseOnPagePriceData | undefined;
221015
+ lighthouse?: AppendixsGoogleBusinessDataPriceDataInfo | undefined;
218719
221016
  content_parsing?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218720
221017
  content_parsing_live?: AppendixTaskKeywordsDataPriceDataInfo | undefined;
218721
221018
  duplicate_content?: AppendixTaskKeywordsDataPriceDataInfo | undefined;