dataforseo-client 1.0.9 → 1.0.11
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.
- package/main.d.ts +258 -188
- package/main.js +284 -202
- package/main.js.map +1 -1
- package/main.ts +651 -501
- package/package.json +1 -1
package/main.ts
CHANGED
|
@@ -32853,6 +32853,10 @@ export class PopularProductsElement implements IPopularProductsElement {
|
|
|
32853
32853
|
title?: string | undefined;
|
|
32854
32854
|
/** description */
|
|
32855
32855
|
description?: string | undefined;
|
|
32856
|
+
/** seller of the product */
|
|
32857
|
+
seller?: string | undefined;
|
|
32858
|
+
/** URL of the image */
|
|
32859
|
+
image_url?: string | undefined;
|
|
32856
32860
|
/** price indicated in the element */
|
|
32857
32861
|
price?: PriceInfo | undefined;
|
|
32858
32862
|
/** the item’s rating
|
|
@@ -32879,6 +32883,8 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
32879
32883
|
this.type = _data["type"];
|
|
32880
32884
|
this.title = _data["title"];
|
|
32881
32885
|
this.description = _data["description"];
|
|
32886
|
+
this.seller = _data["seller"];
|
|
32887
|
+
this.image_url = _data["image_url"];
|
|
32882
32888
|
this.price = _data["price"] ? PriceInfo.fromJS(_data["price"]) : <any>undefined;
|
|
32883
32889
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
32884
32890
|
}
|
|
@@ -32900,6 +32906,8 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
32900
32906
|
data["type"] = this.type;
|
|
32901
32907
|
data["title"] = this.title;
|
|
32902
32908
|
data["description"] = this.description;
|
|
32909
|
+
data["seller"] = this.seller;
|
|
32910
|
+
data["image_url"] = this.image_url;
|
|
32903
32911
|
data["price"] = this.price ? this.price.toJSON() : <any>undefined;
|
|
32904
32912
|
data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
|
|
32905
32913
|
return data;
|
|
@@ -32913,6 +32921,10 @@ export interface IPopularProductsElement {
|
|
|
32913
32921
|
title?: string | undefined;
|
|
32914
32922
|
/** description */
|
|
32915
32923
|
description?: string | undefined;
|
|
32924
|
+
/** seller of the product */
|
|
32925
|
+
seller?: string | undefined;
|
|
32926
|
+
/** URL of the image */
|
|
32927
|
+
image_url?: string | undefined;
|
|
32916
32928
|
/** price indicated in the element */
|
|
32917
32929
|
price?: PriceInfo | undefined;
|
|
32918
32930
|
/** the item’s rating
|
|
@@ -32938,6 +32950,8 @@ left, right */
|
|
|
32938
32950
|
position?: string | undefined;
|
|
32939
32951
|
/** the XPath of the element */
|
|
32940
32952
|
xpath?: string | undefined;
|
|
32953
|
+
/** title of the row */
|
|
32954
|
+
title?: string | undefined;
|
|
32941
32955
|
/** additional items present in the element
|
|
32942
32956
|
if there are none, equals null */
|
|
32943
32957
|
items?: (PopularProductsElement | undefined)[] | undefined;
|
|
@@ -32964,6 +32978,7 @@ equals null if calculate_rectangles in the POST request is not set to true */
|
|
|
32964
32978
|
this.rank_absolute = _data["rank_absolute"];
|
|
32965
32979
|
this.position = _data["position"];
|
|
32966
32980
|
this.xpath = _data["xpath"];
|
|
32981
|
+
this.title = _data["title"];
|
|
32967
32982
|
if (Array.isArray(_data["items"])) {
|
|
32968
32983
|
this.items = [] as any;
|
|
32969
32984
|
for (let item of _data["items"])
|
|
@@ -32990,6 +33005,7 @@ equals null if calculate_rectangles in the POST request is not set to true */
|
|
|
32990
33005
|
data["rank_absolute"] = this.rank_absolute;
|
|
32991
33006
|
data["position"] = this.position;
|
|
32992
33007
|
data["xpath"] = this.xpath;
|
|
33008
|
+
data["title"] = this.title;
|
|
32993
33009
|
if (Array.isArray(this.items)) {
|
|
32994
33010
|
data["items"] = [];
|
|
32995
33011
|
for (let item of this.items)
|
|
@@ -33017,6 +33033,8 @@ left, right */
|
|
|
33017
33033
|
position?: string | undefined;
|
|
33018
33034
|
/** the XPath of the element */
|
|
33019
33035
|
xpath?: string | undefined;
|
|
33036
|
+
/** title of the row */
|
|
33037
|
+
title?: string | undefined;
|
|
33020
33038
|
/** additional items present in the element
|
|
33021
33039
|
if there are none, equals null */
|
|
33022
33040
|
items?: (PopularProductsElement | undefined)[] | undefined;
|
|
@@ -57612,7 +57630,8 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
|
|
|
57612
57630
|
se_results_count?: number | undefined;
|
|
57613
57631
|
/** the number of results returned in the items array */
|
|
57614
57632
|
items_count?: number | undefined;
|
|
57615
|
-
/** items
|
|
57633
|
+
/** additional items present in the element
|
|
57634
|
+
if there are none, equals null */
|
|
57616
57635
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
57617
57636
|
|
|
57618
57637
|
[key: string]: any;
|
|
@@ -57724,7 +57743,8 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
|
|
|
57724
57743
|
se_results_count?: number | undefined;
|
|
57725
57744
|
/** the number of results returned in the items array */
|
|
57726
57745
|
items_count?: number | undefined;
|
|
57727
|
-
/** items
|
|
57746
|
+
/** additional items present in the element
|
|
57747
|
+
if there are none, equals null */
|
|
57728
57748
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
57729
57749
|
|
|
57730
57750
|
[key: string]: any;
|
|
@@ -88736,124 +88756,6 @@ you will find the specified tag value in the data object of the response */
|
|
|
88736
88756
|
[key: string]: any;
|
|
88737
88757
|
}
|
|
88738
88758
|
|
|
88739
|
-
export class KeywordData implements IKeywordData {
|
|
88740
|
-
/** search engine type */
|
|
88741
|
-
se_type?: string | undefined;
|
|
88742
|
-
/** returned keyword */
|
|
88743
|
-
keyword?: string | undefined;
|
|
88744
|
-
/** location code in a POST array */
|
|
88745
|
-
location_code?: number | undefined;
|
|
88746
|
-
/** language code in a POST array */
|
|
88747
|
-
language_code?: string | undefined;
|
|
88748
|
-
/** keyword data for the returned keyword */
|
|
88749
|
-
keyword_info?: KeywordInfo | undefined;
|
|
88750
|
-
/** additional information about the keyword */
|
|
88751
|
-
keyword_properties?: KeywordProperties | undefined;
|
|
88752
|
-
/** impressions data for the returned keyword idea
|
|
88753
|
-
Note that all data in the impressions_info object is deprecated and provided only as legacy to avoid maintenance issues
|
|
88754
|
-
daily_impressions values provide a more accurate alternative to Google search volume data;
|
|
88755
|
-
the 999 bid is used to mitigate account-specific factors Google considers when calculating impressions
|
|
88756
|
-
learn more about impressions in this help center article */
|
|
88757
|
-
impressions_info?: ImpressionsInfo | undefined;
|
|
88758
|
-
/** SERP data
|
|
88759
|
-
the value will be null if you didn’t set the field include_serp_info to true in the POST array or if there is no SERP data for this keyword in our database */
|
|
88760
|
-
serp_info?: SerpInfo | undefined;
|
|
88761
|
-
/** backlink data for the returned keyword
|
|
88762
|
-
this object provides the average number of backlinks, referring pages and domains, as well as the average rank values among the top-10 websites ranking organically for the keyword */
|
|
88763
|
-
avg_backlinks_info?: AvgBacklinksInfo | undefined;
|
|
88764
|
-
/** search intent info for the returned keyword
|
|
88765
|
-
learn about search intent in this help center article */
|
|
88766
|
-
search_intent_info?: SearchIntentInfo | undefined;
|
|
88767
|
-
|
|
88768
|
-
[key: string]: any;
|
|
88769
|
-
|
|
88770
|
-
constructor(data?: IKeywordData) {
|
|
88771
|
-
if (data) {
|
|
88772
|
-
for (var property in data) {
|
|
88773
|
-
if (data.hasOwnProperty(property))
|
|
88774
|
-
(<any>this)[property] = (<any>data)[property];
|
|
88775
|
-
}
|
|
88776
|
-
}
|
|
88777
|
-
}
|
|
88778
|
-
|
|
88779
|
-
init(_data?: any) {
|
|
88780
|
-
if (_data) {
|
|
88781
|
-
for (var property in _data) {
|
|
88782
|
-
if (_data.hasOwnProperty(property))
|
|
88783
|
-
this[property] = _data[property];
|
|
88784
|
-
}
|
|
88785
|
-
this.se_type = _data["se_type"];
|
|
88786
|
-
this.keyword = _data["keyword"];
|
|
88787
|
-
this.location_code = _data["location_code"];
|
|
88788
|
-
this.language_code = _data["language_code"];
|
|
88789
|
-
this.keyword_info = _data["keyword_info"] ? KeywordInfo.fromJS(_data["keyword_info"]) : <any>undefined;
|
|
88790
|
-
this.keyword_properties = _data["keyword_properties"] ? KeywordProperties.fromJS(_data["keyword_properties"]) : <any>undefined;
|
|
88791
|
-
this.impressions_info = _data["impressions_info"] ? ImpressionsInfo.fromJS(_data["impressions_info"]) : <any>undefined;
|
|
88792
|
-
this.serp_info = _data["serp_info"] ? SerpInfo.fromJS(_data["serp_info"]) : <any>undefined;
|
|
88793
|
-
this.avg_backlinks_info = _data["avg_backlinks_info"] ? AvgBacklinksInfo.fromJS(_data["avg_backlinks_info"]) : <any>undefined;
|
|
88794
|
-
this.search_intent_info = _data["search_intent_info"] ? SearchIntentInfo.fromJS(_data["search_intent_info"]) : <any>undefined;
|
|
88795
|
-
}
|
|
88796
|
-
}
|
|
88797
|
-
|
|
88798
|
-
static fromJS(data: any): KeywordData {
|
|
88799
|
-
data = typeof data === 'object' ? data : {};
|
|
88800
|
-
let result = new KeywordData();
|
|
88801
|
-
result.init(data);
|
|
88802
|
-
return result;
|
|
88803
|
-
}
|
|
88804
|
-
|
|
88805
|
-
toJSON(data?: any) {
|
|
88806
|
-
data = typeof data === 'object' ? data : {};
|
|
88807
|
-
for (var property in this) {
|
|
88808
|
-
if (this.hasOwnProperty(property))
|
|
88809
|
-
data[property] = this[property];
|
|
88810
|
-
}
|
|
88811
|
-
data["se_type"] = this.se_type;
|
|
88812
|
-
data["keyword"] = this.keyword;
|
|
88813
|
-
data["location_code"] = this.location_code;
|
|
88814
|
-
data["language_code"] = this.language_code;
|
|
88815
|
-
data["keyword_info"] = this.keyword_info ? this.keyword_info.toJSON() : <any>undefined;
|
|
88816
|
-
data["keyword_properties"] = this.keyword_properties ? this.keyword_properties.toJSON() : <any>undefined;
|
|
88817
|
-
data["impressions_info"] = this.impressions_info ? this.impressions_info.toJSON() : <any>undefined;
|
|
88818
|
-
data["serp_info"] = this.serp_info ? this.serp_info.toJSON() : <any>undefined;
|
|
88819
|
-
data["avg_backlinks_info"] = this.avg_backlinks_info ? this.avg_backlinks_info.toJSON() : <any>undefined;
|
|
88820
|
-
data["search_intent_info"] = this.search_intent_info ? this.search_intent_info.toJSON() : <any>undefined;
|
|
88821
|
-
return data;
|
|
88822
|
-
}
|
|
88823
|
-
}
|
|
88824
|
-
|
|
88825
|
-
export interface IKeywordData {
|
|
88826
|
-
/** search engine type */
|
|
88827
|
-
se_type?: string | undefined;
|
|
88828
|
-
/** returned keyword */
|
|
88829
|
-
keyword?: string | undefined;
|
|
88830
|
-
/** location code in a POST array */
|
|
88831
|
-
location_code?: number | undefined;
|
|
88832
|
-
/** language code in a POST array */
|
|
88833
|
-
language_code?: string | undefined;
|
|
88834
|
-
/** keyword data for the returned keyword */
|
|
88835
|
-
keyword_info?: KeywordInfo | undefined;
|
|
88836
|
-
/** additional information about the keyword */
|
|
88837
|
-
keyword_properties?: KeywordProperties | undefined;
|
|
88838
|
-
/** impressions data for the returned keyword idea
|
|
88839
|
-
Note that all data in the impressions_info object is deprecated and provided only as legacy to avoid maintenance issues
|
|
88840
|
-
daily_impressions values provide a more accurate alternative to Google search volume data;
|
|
88841
|
-
the 999 bid is used to mitigate account-specific factors Google considers when calculating impressions
|
|
88842
|
-
learn more about impressions in this help center article */
|
|
88843
|
-
impressions_info?: ImpressionsInfo | undefined;
|
|
88844
|
-
/** SERP data
|
|
88845
|
-
the value will be null if you didn’t set the field include_serp_info to true in the POST array or if there is no SERP data for this keyword in our database */
|
|
88846
|
-
serp_info?: SerpInfo | undefined;
|
|
88847
|
-
/** backlink data for the returned keyword
|
|
88848
|
-
this object provides the average number of backlinks, referring pages and domains, as well as the average rank values among the top-10 websites ranking organically for the keyword */
|
|
88849
|
-
avg_backlinks_info?: AvgBacklinksInfo | undefined;
|
|
88850
|
-
/** search intent info for the returned keyword
|
|
88851
|
-
learn about search intent in this help center article */
|
|
88852
|
-
search_intent_info?: SearchIntentInfo | undefined;
|
|
88853
|
-
|
|
88854
|
-
[key: string]: any;
|
|
88855
|
-
}
|
|
88856
|
-
|
|
88857
88759
|
export class RankChanges implements IRankChanges {
|
|
88858
88760
|
/** previous absolute rank in SERP
|
|
88859
88761
|
indicates previous rank of the element in Google SERP;
|
|
@@ -89046,11 +88948,11 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
89046
88948
|
/** sitelinks
|
|
89047
88949
|
the links shown below some of Google’s search results
|
|
89048
88950
|
if there are none, equals null */
|
|
89049
|
-
links?:
|
|
88951
|
+
links?: any | undefined;
|
|
89050
88952
|
/** contains information from the ‘About this result’ panel
|
|
89051
88953
|
‘About this result’ panel provides additional context about why Google returned this result for the given query;
|
|
89052
88954
|
this feature appears after clicking on the three dots next to most results */
|
|
89053
|
-
about_this_result?:
|
|
88955
|
+
about_this_result?: any | undefined;
|
|
89054
88956
|
/** primary domain name in SERP */
|
|
89055
88957
|
main_domain?: string | undefined;
|
|
89056
88958
|
/** URL in SERP that does not specify the HTTPs protocol and domain name */
|
|
@@ -89115,12 +89017,8 @@ contains information about the ranking changes of the SERP element since the pre
|
|
|
89115
89017
|
for (let item of _data["highlighted"])
|
|
89116
89018
|
this.highlighted!.push(item);
|
|
89117
89019
|
}
|
|
89118
|
-
|
|
89119
|
-
|
|
89120
|
-
for (let item of _data["links"])
|
|
89121
|
-
this.links!.push(LinkElement.fromJS(item));
|
|
89122
|
-
}
|
|
89123
|
-
this.about_this_result = _data["about_this_result"] ? AboutThisResultElement.fromJS(_data["about_this_result"]) : <any>undefined;
|
|
89020
|
+
this.links = _data["links"];
|
|
89021
|
+
this.about_this_result = _data["about_this_result"];
|
|
89124
89022
|
this.main_domain = _data["main_domain"];
|
|
89125
89023
|
this.relative_url = _data["relative_url"];
|
|
89126
89024
|
this.etv = _data["etv"];
|
|
@@ -89169,12 +89067,8 @@ contains information about the ranking changes of the SERP element since the pre
|
|
|
89169
89067
|
for (let item of this.highlighted)
|
|
89170
89068
|
data["highlighted"].push(item);
|
|
89171
89069
|
}
|
|
89172
|
-
|
|
89173
|
-
|
|
89174
|
-
for (let item of this.links)
|
|
89175
|
-
data["links"].push(item.toJSON());
|
|
89176
|
-
}
|
|
89177
|
-
data["about_this_result"] = this.about_this_result ? this.about_this_result.toJSON() : <any>undefined;
|
|
89070
|
+
data["links"] = this.links;
|
|
89071
|
+
data["about_this_result"] = this.about_this_result;
|
|
89178
89072
|
data["main_domain"] = this.main_domain;
|
|
89179
89073
|
data["relative_url"] = this.relative_url;
|
|
89180
89074
|
data["etv"] = this.etv;
|
|
@@ -89238,11 +89132,11 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
89238
89132
|
/** sitelinks
|
|
89239
89133
|
the links shown below some of Google’s search results
|
|
89240
89134
|
if there are none, equals null */
|
|
89241
|
-
links?:
|
|
89135
|
+
links?: any | undefined;
|
|
89242
89136
|
/** contains information from the ‘About this result’ panel
|
|
89243
89137
|
‘About this result’ panel provides additional context about why Google returned this result for the given query;
|
|
89244
89138
|
this feature appears after clicking on the three dots next to most results */
|
|
89245
|
-
about_this_result?:
|
|
89139
|
+
about_this_result?: any | undefined;
|
|
89246
89140
|
/** primary domain name in SERP */
|
|
89247
89141
|
main_domain?: string | undefined;
|
|
89248
89142
|
/** URL in SERP that does not specify the HTTPs protocol and domain name */
|
|
@@ -89414,7 +89308,7 @@ export class DataforseoLabsGoogleRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
89414
89308
|
/** search engine type */
|
|
89415
89309
|
se_type?: string | undefined;
|
|
89416
89310
|
/** keyword data for the returned keyword */
|
|
89417
|
-
keyword_data?:
|
|
89311
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
89418
89312
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
89419
89313
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
89420
89314
|
|
|
@@ -89436,7 +89330,7 @@ export class DataforseoLabsGoogleRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
89436
89330
|
this[property] = _data[property];
|
|
89437
89331
|
}
|
|
89438
89332
|
this.se_type = _data["se_type"];
|
|
89439
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
89333
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
89440
89334
|
this.ranked_serp_element = _data["ranked_serp_element"] ? RankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
89441
89335
|
}
|
|
89442
89336
|
}
|
|
@@ -89465,7 +89359,7 @@ export interface IDataforseoLabsGoogleRankedKeywordsLiveItem {
|
|
|
89465
89359
|
/** search engine type */
|
|
89466
89360
|
se_type?: string | undefined;
|
|
89467
89361
|
/** keyword data for the returned keyword */
|
|
89468
|
-
keyword_data?:
|
|
89362
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
89469
89363
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
89470
89364
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
89471
89365
|
|
|
@@ -91406,11 +91300,11 @@ you will find the specified tag value in the data object of the response */
|
|
|
91406
91300
|
[key: string]: any;
|
|
91407
91301
|
}
|
|
91408
91302
|
|
|
91409
|
-
export class
|
|
91303
|
+
export class DataforseoLabsGoogleDomainIntersectionLiveItem implements IDataforseoLabsGoogleDomainIntersectionLiveItem {
|
|
91410
91304
|
/** search engine type */
|
|
91411
91305
|
se_type?: string | undefined;
|
|
91412
91306
|
/** keyword data for the returned keyword */
|
|
91413
|
-
keyword_data?:
|
|
91307
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
91414
91308
|
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
91415
91309
|
the list of supported SERP elements can be found below */
|
|
91416
91310
|
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
@@ -91420,7 +91314,7 @@ the list of supported SERP elements can be found below */
|
|
|
91420
91314
|
|
|
91421
91315
|
[key: string]: any;
|
|
91422
91316
|
|
|
91423
|
-
constructor(data?:
|
|
91317
|
+
constructor(data?: IDataforseoLabsGoogleDomainIntersectionLiveItem) {
|
|
91424
91318
|
if (data) {
|
|
91425
91319
|
for (var property in data) {
|
|
91426
91320
|
if (data.hasOwnProperty(property))
|
|
@@ -91436,15 +91330,15 @@ the list of supported SERP elements can be found below */
|
|
|
91436
91330
|
this[property] = _data[property];
|
|
91437
91331
|
}
|
|
91438
91332
|
this.se_type = _data["se_type"];
|
|
91439
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
91333
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
91440
91334
|
this.first_domain_serp_element = _data["first_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["first_domain_serp_element"]) : <any>undefined;
|
|
91441
91335
|
this.second_domain_serp_element = _data["second_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["second_domain_serp_element"]) : <any>undefined;
|
|
91442
91336
|
}
|
|
91443
91337
|
}
|
|
91444
91338
|
|
|
91445
|
-
static fromJS(data: any):
|
|
91339
|
+
static fromJS(data: any): DataforseoLabsGoogleDomainIntersectionLiveItem {
|
|
91446
91340
|
data = typeof data === 'object' ? data : {};
|
|
91447
|
-
let result = new
|
|
91341
|
+
let result = new DataforseoLabsGoogleDomainIntersectionLiveItem();
|
|
91448
91342
|
result.init(data);
|
|
91449
91343
|
return result;
|
|
91450
91344
|
}
|
|
@@ -91463,11 +91357,11 @@ the list of supported SERP elements can be found below */
|
|
|
91463
91357
|
}
|
|
91464
91358
|
}
|
|
91465
91359
|
|
|
91466
|
-
export interface
|
|
91360
|
+
export interface IDataforseoLabsGoogleDomainIntersectionLiveItem {
|
|
91467
91361
|
/** search engine type */
|
|
91468
91362
|
se_type?: string | undefined;
|
|
91469
91363
|
/** keyword data for the returned keyword */
|
|
91470
|
-
keyword_data?:
|
|
91364
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
91471
91365
|
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
91472
91366
|
the list of supported SERP elements can be found below */
|
|
91473
91367
|
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
@@ -91494,7 +91388,7 @@ export class DataforseoLabsGoogleDomainIntersectionLiveResultInfo implements IDa
|
|
|
91494
91388
|
/** the number of results returned in the items array */
|
|
91495
91389
|
items_count?: number | undefined;
|
|
91496
91390
|
/** contains keywords, relevant SERP elements and related data */
|
|
91497
|
-
items?: (
|
|
91391
|
+
items?: (DataforseoLabsGoogleDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
91498
91392
|
|
|
91499
91393
|
[key: string]: any;
|
|
91500
91394
|
|
|
@@ -91523,7 +91417,7 @@ export class DataforseoLabsGoogleDomainIntersectionLiveResultInfo implements IDa
|
|
|
91523
91417
|
if (Array.isArray(_data["items"])) {
|
|
91524
91418
|
this.items = [] as any;
|
|
91525
91419
|
for (let item of _data["items"])
|
|
91526
|
-
this.items!.push(
|
|
91420
|
+
this.items!.push(DataforseoLabsGoogleDomainIntersectionLiveItem.fromJS(item));
|
|
91527
91421
|
}
|
|
91528
91422
|
}
|
|
91529
91423
|
}
|
|
@@ -91573,7 +91467,7 @@ export interface IDataforseoLabsGoogleDomainIntersectionLiveResultInfo {
|
|
|
91573
91467
|
/** the number of results returned in the items array */
|
|
91574
91468
|
items_count?: number | undefined;
|
|
91575
91469
|
/** contains keywords, relevant SERP elements and related data */
|
|
91576
|
-
items?: (
|
|
91470
|
+
items?: (DataforseoLabsGoogleDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
91577
91471
|
|
|
91578
91472
|
[key: string]: any;
|
|
91579
91473
|
}
|
|
@@ -95690,12 +95584,6 @@ learn more about how the metric is calculated in this help center article */
|
|
|
95690
95584
|
ranking changes of the SERP element compared to the preceding month;
|
|
95691
95585
|
Note: the changes are calculated even if the preceding month is not included in a POST request */
|
|
95692
95586
|
rank_changes?: RankChanges | undefined;
|
|
95693
|
-
/** search engine type */
|
|
95694
|
-
se_type?: string | undefined;
|
|
95695
|
-
/** backlinks information for the target website */
|
|
95696
|
-
backlinks_info?: BacklinksInfo | undefined;
|
|
95697
|
-
/** page and domain rank information */
|
|
95698
|
-
rank_info?: RankInfo | undefined;
|
|
95699
95587
|
|
|
95700
95588
|
[key: string]: any;
|
|
95701
95589
|
|
|
@@ -95728,9 +95616,6 @@ Note: the changes are calculated even if the preceding month is not included in
|
|
|
95728
95616
|
this.impressions_etv = _data["impressions_etv"];
|
|
95729
95617
|
this.estimated_paid_traffic_cost = _data["estimated_paid_traffic_cost"];
|
|
95730
95618
|
this.rank_changes = _data["rank_changes"] ? RankChanges.fromJS(_data["rank_changes"]) : <any>undefined;
|
|
95731
|
-
this.se_type = _data["se_type"];
|
|
95732
|
-
this.backlinks_info = _data["backlinks_info"] ? BacklinksInfo.fromJS(_data["backlinks_info"]) : <any>undefined;
|
|
95733
|
-
this.rank_info = _data["rank_info"] ? RankInfo.fromJS(_data["rank_info"]) : <any>undefined;
|
|
95734
95619
|
}
|
|
95735
95620
|
}
|
|
95736
95621
|
|
|
@@ -95764,9 +95649,6 @@ Note: the changes are calculated even if the preceding month is not included in
|
|
|
95764
95649
|
data["impressions_etv"] = this.impressions_etv;
|
|
95765
95650
|
data["estimated_paid_traffic_cost"] = this.estimated_paid_traffic_cost;
|
|
95766
95651
|
data["rank_changes"] = this.rank_changes ? this.rank_changes.toJSON() : <any>undefined;
|
|
95767
|
-
data["se_type"] = this.se_type;
|
|
95768
|
-
data["backlinks_info"] = this.backlinks_info ? this.backlinks_info.toJSON() : <any>undefined;
|
|
95769
|
-
data["rank_info"] = this.rank_info ? this.rank_info.toJSON() : <any>undefined;
|
|
95770
95652
|
super.toJSON(data);
|
|
95771
95653
|
return data;
|
|
95772
95654
|
}
|
|
@@ -95823,12 +95705,6 @@ learn more about how the metric is calculated in this help center article */
|
|
|
95823
95705
|
ranking changes of the SERP element compared to the preceding month;
|
|
95824
95706
|
Note: the changes are calculated even if the preceding month is not included in a POST request */
|
|
95825
95707
|
rank_changes?: RankChanges | undefined;
|
|
95826
|
-
/** search engine type */
|
|
95827
|
-
se_type?: string | undefined;
|
|
95828
|
-
/** backlinks information for the target website */
|
|
95829
|
-
backlinks_info?: BacklinksInfo | undefined;
|
|
95830
|
-
/** page and domain rank information */
|
|
95831
|
-
rank_info?: RankInfo | undefined;
|
|
95832
95708
|
|
|
95833
95709
|
[key: string]: any;
|
|
95834
95710
|
}
|
|
@@ -98680,6 +98556,11 @@ if you use this parameter, our system will correlate data you obtain now with pr
|
|
|
98680
98556
|
this parameter is intended to mitigate any inconsistencies that may result from changes to our database
|
|
98681
98557
|
we recommend always setting correlate to true */
|
|
98682
98558
|
correlate?: boolean | undefined;
|
|
98559
|
+
/** ignore highly similar keywords
|
|
98560
|
+
optional field
|
|
98561
|
+
if set to true, only data based on core keywords will be returned, data for all highly similar keywords will be excluded;
|
|
98562
|
+
default value: false */
|
|
98563
|
+
ignore_synonyms?: boolean | undefined;
|
|
98683
98564
|
/** user-defined task identifier
|
|
98684
98565
|
optional field
|
|
98685
98566
|
the character limit is 255
|
|
@@ -98712,6 +98593,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
98712
98593
|
this.date_from = _data["date_from"];
|
|
98713
98594
|
this.date_to = _data["date_to"];
|
|
98714
98595
|
this.correlate = _data["correlate"];
|
|
98596
|
+
this.ignore_synonyms = _data["ignore_synonyms"];
|
|
98715
98597
|
this.tag = _data["tag"];
|
|
98716
98598
|
}
|
|
98717
98599
|
}
|
|
@@ -98737,6 +98619,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
98737
98619
|
data["date_from"] = this.date_from;
|
|
98738
98620
|
data["date_to"] = this.date_to;
|
|
98739
98621
|
data["correlate"] = this.correlate;
|
|
98622
|
+
data["ignore_synonyms"] = this.ignore_synonyms;
|
|
98740
98623
|
data["tag"] = this.tag;
|
|
98741
98624
|
return data;
|
|
98742
98625
|
}
|
|
@@ -98800,6 +98683,11 @@ if you use this parameter, our system will correlate data you obtain now with pr
|
|
|
98800
98683
|
this parameter is intended to mitigate any inconsistencies that may result from changes to our database
|
|
98801
98684
|
we recommend always setting correlate to true */
|
|
98802
98685
|
correlate?: boolean | undefined;
|
|
98686
|
+
/** ignore highly similar keywords
|
|
98687
|
+
optional field
|
|
98688
|
+
if set to true, only data based on core keywords will be returned, data for all highly similar keywords will be excluded;
|
|
98689
|
+
default value: false */
|
|
98690
|
+
ignore_synonyms?: boolean | undefined;
|
|
98803
98691
|
/** user-defined task identifier
|
|
98804
98692
|
optional field
|
|
98805
98693
|
the character limit is 255
|
|
@@ -99512,11 +99400,11 @@ you will find the specified tag value in the data object of the response */
|
|
|
99512
99400
|
[key: string]: any;
|
|
99513
99401
|
}
|
|
99514
99402
|
|
|
99515
|
-
export class
|
|
99403
|
+
export class DataforseoLabsGooglePageIntersectionLiveItem implements IDataforseoLabsGooglePageIntersectionLiveItem {
|
|
99516
99404
|
/** search engine type */
|
|
99517
99405
|
se_type?: string | undefined;
|
|
99518
99406
|
/** keyword data for the returned keyword */
|
|
99519
|
-
keyword_data?:
|
|
99407
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
99520
99408
|
/** contains data on the SERP elements found for the returned keyword
|
|
99521
99409
|
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
99522
99410
|
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -99524,7 +99412,7 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99524
99412
|
|
|
99525
99413
|
[key: string]: any;
|
|
99526
99414
|
|
|
99527
|
-
constructor(data?:
|
|
99415
|
+
constructor(data?: IDataforseoLabsGooglePageIntersectionLiveItem) {
|
|
99528
99416
|
if (data) {
|
|
99529
99417
|
for (var property in data) {
|
|
99530
99418
|
if (data.hasOwnProperty(property))
|
|
@@ -99540,7 +99428,7 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99540
99428
|
this[property] = _data[property];
|
|
99541
99429
|
}
|
|
99542
99430
|
this.se_type = _data["se_type"];
|
|
99543
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
99431
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
99544
99432
|
if (_data["intersection_result"]) {
|
|
99545
99433
|
this.intersection_result = {} as any;
|
|
99546
99434
|
for (let key in _data["intersection_result"]) {
|
|
@@ -99551,9 +99439,9 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99551
99439
|
}
|
|
99552
99440
|
}
|
|
99553
99441
|
|
|
99554
|
-
static fromJS(data: any):
|
|
99442
|
+
static fromJS(data: any): DataforseoLabsGooglePageIntersectionLiveItem {
|
|
99555
99443
|
data = typeof data === 'object' ? data : {};
|
|
99556
|
-
let result = new
|
|
99444
|
+
let result = new DataforseoLabsGooglePageIntersectionLiveItem();
|
|
99557
99445
|
result.init(data);
|
|
99558
99446
|
return result;
|
|
99559
99447
|
}
|
|
@@ -99577,11 +99465,11 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99577
99465
|
}
|
|
99578
99466
|
}
|
|
99579
99467
|
|
|
99580
|
-
export interface
|
|
99468
|
+
export interface IDataforseoLabsGooglePageIntersectionLiveItem {
|
|
99581
99469
|
/** search engine type */
|
|
99582
99470
|
se_type?: string | undefined;
|
|
99583
99471
|
/** keyword data for the returned keyword */
|
|
99584
|
-
keyword_data?:
|
|
99472
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
99585
99473
|
/** contains data on the SERP elements found for the returned keyword
|
|
99586
99474
|
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
99587
99475
|
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -99606,7 +99494,7 @@ export class DataforseoLabsGooglePageIntersectionLiveResultInfo implements IData
|
|
|
99606
99494
|
/** the number of results returned in the items array */
|
|
99607
99495
|
items_count?: number | undefined;
|
|
99608
99496
|
/** contains keywords, relevant SERP elements and related data */
|
|
99609
|
-
items?: (
|
|
99497
|
+
items?: (DataforseoLabsGooglePageIntersectionLiveItem | undefined)[] | undefined;
|
|
99610
99498
|
|
|
99611
99499
|
[key: string]: any;
|
|
99612
99500
|
|
|
@@ -99645,7 +99533,7 @@ export class DataforseoLabsGooglePageIntersectionLiveResultInfo implements IData
|
|
|
99645
99533
|
if (Array.isArray(_data["items"])) {
|
|
99646
99534
|
this.items = [] as any;
|
|
99647
99535
|
for (let item of _data["items"])
|
|
99648
|
-
this.items!.push(
|
|
99536
|
+
this.items!.push(DataforseoLabsGooglePageIntersectionLiveItem.fromJS(item));
|
|
99649
99537
|
}
|
|
99650
99538
|
}
|
|
99651
99539
|
}
|
|
@@ -99705,7 +99593,7 @@ export interface IDataforseoLabsGooglePageIntersectionLiveResultInfo {
|
|
|
99705
99593
|
/** the number of results returned in the items array */
|
|
99706
99594
|
items_count?: number | undefined;
|
|
99707
99595
|
/** contains keywords, relevant SERP elements and related data */
|
|
99708
|
-
items?: (
|
|
99596
|
+
items?: (DataforseoLabsGooglePageIntersectionLiveItem | undefined)[] | undefined;
|
|
99709
99597
|
|
|
99710
99598
|
[key: string]: any;
|
|
99711
99599
|
}
|
|
@@ -100064,7 +99952,7 @@ learn more about how the metric is calculated in this help center article */
|
|
|
100064
99952
|
[key: string]: any;
|
|
100065
99953
|
}
|
|
100066
99954
|
|
|
100067
|
-
export class
|
|
99955
|
+
export class DataforseoLabsBBulkTrafficEstimationLiveItem implements IDataforseoLabsBBulkTrafficEstimationLiveItem {
|
|
100068
99956
|
/** search engine type */
|
|
100069
99957
|
se_type?: string | undefined;
|
|
100070
99958
|
/** target domain in a POST array */
|
|
@@ -100074,7 +99962,7 @@ export class DataforseoLabsBulkTrafficEstimationLiveItem implements IDataforseoL
|
|
|
100074
99962
|
|
|
100075
99963
|
[key: string]: any;
|
|
100076
99964
|
|
|
100077
|
-
constructor(data?:
|
|
99965
|
+
constructor(data?: IDataforseoLabsBBulkTrafficEstimationLiveItem) {
|
|
100078
99966
|
if (data) {
|
|
100079
99967
|
for (var property in data) {
|
|
100080
99968
|
if (data.hasOwnProperty(property))
|
|
@@ -100101,9 +99989,9 @@ export class DataforseoLabsBulkTrafficEstimationLiveItem implements IDataforseoL
|
|
|
100101
99989
|
}
|
|
100102
99990
|
}
|
|
100103
99991
|
|
|
100104
|
-
static fromJS(data: any):
|
|
99992
|
+
static fromJS(data: any): DataforseoLabsBBulkTrafficEstimationLiveItem {
|
|
100105
99993
|
data = typeof data === 'object' ? data : {};
|
|
100106
|
-
let result = new
|
|
99994
|
+
let result = new DataforseoLabsBBulkTrafficEstimationLiveItem();
|
|
100107
99995
|
result.init(data);
|
|
100108
99996
|
return result;
|
|
100109
99997
|
}
|
|
@@ -100127,7 +100015,7 @@ export class DataforseoLabsBulkTrafficEstimationLiveItem implements IDataforseoL
|
|
|
100127
100015
|
}
|
|
100128
100016
|
}
|
|
100129
100017
|
|
|
100130
|
-
export interface
|
|
100018
|
+
export interface IDataforseoLabsBBulkTrafficEstimationLiveItem {
|
|
100131
100019
|
/** search engine type */
|
|
100132
100020
|
se_type?: string | undefined;
|
|
100133
100021
|
/** target domain in a POST array */
|
|
@@ -100152,7 +100040,7 @@ if there is no data, then the value is null */
|
|
|
100152
100040
|
/** the number of results returned in the items array */
|
|
100153
100041
|
items_count?: number | undefined;
|
|
100154
100042
|
/** array of items with relevant traffic estimation data */
|
|
100155
|
-
items?: (
|
|
100043
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
100156
100044
|
|
|
100157
100045
|
[key: string]: any;
|
|
100158
100046
|
|
|
@@ -100179,7 +100067,7 @@ if there is no data, then the value is null */
|
|
|
100179
100067
|
if (Array.isArray(_data["items"])) {
|
|
100180
100068
|
this.items = [] as any;
|
|
100181
100069
|
for (let item of _data["items"])
|
|
100182
|
-
this.items!.push(
|
|
100070
|
+
this.items!.push(DataforseoLabsBBulkTrafficEstimationLiveItem.fromJS(item));
|
|
100183
100071
|
}
|
|
100184
100072
|
}
|
|
100185
100073
|
}
|
|
@@ -100225,7 +100113,7 @@ if there is no data, then the value is null */
|
|
|
100225
100113
|
/** the number of results returned in the items array */
|
|
100226
100114
|
items_count?: number | undefined;
|
|
100227
100115
|
/** array of items with relevant traffic estimation data */
|
|
100228
|
-
items?: (
|
|
100116
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
100229
100117
|
|
|
100230
100118
|
[key: string]: any;
|
|
100231
100119
|
}
|
|
@@ -100392,6 +100280,11 @@ date format: "yyyy-mm-dd"
|
|
|
100392
100280
|
example:
|
|
100393
100281
|
"2021-04-01" */
|
|
100394
100282
|
date_to?: string | undefined;
|
|
100283
|
+
/** ignore highly similar keywords
|
|
100284
|
+
optional field
|
|
100285
|
+
if set to true only core keywords will be returned, all highly similar keywords will be excluded;
|
|
100286
|
+
default value: false */
|
|
100287
|
+
ignore_synonyms?: boolean | undefined;
|
|
100395
100288
|
/** display results by item type
|
|
100396
100289
|
optional field
|
|
100397
100290
|
indicates the type of search results included in the response;
|
|
@@ -100436,6 +100329,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
100436
100329
|
this.language_code = _data["language_code"];
|
|
100437
100330
|
this.date_from = _data["date_from"];
|
|
100438
100331
|
this.date_to = _data["date_to"];
|
|
100332
|
+
this.ignore_synonyms = _data["ignore_synonyms"];
|
|
100439
100333
|
if (Array.isArray(_data["item_types"])) {
|
|
100440
100334
|
this.item_types = [] as any;
|
|
100441
100335
|
for (let item of _data["item_types"])
|
|
@@ -100469,6 +100363,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
100469
100363
|
data["language_code"] = this.language_code;
|
|
100470
100364
|
data["date_from"] = this.date_from;
|
|
100471
100365
|
data["date_to"] = this.date_to;
|
|
100366
|
+
data["ignore_synonyms"] = this.ignore_synonyms;
|
|
100472
100367
|
if (Array.isArray(this.item_types)) {
|
|
100473
100368
|
data["item_types"] = [];
|
|
100474
100369
|
for (let item of this.item_types)
|
|
@@ -100531,6 +100426,11 @@ date format: "yyyy-mm-dd"
|
|
|
100531
100426
|
example:
|
|
100532
100427
|
"2021-04-01" */
|
|
100533
100428
|
date_to?: string | undefined;
|
|
100429
|
+
/** ignore highly similar keywords
|
|
100430
|
+
optional field
|
|
100431
|
+
if set to true only core keywords will be returned, all highly similar keywords will be excluded;
|
|
100432
|
+
default value: false */
|
|
100433
|
+
ignore_synonyms?: boolean | undefined;
|
|
100534
100434
|
/** display results by item type
|
|
100535
100435
|
optional field
|
|
100536
100436
|
indicates the type of search results included in the response;
|
|
@@ -101656,6 +101556,106 @@ you will find the specified tag value in the data object of the response */
|
|
|
101656
101556
|
[key: string]: any;
|
|
101657
101557
|
}
|
|
101658
101558
|
|
|
101559
|
+
export class KeywordDataKeywordDataInfo implements IKeywordDataKeywordDataInfo {
|
|
101560
|
+
/** search engine type
|
|
101561
|
+
search engine type specified in a POST request;
|
|
101562
|
+
for this endpoint, the field equals bing */
|
|
101563
|
+
se_type?: string | undefined;
|
|
101564
|
+
/** returned keyword */
|
|
101565
|
+
keyword?: string | undefined;
|
|
101566
|
+
/** location code in a POST array */
|
|
101567
|
+
location_code?: number | undefined;
|
|
101568
|
+
/** language code in a POST array */
|
|
101569
|
+
language_code?: string | undefined;
|
|
101570
|
+
/** keyword data for the returned keyword */
|
|
101571
|
+
keyword_info?: KeywordInfo | undefined;
|
|
101572
|
+
/** additional information about the keyword */
|
|
101573
|
+
keyword_properties?: KeywordProperties | undefined;
|
|
101574
|
+
/** SERP data
|
|
101575
|
+
the value will be null if you didn’t set the field include_serp_info to true in the POST array or if there is no SERP data for this keyword in our database */
|
|
101576
|
+
serp_info?: SerpInfo | undefined;
|
|
101577
|
+
/** backlink data for the returned keyword
|
|
101578
|
+
this object provides the average number of backlinks, referring pages and domains, as well as the average rank values among the top-10 websites ranking organically for the keyword */
|
|
101579
|
+
avg_backlinks_info?: AvgBacklinksInfo | undefined;
|
|
101580
|
+
|
|
101581
|
+
[key: string]: any;
|
|
101582
|
+
|
|
101583
|
+
constructor(data?: IKeywordDataKeywordDataInfo) {
|
|
101584
|
+
if (data) {
|
|
101585
|
+
for (var property in data) {
|
|
101586
|
+
if (data.hasOwnProperty(property))
|
|
101587
|
+
(<any>this)[property] = (<any>data)[property];
|
|
101588
|
+
}
|
|
101589
|
+
}
|
|
101590
|
+
}
|
|
101591
|
+
|
|
101592
|
+
init(_data?: any) {
|
|
101593
|
+
if (_data) {
|
|
101594
|
+
for (var property in _data) {
|
|
101595
|
+
if (_data.hasOwnProperty(property))
|
|
101596
|
+
this[property] = _data[property];
|
|
101597
|
+
}
|
|
101598
|
+
this.se_type = _data["se_type"];
|
|
101599
|
+
this.keyword = _data["keyword"];
|
|
101600
|
+
this.location_code = _data["location_code"];
|
|
101601
|
+
this.language_code = _data["language_code"];
|
|
101602
|
+
this.keyword_info = _data["keyword_info"] ? KeywordInfo.fromJS(_data["keyword_info"]) : <any>undefined;
|
|
101603
|
+
this.keyword_properties = _data["keyword_properties"] ? KeywordProperties.fromJS(_data["keyword_properties"]) : <any>undefined;
|
|
101604
|
+
this.serp_info = _data["serp_info"] ? SerpInfo.fromJS(_data["serp_info"]) : <any>undefined;
|
|
101605
|
+
this.avg_backlinks_info = _data["avg_backlinks_info"] ? AvgBacklinksInfo.fromJS(_data["avg_backlinks_info"]) : <any>undefined;
|
|
101606
|
+
}
|
|
101607
|
+
}
|
|
101608
|
+
|
|
101609
|
+
static fromJS(data: any): KeywordDataKeywordDataInfo {
|
|
101610
|
+
data = typeof data === 'object' ? data : {};
|
|
101611
|
+
let result = new KeywordDataKeywordDataInfo();
|
|
101612
|
+
result.init(data);
|
|
101613
|
+
return result;
|
|
101614
|
+
}
|
|
101615
|
+
|
|
101616
|
+
toJSON(data?: any) {
|
|
101617
|
+
data = typeof data === 'object' ? data : {};
|
|
101618
|
+
for (var property in this) {
|
|
101619
|
+
if (this.hasOwnProperty(property))
|
|
101620
|
+
data[property] = this[property];
|
|
101621
|
+
}
|
|
101622
|
+
data["se_type"] = this.se_type;
|
|
101623
|
+
data["keyword"] = this.keyword;
|
|
101624
|
+
data["location_code"] = this.location_code;
|
|
101625
|
+
data["language_code"] = this.language_code;
|
|
101626
|
+
data["keyword_info"] = this.keyword_info ? this.keyword_info.toJSON() : <any>undefined;
|
|
101627
|
+
data["keyword_properties"] = this.keyword_properties ? this.keyword_properties.toJSON() : <any>undefined;
|
|
101628
|
+
data["serp_info"] = this.serp_info ? this.serp_info.toJSON() : <any>undefined;
|
|
101629
|
+
data["avg_backlinks_info"] = this.avg_backlinks_info ? this.avg_backlinks_info.toJSON() : <any>undefined;
|
|
101630
|
+
return data;
|
|
101631
|
+
}
|
|
101632
|
+
}
|
|
101633
|
+
|
|
101634
|
+
export interface IKeywordDataKeywordDataInfo {
|
|
101635
|
+
/** search engine type
|
|
101636
|
+
search engine type specified in a POST request;
|
|
101637
|
+
for this endpoint, the field equals bing */
|
|
101638
|
+
se_type?: string | undefined;
|
|
101639
|
+
/** returned keyword */
|
|
101640
|
+
keyword?: string | undefined;
|
|
101641
|
+
/** location code in a POST array */
|
|
101642
|
+
location_code?: number | undefined;
|
|
101643
|
+
/** language code in a POST array */
|
|
101644
|
+
language_code?: string | undefined;
|
|
101645
|
+
/** keyword data for the returned keyword */
|
|
101646
|
+
keyword_info?: KeywordInfo | undefined;
|
|
101647
|
+
/** additional information about the keyword */
|
|
101648
|
+
keyword_properties?: KeywordProperties | undefined;
|
|
101649
|
+
/** SERP data
|
|
101650
|
+
the value will be null if you didn’t set the field include_serp_info to true in the POST array or if there is no SERP data for this keyword in our database */
|
|
101651
|
+
serp_info?: SerpInfo | undefined;
|
|
101652
|
+
/** backlink data for the returned keyword
|
|
101653
|
+
this object provides the average number of backlinks, referring pages and domains, as well as the average rank values among the top-10 websites ranking organically for the keyword */
|
|
101654
|
+
avg_backlinks_info?: AvgBacklinksInfo | undefined;
|
|
101655
|
+
|
|
101656
|
+
[key: string]: any;
|
|
101657
|
+
}
|
|
101658
|
+
|
|
101659
101659
|
export class DataforseoLabsAmazonRelatedKeywordsLiveItem implements IDataforseoLabsAmazonRelatedKeywordsLiveItem {
|
|
101660
101660
|
/** search engine type */
|
|
101661
101661
|
se_type?: string | undefined;
|
|
@@ -102528,7 +102528,7 @@ export class DataforseoLabsAmazonRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
102528
102528
|
/** search engine type */
|
|
102529
102529
|
se_type?: string | undefined;
|
|
102530
102530
|
/** keyword data for the returned keyword */
|
|
102531
|
-
keyword_data?:
|
|
102531
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
102532
102532
|
/** contains data on the products’s SERP element found for the returned keyword */
|
|
102533
102533
|
ranked_serp_element?: AmazonRankedSerpElement | undefined;
|
|
102534
102534
|
|
|
@@ -102550,7 +102550,7 @@ export class DataforseoLabsAmazonRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
102550
102550
|
this[property] = _data[property];
|
|
102551
102551
|
}
|
|
102552
102552
|
this.se_type = _data["se_type"];
|
|
102553
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
102553
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
102554
102554
|
this.ranked_serp_element = _data["ranked_serp_element"] ? AmazonRankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
102555
102555
|
}
|
|
102556
102556
|
}
|
|
@@ -102579,7 +102579,7 @@ export interface IDataforseoLabsAmazonRankedKeywordsLiveItem {
|
|
|
102579
102579
|
/** search engine type */
|
|
102580
102580
|
se_type?: string | undefined;
|
|
102581
102581
|
/** keyword data for the returned keyword */
|
|
102582
|
-
keyword_data?:
|
|
102582
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
102583
102583
|
/** contains data on the products’s SERP element found for the returned keyword */
|
|
102584
102584
|
ranked_serp_element?: AmazonRankedSerpElement | undefined;
|
|
102585
102585
|
|
|
@@ -105006,7 +105006,7 @@ if there is no data, then the value is null */
|
|
|
105006
105006
|
/** the number of results returned in the items array */
|
|
105007
105007
|
items_count?: number | undefined;
|
|
105008
105008
|
/** array of items with relevant traffic estimation data */
|
|
105009
|
-
items?: (
|
|
105009
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
105010
105010
|
|
|
105011
105011
|
[key: string]: any;
|
|
105012
105012
|
|
|
@@ -105033,7 +105033,7 @@ if there is no data, then the value is null */
|
|
|
105033
105033
|
if (Array.isArray(_data["items"])) {
|
|
105034
105034
|
this.items = [] as any;
|
|
105035
105035
|
for (let item of _data["items"])
|
|
105036
|
-
this.items!.push(
|
|
105036
|
+
this.items!.push(DataforseoLabsBBulkTrafficEstimationLiveItem.fromJS(item));
|
|
105037
105037
|
}
|
|
105038
105038
|
}
|
|
105039
105039
|
}
|
|
@@ -105079,7 +105079,7 @@ if there is no data, then the value is null */
|
|
|
105079
105079
|
/** the number of results returned in the items array */
|
|
105080
105080
|
items_count?: number | undefined;
|
|
105081
105081
|
/** array of items with relevant traffic estimation data */
|
|
105082
|
-
items?: (
|
|
105082
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
105083
105083
|
|
|
105084
105084
|
[key: string]: any;
|
|
105085
105085
|
}
|
|
@@ -106082,6 +106082,82 @@ you will find the specified tag value in the data object of the response */
|
|
|
106082
106082
|
[key: string]: any;
|
|
106083
106083
|
}
|
|
106084
106084
|
|
|
106085
|
+
export class DataforseoLabsBingDomainIntersectionLiveItem implements IDataforseoLabsBingDomainIntersectionLiveItem {
|
|
106086
|
+
/** search engine type
|
|
106087
|
+
search engine type specified in a POST request;
|
|
106088
|
+
for this endpoint, the field equals bing */
|
|
106089
|
+
se_type?: string | undefined;
|
|
106090
|
+
/** keyword data for the returned keyword */
|
|
106091
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
106092
|
+
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
106093
|
+
the list of supported SERP elements can be found below */
|
|
106094
|
+
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
106095
|
+
/** contains data on the second domain’s SERP element found for the returned keyword
|
|
106096
|
+
the list of supported SERP elements can be found below */
|
|
106097
|
+
second_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
106098
|
+
|
|
106099
|
+
[key: string]: any;
|
|
106100
|
+
|
|
106101
|
+
constructor(data?: IDataforseoLabsBingDomainIntersectionLiveItem) {
|
|
106102
|
+
if (data) {
|
|
106103
|
+
for (var property in data) {
|
|
106104
|
+
if (data.hasOwnProperty(property))
|
|
106105
|
+
(<any>this)[property] = (<any>data)[property];
|
|
106106
|
+
}
|
|
106107
|
+
}
|
|
106108
|
+
}
|
|
106109
|
+
|
|
106110
|
+
init(_data?: any) {
|
|
106111
|
+
if (_data) {
|
|
106112
|
+
for (var property in _data) {
|
|
106113
|
+
if (_data.hasOwnProperty(property))
|
|
106114
|
+
this[property] = _data[property];
|
|
106115
|
+
}
|
|
106116
|
+
this.se_type = _data["se_type"];
|
|
106117
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
106118
|
+
this.first_domain_serp_element = _data["first_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["first_domain_serp_element"]) : <any>undefined;
|
|
106119
|
+
this.second_domain_serp_element = _data["second_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["second_domain_serp_element"]) : <any>undefined;
|
|
106120
|
+
}
|
|
106121
|
+
}
|
|
106122
|
+
|
|
106123
|
+
static fromJS(data: any): DataforseoLabsBingDomainIntersectionLiveItem {
|
|
106124
|
+
data = typeof data === 'object' ? data : {};
|
|
106125
|
+
let result = new DataforseoLabsBingDomainIntersectionLiveItem();
|
|
106126
|
+
result.init(data);
|
|
106127
|
+
return result;
|
|
106128
|
+
}
|
|
106129
|
+
|
|
106130
|
+
toJSON(data?: any) {
|
|
106131
|
+
data = typeof data === 'object' ? data : {};
|
|
106132
|
+
for (var property in this) {
|
|
106133
|
+
if (this.hasOwnProperty(property))
|
|
106134
|
+
data[property] = this[property];
|
|
106135
|
+
}
|
|
106136
|
+
data["se_type"] = this.se_type;
|
|
106137
|
+
data["keyword_data"] = this.keyword_data ? this.keyword_data.toJSON() : <any>undefined;
|
|
106138
|
+
data["first_domain_serp_element"] = this.first_domain_serp_element ? this.first_domain_serp_element.toJSON() : <any>undefined;
|
|
106139
|
+
data["second_domain_serp_element"] = this.second_domain_serp_element ? this.second_domain_serp_element.toJSON() : <any>undefined;
|
|
106140
|
+
return data;
|
|
106141
|
+
}
|
|
106142
|
+
}
|
|
106143
|
+
|
|
106144
|
+
export interface IDataforseoLabsBingDomainIntersectionLiveItem {
|
|
106145
|
+
/** search engine type
|
|
106146
|
+
search engine type specified in a POST request;
|
|
106147
|
+
for this endpoint, the field equals bing */
|
|
106148
|
+
se_type?: string | undefined;
|
|
106149
|
+
/** keyword data for the returned keyword */
|
|
106150
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
106151
|
+
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
106152
|
+
the list of supported SERP elements can be found below */
|
|
106153
|
+
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
106154
|
+
/** contains data on the second domain’s SERP element found for the returned keyword
|
|
106155
|
+
the list of supported SERP elements can be found below */
|
|
106156
|
+
second_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
106157
|
+
|
|
106158
|
+
[key: string]: any;
|
|
106159
|
+
}
|
|
106160
|
+
|
|
106085
106161
|
export class DataforseoLabsBingDomainIntersectionLiveResultInfo implements IDataforseoLabsBingDomainIntersectionLiveResultInfo {
|
|
106086
106162
|
/** search engine type
|
|
106087
106163
|
search engine type specified in a POST request;
|
|
@@ -106100,7 +106176,7 @@ for this endpoint, the field equals bing */
|
|
|
106100
106176
|
/** the number of results returned in the items array */
|
|
106101
106177
|
items_count?: number | undefined;
|
|
106102
106178
|
/** contains keywords, relevant SERP elements and related data */
|
|
106103
|
-
items?: (
|
|
106179
|
+
items?: (DataforseoLabsBingDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
106104
106180
|
|
|
106105
106181
|
[key: string]: any;
|
|
106106
106182
|
|
|
@@ -106129,7 +106205,7 @@ for this endpoint, the field equals bing */
|
|
|
106129
106205
|
if (Array.isArray(_data["items"])) {
|
|
106130
106206
|
this.items = [] as any;
|
|
106131
106207
|
for (let item of _data["items"])
|
|
106132
|
-
this.items!.push(
|
|
106208
|
+
this.items!.push(DataforseoLabsBingDomainIntersectionLiveItem.fromJS(item));
|
|
106133
106209
|
}
|
|
106134
106210
|
}
|
|
106135
106211
|
}
|
|
@@ -106181,7 +106257,7 @@ for this endpoint, the field equals bing */
|
|
|
106181
106257
|
/** the number of results returned in the items array */
|
|
106182
106258
|
items_count?: number | undefined;
|
|
106183
106259
|
/** contains keywords, relevant SERP elements and related data */
|
|
106184
|
-
items?: (
|
|
106260
|
+
items?: (DataforseoLabsBingDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
106185
106261
|
|
|
106186
106262
|
[key: string]: any;
|
|
106187
106263
|
}
|
|
@@ -107098,6 +107174,88 @@ you will find the specified tag value in the data object of the response */
|
|
|
107098
107174
|
[key: string]: any;
|
|
107099
107175
|
}
|
|
107100
107176
|
|
|
107177
|
+
export class DataforseoLabsBingPageIntersectionLiveItem implements IDataforseoLabsBingPageIntersectionLiveItem {
|
|
107178
|
+
/** search engine type
|
|
107179
|
+
search engine type specified in a POST request;
|
|
107180
|
+
for this endpoint, the field equals bing */
|
|
107181
|
+
se_type?: string | undefined;
|
|
107182
|
+
/** keyword data for the returned keyword */
|
|
107183
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
107184
|
+
/** contains data on the SERP elements found for the returned keyword
|
|
107185
|
+
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
107186
|
+
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
107187
|
+
intersection_result?: { [key: string]: BaseDataforseoLabsSerpElementItem; } | undefined;
|
|
107188
|
+
|
|
107189
|
+
[key: string]: any;
|
|
107190
|
+
|
|
107191
|
+
constructor(data?: IDataforseoLabsBingPageIntersectionLiveItem) {
|
|
107192
|
+
if (data) {
|
|
107193
|
+
for (var property in data) {
|
|
107194
|
+
if (data.hasOwnProperty(property))
|
|
107195
|
+
(<any>this)[property] = (<any>data)[property];
|
|
107196
|
+
}
|
|
107197
|
+
}
|
|
107198
|
+
}
|
|
107199
|
+
|
|
107200
|
+
init(_data?: any) {
|
|
107201
|
+
if (_data) {
|
|
107202
|
+
for (var property in _data) {
|
|
107203
|
+
if (_data.hasOwnProperty(property))
|
|
107204
|
+
this[property] = _data[property];
|
|
107205
|
+
}
|
|
107206
|
+
this.se_type = _data["se_type"];
|
|
107207
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
107208
|
+
if (_data["intersection_result"]) {
|
|
107209
|
+
this.intersection_result = {} as any;
|
|
107210
|
+
for (let key in _data["intersection_result"]) {
|
|
107211
|
+
if (_data["intersection_result"].hasOwnProperty(key))
|
|
107212
|
+
(<any>this.intersection_result)![key] = _data["intersection_result"][key] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["intersection_result"][key]) : <any>undefined;
|
|
107213
|
+
}
|
|
107214
|
+
}
|
|
107215
|
+
}
|
|
107216
|
+
}
|
|
107217
|
+
|
|
107218
|
+
static fromJS(data: any): DataforseoLabsBingPageIntersectionLiveItem {
|
|
107219
|
+
data = typeof data === 'object' ? data : {};
|
|
107220
|
+
let result = new DataforseoLabsBingPageIntersectionLiveItem();
|
|
107221
|
+
result.init(data);
|
|
107222
|
+
return result;
|
|
107223
|
+
}
|
|
107224
|
+
|
|
107225
|
+
toJSON(data?: any) {
|
|
107226
|
+
data = typeof data === 'object' ? data : {};
|
|
107227
|
+
for (var property in this) {
|
|
107228
|
+
if (this.hasOwnProperty(property))
|
|
107229
|
+
data[property] = this[property];
|
|
107230
|
+
}
|
|
107231
|
+
data["se_type"] = this.se_type;
|
|
107232
|
+
data["keyword_data"] = this.keyword_data ? this.keyword_data.toJSON() : <any>undefined;
|
|
107233
|
+
if (this.intersection_result) {
|
|
107234
|
+
data["intersection_result"] = {};
|
|
107235
|
+
for (let key in this.intersection_result) {
|
|
107236
|
+
if (this.intersection_result.hasOwnProperty(key))
|
|
107237
|
+
(<any>data["intersection_result"])[key] = this.intersection_result[key] ? this.intersection_result[key].toJSON() : <any>undefined;
|
|
107238
|
+
}
|
|
107239
|
+
}
|
|
107240
|
+
return data;
|
|
107241
|
+
}
|
|
107242
|
+
}
|
|
107243
|
+
|
|
107244
|
+
export interface IDataforseoLabsBingPageIntersectionLiveItem {
|
|
107245
|
+
/** search engine type
|
|
107246
|
+
search engine type specified in a POST request;
|
|
107247
|
+
for this endpoint, the field equals bing */
|
|
107248
|
+
se_type?: string | undefined;
|
|
107249
|
+
/** keyword data for the returned keyword */
|
|
107250
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
107251
|
+
/** contains data on the SERP elements found for the returned keyword
|
|
107252
|
+
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
107253
|
+
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
107254
|
+
intersection_result?: { [key: string]: BaseDataforseoLabsSerpElementItem; } | undefined;
|
|
107255
|
+
|
|
107256
|
+
[key: string]: any;
|
|
107257
|
+
}
|
|
107258
|
+
|
|
107101
107259
|
export class DataforseoLabsBingPageIntersectionLiveResultInfo implements IDataforseoLabsBingPageIntersectionLiveResultInfo {
|
|
107102
107260
|
/** search engine type
|
|
107103
107261
|
search engine type specified in a POST request;
|
|
@@ -107116,7 +107274,7 @@ for this endpoint, the field equals bing */
|
|
|
107116
107274
|
/** the number of results returned in the items array */
|
|
107117
107275
|
items_count?: number | undefined;
|
|
107118
107276
|
/** contains keywords, relevant SERP elements and related data */
|
|
107119
|
-
items?: (
|
|
107277
|
+
items?: (DataforseoLabsBingPageIntersectionLiveItem | undefined)[] | undefined;
|
|
107120
107278
|
|
|
107121
107279
|
[key: string]: any;
|
|
107122
107280
|
|
|
@@ -107155,7 +107313,7 @@ for this endpoint, the field equals bing */
|
|
|
107155
107313
|
if (Array.isArray(_data["items"])) {
|
|
107156
107314
|
this.items = [] as any;
|
|
107157
107315
|
for (let item of _data["items"])
|
|
107158
|
-
this.items!.push(
|
|
107316
|
+
this.items!.push(DataforseoLabsBingPageIntersectionLiveItem.fromJS(item));
|
|
107159
107317
|
}
|
|
107160
107318
|
}
|
|
107161
107319
|
}
|
|
@@ -107217,7 +107375,7 @@ for this endpoint, the field equals bing */
|
|
|
107217
107375
|
/** the number of results returned in the items array */
|
|
107218
107376
|
items_count?: number | undefined;
|
|
107219
107377
|
/** contains keywords, relevant SERP elements and related data */
|
|
107220
|
-
items?: (
|
|
107378
|
+
items?: (DataforseoLabsBingPageIntersectionLiveItem | undefined)[] | undefined;
|
|
107221
107379
|
|
|
107222
107380
|
[key: string]: any;
|
|
107223
107381
|
}
|
|
@@ -107688,7 +107846,7 @@ export class DataforseoLabsBingRankedKeywordsLiveItem implements IDataforseoLabs
|
|
|
107688
107846
|
/** search engine type */
|
|
107689
107847
|
se_type?: string | undefined;
|
|
107690
107848
|
/** keyword data for the returned keyword */
|
|
107691
|
-
keyword_data?:
|
|
107849
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
107692
107850
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
107693
107851
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
107694
107852
|
|
|
@@ -107710,7 +107868,7 @@ export class DataforseoLabsBingRankedKeywordsLiveItem implements IDataforseoLabs
|
|
|
107710
107868
|
this[property] = _data[property];
|
|
107711
107869
|
}
|
|
107712
107870
|
this.se_type = _data["se_type"];
|
|
107713
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
107871
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
107714
107872
|
this.ranked_serp_element = _data["ranked_serp_element"] ? RankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
107715
107873
|
}
|
|
107716
107874
|
}
|
|
@@ -107739,7 +107897,7 @@ export interface IDataforseoLabsBingRankedKeywordsLiveItem {
|
|
|
107739
107897
|
/** search engine type */
|
|
107740
107898
|
se_type?: string | undefined;
|
|
107741
107899
|
/** keyword data for the returned keyword */
|
|
107742
|
-
keyword_data?:
|
|
107900
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
107743
107901
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
107744
107902
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
107745
107903
|
|
|
@@ -108322,7 +108480,7 @@ export class DataforseoLabsBingRelatedKeywordsLiveItem implements IDataforseoLab
|
|
|
108322
108480
|
/** search engine type */
|
|
108323
108481
|
se_type?: string | undefined;
|
|
108324
108482
|
/** keyword data for the returned keyword */
|
|
108325
|
-
keyword_data?:
|
|
108483
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108326
108484
|
/** keyword search depth */
|
|
108327
108485
|
depth?: number | undefined;
|
|
108328
108486
|
/** list of related keywords
|
|
@@ -108347,7 +108505,7 @@ represents the list of search queries which are related to the keyword returned
|
|
|
108347
108505
|
this[property] = _data[property];
|
|
108348
108506
|
}
|
|
108349
108507
|
this.se_type = _data["se_type"];
|
|
108350
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
108508
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
108351
108509
|
this.depth = _data["depth"];
|
|
108352
108510
|
if (Array.isArray(_data["related_keywords"])) {
|
|
108353
108511
|
this.related_keywords = [] as any;
|
|
@@ -108386,7 +108544,7 @@ export interface IDataforseoLabsBingRelatedKeywordsLiveItem {
|
|
|
108386
108544
|
/** search engine type */
|
|
108387
108545
|
se_type?: string | undefined;
|
|
108388
108546
|
/** keyword data for the returned keyword */
|
|
108389
|
-
keyword_data?:
|
|
108547
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108390
108548
|
/** keyword search depth */
|
|
108391
108549
|
depth?: number | undefined;
|
|
108392
108550
|
/** list of related keywords
|
|
@@ -108403,7 +108561,7 @@ export class DataforseoLabsBingRelatedKeywordsLiveResultInfo implements IDatafor
|
|
|
108403
108561
|
seed_keyword?: string | undefined;
|
|
108404
108562
|
/** keyword data for the seed keyword
|
|
108405
108563
|
fields in the array are identical to that of keyword_data */
|
|
108406
|
-
seed_keyword_data?:
|
|
108564
|
+
seed_keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108407
108565
|
/** location code in a POST array */
|
|
108408
108566
|
location_code?: number | undefined;
|
|
108409
108567
|
/** language code in a POST array */
|
|
@@ -108434,7 +108592,7 @@ fields in the array are identical to that of keyword_data */
|
|
|
108434
108592
|
}
|
|
108435
108593
|
this.se_type = _data["se_type"];
|
|
108436
108594
|
this.seed_keyword = _data["seed_keyword"];
|
|
108437
|
-
this.seed_keyword_data = _data["seed_keyword_data"] ?
|
|
108595
|
+
this.seed_keyword_data = _data["seed_keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["seed_keyword_data"]) : <any>undefined;
|
|
108438
108596
|
this.location_code = _data["location_code"];
|
|
108439
108597
|
this.language_code = _data["language_code"];
|
|
108440
108598
|
this.total_count = _data["total_count"];
|
|
@@ -108483,7 +108641,7 @@ export interface IDataforseoLabsBingRelatedKeywordsLiveResultInfo {
|
|
|
108483
108641
|
seed_keyword?: string | undefined;
|
|
108484
108642
|
/** keyword data for the seed keyword
|
|
108485
108643
|
fields in the array are identical to that of keyword_data */
|
|
108486
|
-
seed_keyword_data?:
|
|
108644
|
+
seed_keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108487
108645
|
/** location code in a POST array */
|
|
108488
108646
|
location_code?: number | undefined;
|
|
108489
108647
|
/** language code in a POST array */
|
|
@@ -111084,7 +111242,7 @@ export class DataforseoLabsleKeywordsForAppLiveItem implements IDataforseoLabsle
|
|
|
111084
111242
|
/** search engine type */
|
|
111085
111243
|
se_type?: string | undefined;
|
|
111086
111244
|
/** keyword data for the returned keyword */
|
|
111087
|
-
keyword_data?:
|
|
111245
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
111088
111246
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
111089
111247
|
ranked_serp_element?: AppRankedSerpElementInfo | undefined;
|
|
111090
111248
|
|
|
@@ -111106,7 +111264,7 @@ export class DataforseoLabsleKeywordsForAppLiveItem implements IDataforseoLabsle
|
|
|
111106
111264
|
this[property] = _data[property];
|
|
111107
111265
|
}
|
|
111108
111266
|
this.se_type = _data["se_type"];
|
|
111109
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
111267
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
111110
111268
|
this.ranked_serp_element = _data["ranked_serp_element"] ? AppRankedSerpElementInfo.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
111111
111269
|
}
|
|
111112
111270
|
}
|
|
@@ -111135,7 +111293,7 @@ export interface IDataforseoLabsleKeywordsForAppLiveItem {
|
|
|
111135
111293
|
/** search engine type */
|
|
111136
111294
|
se_type?: string | undefined;
|
|
111137
111295
|
/** keyword data for the returned keyword */
|
|
111138
|
-
keyword_data?:
|
|
111296
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
111139
111297
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
111140
111298
|
ranked_serp_element?: AppRankedSerpElementInfo | undefined;
|
|
111141
111299
|
|
|
@@ -112248,7 +112406,7 @@ export class DataforseoLabsleAppIntersectionLiveItem implements IDataforseoLabsl
|
|
|
112248
112406
|
/** search engine type */
|
|
112249
112407
|
se_type?: string | undefined;
|
|
112250
112408
|
/** keyword data for the returned keyword */
|
|
112251
|
-
keyword_data?:
|
|
112409
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
112252
112410
|
/** contains SERP data for the returned keyword
|
|
112253
112411
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
112254
112412
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -112272,7 +112430,7 @@ depending on the number of specified app IDs, it can contain from 1 to 20 arrays
|
|
|
112272
112430
|
this[property] = _data[property];
|
|
112273
112431
|
}
|
|
112274
112432
|
this.se_type = _data["se_type"];
|
|
112275
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
112433
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
112276
112434
|
if (_data["intersection_result"]) {
|
|
112277
112435
|
this.intersection_result = {} as any;
|
|
112278
112436
|
for (let key in _data["intersection_result"]) {
|
|
@@ -112313,7 +112471,7 @@ export interface IDataforseoLabsleAppIntersectionLiveItem {
|
|
|
112313
112471
|
/** search engine type */
|
|
112314
112472
|
se_type?: string | undefined;
|
|
112315
112473
|
/** keyword data for the returned keyword */
|
|
112316
|
-
keyword_data?:
|
|
112474
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
112317
112475
|
/** contains SERP data for the returned keyword
|
|
112318
112476
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
112319
112477
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -151721,145 +151879,6 @@ the amount of time the browser needs to complete downloading a resource */
|
|
|
151721
151879
|
[key: string]: any;
|
|
151722
151880
|
}
|
|
151723
151881
|
|
|
151724
|
-
export class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
|
|
151725
|
-
/** status of the crawling session
|
|
151726
|
-
possible values: in_progress, finished */
|
|
151727
|
-
crawl_progress?: string | undefined;
|
|
151728
|
-
/** details of the crawling session */
|
|
151729
|
-
crawl_status?: CrawlStatusInfo | undefined;
|
|
151730
|
-
/** total number of relevant items crawled */
|
|
151731
|
-
total_items_count?: number | undefined;
|
|
151732
|
-
/** number of items in the results array */
|
|
151733
|
-
items_count?: number | undefined;
|
|
151734
|
-
/** items array */
|
|
151735
|
-
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
151736
|
-
|
|
151737
|
-
[key: string]: any;
|
|
151738
|
-
|
|
151739
|
-
constructor(data?: IOnPageResourcesResultInfo) {
|
|
151740
|
-
if (data) {
|
|
151741
|
-
for (var property in data) {
|
|
151742
|
-
if (data.hasOwnProperty(property))
|
|
151743
|
-
(<any>this)[property] = (<any>data)[property];
|
|
151744
|
-
}
|
|
151745
|
-
}
|
|
151746
|
-
}
|
|
151747
|
-
|
|
151748
|
-
init(_data?: any) {
|
|
151749
|
-
if (_data) {
|
|
151750
|
-
for (var property in _data) {
|
|
151751
|
-
if (_data.hasOwnProperty(property))
|
|
151752
|
-
this[property] = _data[property];
|
|
151753
|
-
}
|
|
151754
|
-
this.crawl_progress = _data["crawl_progress"];
|
|
151755
|
-
this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
|
|
151756
|
-
this.total_items_count = _data["total_items_count"];
|
|
151757
|
-
this.items_count = _data["items_count"];
|
|
151758
|
-
if (Array.isArray(_data["items"])) {
|
|
151759
|
-
this.items = [] as any;
|
|
151760
|
-
for (let item of _data["items"])
|
|
151761
|
-
this.items!.push(BaseOnPageResourceItemInfo.fromJS(item));
|
|
151762
|
-
}
|
|
151763
|
-
}
|
|
151764
|
-
}
|
|
151765
|
-
|
|
151766
|
-
static fromJS(data: any): OnPageResourcesResultInfo {
|
|
151767
|
-
data = typeof data === 'object' ? data : {};
|
|
151768
|
-
let result = new OnPageResourcesResultInfo();
|
|
151769
|
-
result.init(data);
|
|
151770
|
-
return result;
|
|
151771
|
-
}
|
|
151772
|
-
|
|
151773
|
-
toJSON(data?: any) {
|
|
151774
|
-
data = typeof data === 'object' ? data : {};
|
|
151775
|
-
for (var property in this) {
|
|
151776
|
-
if (this.hasOwnProperty(property))
|
|
151777
|
-
data[property] = this[property];
|
|
151778
|
-
}
|
|
151779
|
-
data["crawl_progress"] = this.crawl_progress;
|
|
151780
|
-
data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
|
|
151781
|
-
data["total_items_count"] = this.total_items_count;
|
|
151782
|
-
data["items_count"] = this.items_count;
|
|
151783
|
-
if (Array.isArray(this.items)) {
|
|
151784
|
-
data["items"] = [];
|
|
151785
|
-
for (let item of this.items)
|
|
151786
|
-
data["items"].push(item.toJSON());
|
|
151787
|
-
}
|
|
151788
|
-
return data;
|
|
151789
|
-
}
|
|
151790
|
-
}
|
|
151791
|
-
|
|
151792
|
-
export interface IOnPageResourcesResultInfo {
|
|
151793
|
-
/** status of the crawling session
|
|
151794
|
-
possible values: in_progress, finished */
|
|
151795
|
-
crawl_progress?: string | undefined;
|
|
151796
|
-
/** details of the crawling session */
|
|
151797
|
-
crawl_status?: CrawlStatusInfo | undefined;
|
|
151798
|
-
/** total number of relevant items crawled */
|
|
151799
|
-
total_items_count?: number | undefined;
|
|
151800
|
-
/** number of items in the results array */
|
|
151801
|
-
items_count?: number | undefined;
|
|
151802
|
-
/** items array */
|
|
151803
|
-
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
151804
|
-
|
|
151805
|
-
[key: string]: any;
|
|
151806
|
-
}
|
|
151807
|
-
|
|
151808
|
-
export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
|
|
151809
|
-
/** array of results */
|
|
151810
|
-
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
151811
|
-
|
|
151812
|
-
[key: string]: any;
|
|
151813
|
-
|
|
151814
|
-
constructor(data?: IOnPageResourcesTaskInfo) {
|
|
151815
|
-
super(data);
|
|
151816
|
-
}
|
|
151817
|
-
|
|
151818
|
-
init(_data?: any) {
|
|
151819
|
-
super.init(_data);
|
|
151820
|
-
if (_data) {
|
|
151821
|
-
for (var property in _data) {
|
|
151822
|
-
if (_data.hasOwnProperty(property))
|
|
151823
|
-
this[property] = _data[property];
|
|
151824
|
-
}
|
|
151825
|
-
if (Array.isArray(_data["result"])) {
|
|
151826
|
-
this.result = [] as any;
|
|
151827
|
-
for (let item of _data["result"])
|
|
151828
|
-
this.result!.push(OnPageResourcesResultInfo.fromJS(item));
|
|
151829
|
-
}
|
|
151830
|
-
}
|
|
151831
|
-
}
|
|
151832
|
-
|
|
151833
|
-
static fromJS(data: any): OnPageResourcesTaskInfo {
|
|
151834
|
-
data = typeof data === 'object' ? data : {};
|
|
151835
|
-
let result = new OnPageResourcesTaskInfo();
|
|
151836
|
-
result.init(data);
|
|
151837
|
-
return result;
|
|
151838
|
-
}
|
|
151839
|
-
|
|
151840
|
-
toJSON(data?: any) {
|
|
151841
|
-
data = typeof data === 'object' ? data : {};
|
|
151842
|
-
for (var property in this) {
|
|
151843
|
-
if (this.hasOwnProperty(property))
|
|
151844
|
-
data[property] = this[property];
|
|
151845
|
-
}
|
|
151846
|
-
if (Array.isArray(this.result)) {
|
|
151847
|
-
data["result"] = [];
|
|
151848
|
-
for (let item of this.result)
|
|
151849
|
-
data["result"].push(item.toJSON());
|
|
151850
|
-
}
|
|
151851
|
-
super.toJSON(data);
|
|
151852
|
-
return data;
|
|
151853
|
-
}
|
|
151854
|
-
}
|
|
151855
|
-
|
|
151856
|
-
export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
|
|
151857
|
-
/** array of results */
|
|
151858
|
-
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
151859
|
-
|
|
151860
|
-
[key: string]: any;
|
|
151861
|
-
}
|
|
151862
|
-
|
|
151863
151882
|
export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
151864
151883
|
/** resource properties
|
|
151865
151884
|
the value depends on the resource_type
|
|
@@ -151894,6 +151913,8 @@ example:
|
|
|
151894
151913
|
/** resource check-ups
|
|
151895
151914
|
contents of the array depend on the resource_type */
|
|
151896
151915
|
checks?: { [key: string]: boolean; } | undefined;
|
|
151916
|
+
/** resource errors and warnings */
|
|
151917
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
151897
151918
|
/** type of encoding */
|
|
151898
151919
|
content_encoding?: string | undefined;
|
|
151899
151920
|
/** types of media used to display a resource */
|
|
@@ -151908,140 +151929,277 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
151908
151929
|
/** contains data on changes related to the resource
|
|
151909
151930
|
if there is no data, the value will be null */
|
|
151910
151931
|
last_modified?: LastModified | undefined;
|
|
151932
|
+
|
|
151933
|
+
[key: string]: any;
|
|
151934
|
+
|
|
151935
|
+
constructor(data?: IScriptResourceElementItem) {
|
|
151936
|
+
super(data);
|
|
151937
|
+
this._discriminator = "script";
|
|
151938
|
+
}
|
|
151939
|
+
|
|
151940
|
+
init(_data?: any) {
|
|
151941
|
+
super.init(_data);
|
|
151942
|
+
if (_data) {
|
|
151943
|
+
for (var property in _data) {
|
|
151944
|
+
if (_data.hasOwnProperty(property))
|
|
151945
|
+
this[property] = _data[property];
|
|
151946
|
+
}
|
|
151947
|
+
this.meta = _data["meta"] ? ResourceMetaInfo.fromJS(_data["meta"]) : <any>undefined;
|
|
151948
|
+
this.status_code = _data["status_code"];
|
|
151949
|
+
this.location = _data["location"];
|
|
151950
|
+
this.url = _data["url"];
|
|
151951
|
+
this.size = _data["size"];
|
|
151952
|
+
this.encoded_size = _data["encoded_size"];
|
|
151953
|
+
this.total_transfer_size = _data["total_transfer_size"];
|
|
151954
|
+
this.fetch_time = _data["fetch_time"];
|
|
151955
|
+
this.fetch_timing = _data["fetch_timing"] ? FetchTiming.fromJS(_data["fetch_timing"]) : <any>undefined;
|
|
151956
|
+
this.cache_control = _data["cache_control"] ? CacheControl.fromJS(_data["cache_control"]) : <any>undefined;
|
|
151957
|
+
if (_data["checks"]) {
|
|
151958
|
+
this.checks = {} as any;
|
|
151959
|
+
for (let key in _data["checks"]) {
|
|
151960
|
+
if (_data["checks"].hasOwnProperty(key))
|
|
151961
|
+
(<any>this.checks)![key] = _data["checks"][key];
|
|
151962
|
+
}
|
|
151963
|
+
}
|
|
151964
|
+
this.resource_errors = _data["resource_errors"] ? OnPageResourceIssueInfo.fromJS(_data["resource_errors"]) : <any>undefined;
|
|
151965
|
+
this.content_encoding = _data["content_encoding"];
|
|
151966
|
+
this.media_type = _data["media_type"];
|
|
151967
|
+
this.accept_type = _data["accept_type"];
|
|
151968
|
+
this.server = _data["server"];
|
|
151969
|
+
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
151970
|
+
}
|
|
151971
|
+
}
|
|
151972
|
+
|
|
151973
|
+
static fromJS(data: any): ScriptResourceElementItem {
|
|
151974
|
+
data = typeof data === 'object' ? data : {};
|
|
151975
|
+
let result = new ScriptResourceElementItem();
|
|
151976
|
+
result.init(data);
|
|
151977
|
+
return result;
|
|
151978
|
+
}
|
|
151979
|
+
|
|
151980
|
+
toJSON(data?: any) {
|
|
151981
|
+
data = typeof data === 'object' ? data : {};
|
|
151982
|
+
for (var property in this) {
|
|
151983
|
+
if (this.hasOwnProperty(property))
|
|
151984
|
+
data[property] = this[property];
|
|
151985
|
+
}
|
|
151986
|
+
data["meta"] = this.meta ? this.meta.toJSON() : <any>undefined;
|
|
151987
|
+
data["status_code"] = this.status_code;
|
|
151988
|
+
data["location"] = this.location;
|
|
151989
|
+
data["url"] = this.url;
|
|
151990
|
+
data["size"] = this.size;
|
|
151991
|
+
data["encoded_size"] = this.encoded_size;
|
|
151992
|
+
data["total_transfer_size"] = this.total_transfer_size;
|
|
151993
|
+
data["fetch_time"] = this.fetch_time;
|
|
151994
|
+
data["fetch_timing"] = this.fetch_timing ? this.fetch_timing.toJSON() : <any>undefined;
|
|
151995
|
+
data["cache_control"] = this.cache_control ? this.cache_control.toJSON() : <any>undefined;
|
|
151996
|
+
if (this.checks) {
|
|
151997
|
+
data["checks"] = {};
|
|
151998
|
+
for (let key in this.checks) {
|
|
151999
|
+
if (this.checks.hasOwnProperty(key))
|
|
152000
|
+
(<any>data["checks"])[key] = (<any>this.checks)[key];
|
|
152001
|
+
}
|
|
152002
|
+
}
|
|
152003
|
+
data["resource_errors"] = this.resource_errors ? this.resource_errors.toJSON() : <any>undefined;
|
|
152004
|
+
data["content_encoding"] = this.content_encoding;
|
|
152005
|
+
data["media_type"] = this.media_type;
|
|
152006
|
+
data["accept_type"] = this.accept_type;
|
|
152007
|
+
data["server"] = this.server;
|
|
152008
|
+
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
152009
|
+
super.toJSON(data);
|
|
152010
|
+
return data;
|
|
152011
|
+
}
|
|
152012
|
+
}
|
|
152013
|
+
|
|
152014
|
+
export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
152015
|
+
/** resource properties
|
|
152016
|
+
the value depends on the resource_type
|
|
152017
|
+
note that if you do not indicate a url when setting a task, resource’s meta is returned based on the data from the page where our crawler first saw the resource;
|
|
152018
|
+
to obtain resource’s meta from a particular url, specify that URL when setting a task */
|
|
152019
|
+
meta?: ResourceMetaInfo | undefined;
|
|
152020
|
+
/** status code of the page where a given resource is located */
|
|
152021
|
+
status_code?: number | undefined;
|
|
152022
|
+
/** location header
|
|
152023
|
+
indicates the URL to redirect a page to */
|
|
152024
|
+
location?: string | undefined;
|
|
152025
|
+
/** resource URL */
|
|
152026
|
+
url?: string | undefined;
|
|
152027
|
+
/** resource size
|
|
152028
|
+
indicates the size of a given resource measured in bytes */
|
|
152029
|
+
size?: number | undefined;
|
|
152030
|
+
/** resource size after encoding
|
|
152031
|
+
indicates the size of the encoded resource measured in bytes */
|
|
152032
|
+
encoded_size?: number | undefined;
|
|
152033
|
+
/** compressed resource size
|
|
152034
|
+
indicates the compressed size of a given resource in bytes */
|
|
152035
|
+
total_transfer_size?: number | undefined;
|
|
152036
|
+
/** date and time when a resource was fetched
|
|
152037
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
152038
|
+
example:
|
|
152039
|
+
2021-02-17 13:54:15 +00:00 */
|
|
152040
|
+
fetch_time?: string | undefined;
|
|
152041
|
+
/** resource fething time range */
|
|
152042
|
+
fetch_timing?: FetchTiming | undefined;
|
|
152043
|
+
/** instructions for caching */
|
|
152044
|
+
cache_control?: CacheControl | undefined;
|
|
152045
|
+
/** resource check-ups
|
|
152046
|
+
contents of the array depend on the resource_type */
|
|
152047
|
+
checks?: { [key: string]: boolean; } | undefined;
|
|
151911
152048
|
/** resource errors and warnings */
|
|
151912
152049
|
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
151913
|
-
|
|
151914
|
-
|
|
151915
|
-
|
|
151916
|
-
|
|
151917
|
-
|
|
151918
|
-
|
|
151919
|
-
|
|
151920
|
-
|
|
151921
|
-
|
|
151922
|
-
|
|
151923
|
-
|
|
151924
|
-
|
|
151925
|
-
|
|
151926
|
-
|
|
151927
|
-
|
|
151928
|
-
|
|
151929
|
-
|
|
151930
|
-
|
|
151931
|
-
|
|
151932
|
-
|
|
151933
|
-
|
|
151934
|
-
|
|
151935
|
-
|
|
151936
|
-
|
|
151937
|
-
|
|
151938
|
-
|
|
151939
|
-
|
|
151940
|
-
|
|
151941
|
-
|
|
151942
|
-
|
|
151943
|
-
|
|
151944
|
-
|
|
151945
|
-
|
|
151946
|
-
|
|
151947
|
-
|
|
151948
|
-
|
|
151949
|
-
|
|
151950
|
-
|
|
151951
|
-
|
|
151952
|
-
|
|
151953
|
-
|
|
151954
|
-
|
|
151955
|
-
|
|
151956
|
-
|
|
151957
|
-
|
|
151958
|
-
|
|
151959
|
-
|
|
151960
|
-
|
|
151961
|
-
|
|
151962
|
-
|
|
151963
|
-
|
|
151964
|
-
|
|
151965
|
-
|
|
151966
|
-
|
|
151967
|
-
|
|
151968
|
-
|
|
151969
|
-
|
|
151970
|
-
|
|
151971
|
-
|
|
151972
|
-
|
|
151973
|
-
|
|
151974
|
-
data
|
|
151975
|
-
|
|
151976
|
-
|
|
151977
|
-
|
|
151978
|
-
|
|
151979
|
-
|
|
151980
|
-
|
|
151981
|
-
|
|
151982
|
-
|
|
151983
|
-
|
|
151984
|
-
|
|
151985
|
-
|
|
151986
|
-
data["
|
|
151987
|
-
data["
|
|
151988
|
-
data["
|
|
151989
|
-
data["
|
|
151990
|
-
|
|
151991
|
-
|
|
151992
|
-
|
|
151993
|
-
|
|
151994
|
-
|
|
151995
|
-
|
|
151996
|
-
|
|
151997
|
-
|
|
151998
|
-
|
|
151999
|
-
|
|
152000
|
-
|
|
152001
|
-
|
|
152002
|
-
|
|
152003
|
-
/**
|
|
152004
|
-
|
|
152005
|
-
|
|
152006
|
-
|
|
152007
|
-
|
|
152008
|
-
|
|
152009
|
-
|
|
152010
|
-
|
|
152011
|
-
|
|
152012
|
-
|
|
152013
|
-
|
|
152014
|
-
|
|
152015
|
-
|
|
152016
|
-
|
|
152017
|
-
|
|
152018
|
-
|
|
152019
|
-
|
|
152020
|
-
|
|
152021
|
-
|
|
152022
|
-
|
|
152023
|
-
|
|
152024
|
-
|
|
152025
|
-
|
|
152026
|
-
|
|
152027
|
-
|
|
152028
|
-
|
|
152029
|
-
|
|
152030
|
-
|
|
152031
|
-
|
|
152032
|
-
|
|
152033
|
-
|
|
152034
|
-
for
|
|
152035
|
-
|
|
152036
|
-
|
|
152037
|
-
|
|
152038
|
-
|
|
152039
|
-
|
|
152040
|
-
|
|
152041
|
-
|
|
152042
|
-
|
|
152043
|
-
|
|
152044
|
-
|
|
152050
|
+
/** type of encoding */
|
|
152051
|
+
content_encoding?: string | undefined;
|
|
152052
|
+
/** types of media used to display a resource */
|
|
152053
|
+
media_type?: string | undefined;
|
|
152054
|
+
/** indicates the expected type of resource
|
|
152055
|
+
for example, if "resource_type": "broken", accept_type will indicate the type of the broken resource
|
|
152056
|
+
possible values:
|
|
152057
|
+
any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, other, font */
|
|
152058
|
+
accept_type?: string | undefined;
|
|
152059
|
+
/** server version */
|
|
152060
|
+
server?: string | undefined;
|
|
152061
|
+
/** contains data on changes related to the resource
|
|
152062
|
+
if there is no data, the value will be null */
|
|
152063
|
+
last_modified?: LastModified | undefined;
|
|
152064
|
+
|
|
152065
|
+
[key: string]: any;
|
|
152066
|
+
}
|
|
152067
|
+
|
|
152068
|
+
export class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
|
|
152069
|
+
/** status of the crawling session
|
|
152070
|
+
possible values: in_progress, finished */
|
|
152071
|
+
crawl_progress?: string | undefined;
|
|
152072
|
+
/** details of the crawling session */
|
|
152073
|
+
crawl_status?: CrawlStatusInfo | undefined;
|
|
152074
|
+
/** total number of relevant items crawled */
|
|
152075
|
+
total_items_count?: number | undefined;
|
|
152076
|
+
/** number of items in the results array */
|
|
152077
|
+
items_count?: number | undefined;
|
|
152078
|
+
/** items array */
|
|
152079
|
+
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
152080
|
+
|
|
152081
|
+
[key: string]: any;
|
|
152082
|
+
|
|
152083
|
+
constructor(data?: IOnPageResourcesResultInfo) {
|
|
152084
|
+
if (data) {
|
|
152085
|
+
for (var property in data) {
|
|
152086
|
+
if (data.hasOwnProperty(property))
|
|
152087
|
+
(<any>this)[property] = (<any>data)[property];
|
|
152088
|
+
}
|
|
152089
|
+
}
|
|
152090
|
+
}
|
|
152091
|
+
|
|
152092
|
+
init(_data?: any) {
|
|
152093
|
+
if (_data) {
|
|
152094
|
+
for (var property in _data) {
|
|
152095
|
+
if (_data.hasOwnProperty(property))
|
|
152096
|
+
this[property] = _data[property];
|
|
152097
|
+
}
|
|
152098
|
+
this.crawl_progress = _data["crawl_progress"];
|
|
152099
|
+
this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
|
|
152100
|
+
this.total_items_count = _data["total_items_count"];
|
|
152101
|
+
this.items_count = _data["items_count"];
|
|
152102
|
+
if (Array.isArray(_data["items"])) {
|
|
152103
|
+
this.items = [] as any;
|
|
152104
|
+
for (let item of _data["items"])
|
|
152105
|
+
this.items!.push(BaseOnPageResourceItemInfo.fromJS(item));
|
|
152106
|
+
}
|
|
152107
|
+
}
|
|
152108
|
+
}
|
|
152109
|
+
|
|
152110
|
+
static fromJS(data: any): OnPageResourcesResultInfo {
|
|
152111
|
+
data = typeof data === 'object' ? data : {};
|
|
152112
|
+
let result = new OnPageResourcesResultInfo();
|
|
152113
|
+
result.init(data);
|
|
152114
|
+
return result;
|
|
152115
|
+
}
|
|
152116
|
+
|
|
152117
|
+
toJSON(data?: any) {
|
|
152118
|
+
data = typeof data === 'object' ? data : {};
|
|
152119
|
+
for (var property in this) {
|
|
152120
|
+
if (this.hasOwnProperty(property))
|
|
152121
|
+
data[property] = this[property];
|
|
152122
|
+
}
|
|
152123
|
+
data["crawl_progress"] = this.crawl_progress;
|
|
152124
|
+
data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
|
|
152125
|
+
data["total_items_count"] = this.total_items_count;
|
|
152126
|
+
data["items_count"] = this.items_count;
|
|
152127
|
+
if (Array.isArray(this.items)) {
|
|
152128
|
+
data["items"] = [];
|
|
152129
|
+
for (let item of this.items)
|
|
152130
|
+
data["items"].push(item.toJSON());
|
|
152131
|
+
}
|
|
152132
|
+
return data;
|
|
152133
|
+
}
|
|
152134
|
+
}
|
|
152135
|
+
|
|
152136
|
+
export interface IOnPageResourcesResultInfo {
|
|
152137
|
+
/** status of the crawling session
|
|
152138
|
+
possible values: in_progress, finished */
|
|
152139
|
+
crawl_progress?: string | undefined;
|
|
152140
|
+
/** details of the crawling session */
|
|
152141
|
+
crawl_status?: CrawlStatusInfo | undefined;
|
|
152142
|
+
/** total number of relevant items crawled */
|
|
152143
|
+
total_items_count?: number | undefined;
|
|
152144
|
+
/** number of items in the results array */
|
|
152145
|
+
items_count?: number | undefined;
|
|
152146
|
+
/** items array */
|
|
152147
|
+
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
152148
|
+
|
|
152149
|
+
[key: string]: any;
|
|
152150
|
+
}
|
|
152151
|
+
|
|
152152
|
+
export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
|
|
152153
|
+
/** array of results */
|
|
152154
|
+
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
152155
|
+
|
|
152156
|
+
[key: string]: any;
|
|
152157
|
+
|
|
152158
|
+
constructor(data?: IOnPageResourcesTaskInfo) {
|
|
152159
|
+
super(data);
|
|
152160
|
+
}
|
|
152161
|
+
|
|
152162
|
+
init(_data?: any) {
|
|
152163
|
+
super.init(_data);
|
|
152164
|
+
if (_data) {
|
|
152165
|
+
for (var property in _data) {
|
|
152166
|
+
if (_data.hasOwnProperty(property))
|
|
152167
|
+
this[property] = _data[property];
|
|
152168
|
+
}
|
|
152169
|
+
if (Array.isArray(_data["result"])) {
|
|
152170
|
+
this.result = [] as any;
|
|
152171
|
+
for (let item of _data["result"])
|
|
152172
|
+
this.result!.push(OnPageResourcesResultInfo.fromJS(item));
|
|
152173
|
+
}
|
|
152174
|
+
}
|
|
152175
|
+
}
|
|
152176
|
+
|
|
152177
|
+
static fromJS(data: any): OnPageResourcesTaskInfo {
|
|
152178
|
+
data = typeof data === 'object' ? data : {};
|
|
152179
|
+
let result = new OnPageResourcesTaskInfo();
|
|
152180
|
+
result.init(data);
|
|
152181
|
+
return result;
|
|
152182
|
+
}
|
|
152183
|
+
|
|
152184
|
+
toJSON(data?: any) {
|
|
152185
|
+
data = typeof data === 'object' ? data : {};
|
|
152186
|
+
for (var property in this) {
|
|
152187
|
+
if (this.hasOwnProperty(property))
|
|
152188
|
+
data[property] = this[property];
|
|
152189
|
+
}
|
|
152190
|
+
if (Array.isArray(this.result)) {
|
|
152191
|
+
data["result"] = [];
|
|
152192
|
+
for (let item of this.result)
|
|
152193
|
+
data["result"].push(item.toJSON());
|
|
152194
|
+
}
|
|
152195
|
+
super.toJSON(data);
|
|
152196
|
+
return data;
|
|
152197
|
+
}
|
|
152198
|
+
}
|
|
152199
|
+
|
|
152200
|
+
export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
|
|
152201
|
+
/** array of results */
|
|
152202
|
+
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
152045
152203
|
|
|
152046
152204
|
[key: string]: any;
|
|
152047
152205
|
}
|
|
@@ -171872,8 +172030,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
171872
172030
|
/** absolute rank in SERP
|
|
171873
172031
|
absolute position among all the elements found in Google Shopping SERP */
|
|
171874
172032
|
rank_absolute?: number | undefined;
|
|
171875
|
-
/**
|
|
171876
|
-
|
|
172033
|
+
/** alignment of the element in SERP
|
|
172034
|
+
can take the following values:
|
|
171877
172035
|
left, right */
|
|
171878
172036
|
position?: string | undefined;
|
|
171879
172037
|
/** XPath of the element */
|
|
@@ -171996,8 +172154,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
171996
172154
|
/** absolute rank in SERP
|
|
171997
172155
|
absolute position among all the elements found in Google Shopping SERP */
|
|
171998
172156
|
rank_absolute?: number | undefined;
|
|
171999
|
-
/**
|
|
172000
|
-
|
|
172157
|
+
/** alignment of the element in SERP
|
|
172158
|
+
can take the following values:
|
|
172001
172159
|
left, right */
|
|
172002
172160
|
position?: string | undefined;
|
|
172003
172161
|
/** XPath of the element */
|
|
@@ -172052,8 +172210,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
172052
172210
|
/** absolute rank in SERP
|
|
172053
172211
|
absolute position among all the elements found in Google Shopping SERP */
|
|
172054
172212
|
rank_absolute?: number | undefined;
|
|
172055
|
-
/**
|
|
172056
|
-
|
|
172213
|
+
/** alignment of the element in SERP
|
|
172214
|
+
can take the following values:
|
|
172057
172215
|
left, right */
|
|
172058
172216
|
position?: string | undefined;
|
|
172059
172217
|
/** XPath of the element */
|
|
@@ -172090,9 +172248,6 @@ the shop popularity rate based on product reviews */
|
|
|
172090
172248
|
using this parameter you can get a URL of the advertisement in Google Shopping Sellers Ad URL
|
|
172091
172249
|
in this case, the value equals null */
|
|
172092
172250
|
shop_ad_aclk?: string | undefined;
|
|
172093
|
-
/** indicated condition of the product
|
|
172094
|
-
possible values: Used, Refurbished, New, null */
|
|
172095
|
-
product_condition?: string | undefined;
|
|
172096
172251
|
|
|
172097
172252
|
[key: string]: any;
|
|
172098
172253
|
|
|
@@ -172124,7 +172279,6 @@ possible values: Used, Refurbished, New, null */
|
|
|
172124
172279
|
this.seller_name = _data["seller_name"];
|
|
172125
172280
|
this.rating = _data["rating"] ? RatingElement.fromJS(_data["rating"]) : <any>undefined;
|
|
172126
172281
|
this.shop_ad_aclk = _data["shop_ad_aclk"];
|
|
172127
|
-
this.product_condition = _data["product_condition"];
|
|
172128
172282
|
}
|
|
172129
172283
|
}
|
|
172130
172284
|
|
|
@@ -172157,7 +172311,6 @@ possible values: Used, Refurbished, New, null */
|
|
|
172157
172311
|
data["seller_name"] = this.seller_name;
|
|
172158
172312
|
data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
|
|
172159
172313
|
data["shop_ad_aclk"] = this.shop_ad_aclk;
|
|
172160
|
-
data["product_condition"] = this.product_condition;
|
|
172161
172314
|
super.toJSON(data);
|
|
172162
172315
|
return data;
|
|
172163
172316
|
}
|
|
@@ -172170,8 +172323,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
172170
172323
|
/** absolute rank in SERP
|
|
172171
172324
|
absolute position among all the elements found in Google Shopping SERP */
|
|
172172
172325
|
rank_absolute?: number | undefined;
|
|
172173
|
-
/**
|
|
172174
|
-
|
|
172326
|
+
/** alignment of the element in SERP
|
|
172327
|
+
can take the following values:
|
|
172175
172328
|
left, right */
|
|
172176
172329
|
position?: string | undefined;
|
|
172177
172330
|
/** XPath of the element */
|
|
@@ -172208,9 +172361,6 @@ the shop popularity rate based on product reviews */
|
|
|
172208
172361
|
using this parameter you can get a URL of the advertisement in Google Shopping Sellers Ad URL
|
|
172209
172362
|
in this case, the value equals null */
|
|
172210
172363
|
shop_ad_aclk?: string | undefined;
|
|
172211
|
-
/** indicated condition of the product
|
|
172212
|
-
possible values: Used, Refurbished, New, null */
|
|
172213
|
-
product_condition?: string | undefined;
|
|
172214
172364
|
|
|
172215
172365
|
[key: string]: any;
|
|
172216
172366
|
}
|