dataforseo-client 1.0.10 → 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 +230 -160
- package/main.js +227 -145
- package/main.js.map +1 -1
- package/main.ts +418 -268
- package/package.json +1 -1
package/main.ts
CHANGED
|
@@ -20660,13 +20660,13 @@ export class BaseOnPageResourceItemInfo implements IBaseOnPageResourceItemInfo {
|
|
|
20660
20660
|
result.init(data);
|
|
20661
20661
|
return result;
|
|
20662
20662
|
}
|
|
20663
|
-
if (data["resource_type"] === "
|
|
20664
|
-
let result = new
|
|
20663
|
+
if (data["resource_type"] === "stylesheet") {
|
|
20664
|
+
let result = new StylesheetResourceElementItem();
|
|
20665
20665
|
result.init(data);
|
|
20666
20666
|
return result;
|
|
20667
20667
|
}
|
|
20668
|
-
if (data["resource_type"] === "
|
|
20669
|
-
let result = new
|
|
20668
|
+
if (data["resource_type"] === "script") {
|
|
20669
|
+
let result = new ScriptResourceElementItem();
|
|
20670
20670
|
result.init(data);
|
|
20671
20671
|
return result;
|
|
20672
20672
|
}
|
|
@@ -32855,6 +32855,8 @@ export class PopularProductsElement implements IPopularProductsElement {
|
|
|
32855
32855
|
description?: string | undefined;
|
|
32856
32856
|
/** seller of the product */
|
|
32857
32857
|
seller?: string | undefined;
|
|
32858
|
+
/** URL of the image */
|
|
32859
|
+
image_url?: string | undefined;
|
|
32858
32860
|
/** price indicated in the element */
|
|
32859
32861
|
price?: PriceInfo | undefined;
|
|
32860
32862
|
/** the item’s rating
|
|
@@ -32882,6 +32884,7 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
32882
32884
|
this.title = _data["title"];
|
|
32883
32885
|
this.description = _data["description"];
|
|
32884
32886
|
this.seller = _data["seller"];
|
|
32887
|
+
this.image_url = _data["image_url"];
|
|
32885
32888
|
this.price = _data["price"] ? PriceInfo.fromJS(_data["price"]) : <any>undefined;
|
|
32886
32889
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
32887
32890
|
}
|
|
@@ -32904,6 +32907,7 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
32904
32907
|
data["title"] = this.title;
|
|
32905
32908
|
data["description"] = this.description;
|
|
32906
32909
|
data["seller"] = this.seller;
|
|
32910
|
+
data["image_url"] = this.image_url;
|
|
32907
32911
|
data["price"] = this.price ? this.price.toJSON() : <any>undefined;
|
|
32908
32912
|
data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
|
|
32909
32913
|
return data;
|
|
@@ -32919,6 +32923,8 @@ export interface IPopularProductsElement {
|
|
|
32919
32923
|
description?: string | undefined;
|
|
32920
32924
|
/** seller of the product */
|
|
32921
32925
|
seller?: string | undefined;
|
|
32926
|
+
/** URL of the image */
|
|
32927
|
+
image_url?: string | undefined;
|
|
32922
32928
|
/** price indicated in the element */
|
|
32923
32929
|
price?: PriceInfo | undefined;
|
|
32924
32930
|
/** the item’s rating
|
|
@@ -32944,6 +32950,8 @@ left, right */
|
|
|
32944
32950
|
position?: string | undefined;
|
|
32945
32951
|
/** the XPath of the element */
|
|
32946
32952
|
xpath?: string | undefined;
|
|
32953
|
+
/** title of the row */
|
|
32954
|
+
title?: string | undefined;
|
|
32947
32955
|
/** additional items present in the element
|
|
32948
32956
|
if there are none, equals null */
|
|
32949
32957
|
items?: (PopularProductsElement | undefined)[] | undefined;
|
|
@@ -32970,6 +32978,7 @@ equals null if calculate_rectangles in the POST request is not set to true */
|
|
|
32970
32978
|
this.rank_absolute = _data["rank_absolute"];
|
|
32971
32979
|
this.position = _data["position"];
|
|
32972
32980
|
this.xpath = _data["xpath"];
|
|
32981
|
+
this.title = _data["title"];
|
|
32973
32982
|
if (Array.isArray(_data["items"])) {
|
|
32974
32983
|
this.items = [] as any;
|
|
32975
32984
|
for (let item of _data["items"])
|
|
@@ -32996,6 +33005,7 @@ equals null if calculate_rectangles in the POST request is not set to true */
|
|
|
32996
33005
|
data["rank_absolute"] = this.rank_absolute;
|
|
32997
33006
|
data["position"] = this.position;
|
|
32998
33007
|
data["xpath"] = this.xpath;
|
|
33008
|
+
data["title"] = this.title;
|
|
32999
33009
|
if (Array.isArray(this.items)) {
|
|
33000
33010
|
data["items"] = [];
|
|
33001
33011
|
for (let item of this.items)
|
|
@@ -33023,6 +33033,8 @@ left, right */
|
|
|
33023
33033
|
position?: string | undefined;
|
|
33024
33034
|
/** the XPath of the element */
|
|
33025
33035
|
xpath?: string | undefined;
|
|
33036
|
+
/** title of the row */
|
|
33037
|
+
title?: string | undefined;
|
|
33026
33038
|
/** additional items present in the element
|
|
33027
33039
|
if there are none, equals null */
|
|
33028
33040
|
items?: (PopularProductsElement | undefined)[] | undefined;
|
|
@@ -43880,8 +43892,7 @@ top_stories, news_search */
|
|
|
43880
43892
|
se_results_count?: number | undefined;
|
|
43881
43893
|
/** the number of results returned in the items array */
|
|
43882
43894
|
items_count?: number | undefined;
|
|
43883
|
-
/**
|
|
43884
|
-
if there are none, equals null */
|
|
43895
|
+
/** elements of search results found in SERP */
|
|
43885
43896
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
43886
43897
|
|
|
43887
43898
|
[key: string]: any;
|
|
@@ -43993,8 +44004,7 @@ top_stories, news_search */
|
|
|
43993
44004
|
se_results_count?: number | undefined;
|
|
43994
44005
|
/** the number of results returned in the items array */
|
|
43995
44006
|
items_count?: number | undefined;
|
|
43996
|
-
/**
|
|
43997
|
-
if there are none, equals null */
|
|
44007
|
+
/** elements of search results found in SERP */
|
|
43998
44008
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
43999
44009
|
|
|
44000
44010
|
[key: string]: any;
|
|
@@ -57620,7 +57630,8 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
|
|
|
57620
57630
|
se_results_count?: number | undefined;
|
|
57621
57631
|
/** the number of results returned in the items array */
|
|
57622
57632
|
items_count?: number | undefined;
|
|
57623
|
-
/** items
|
|
57633
|
+
/** additional items present in the element
|
|
57634
|
+
if there are none, equals null */
|
|
57624
57635
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
57625
57636
|
|
|
57626
57637
|
[key: string]: any;
|
|
@@ -57732,7 +57743,8 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
|
|
|
57732
57743
|
se_results_count?: number | undefined;
|
|
57733
57744
|
/** the number of results returned in the items array */
|
|
57734
57745
|
items_count?: number | undefined;
|
|
57735
|
-
/** items
|
|
57746
|
+
/** additional items present in the element
|
|
57747
|
+
if there are none, equals null */
|
|
57736
57748
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
57737
57749
|
|
|
57738
57750
|
[key: string]: any;
|
|
@@ -88744,124 +88756,6 @@ you will find the specified tag value in the data object of the response */
|
|
|
88744
88756
|
[key: string]: any;
|
|
88745
88757
|
}
|
|
88746
88758
|
|
|
88747
|
-
export class KeywordData implements IKeywordData {
|
|
88748
|
-
/** search engine type */
|
|
88749
|
-
se_type?: string | undefined;
|
|
88750
|
-
/** returned keyword */
|
|
88751
|
-
keyword?: string | undefined;
|
|
88752
|
-
/** location code in a POST array */
|
|
88753
|
-
location_code?: number | undefined;
|
|
88754
|
-
/** language code in a POST array */
|
|
88755
|
-
language_code?: string | undefined;
|
|
88756
|
-
/** keyword data for the returned keyword */
|
|
88757
|
-
keyword_info?: KeywordInfo | undefined;
|
|
88758
|
-
/** additional information about the keyword */
|
|
88759
|
-
keyword_properties?: KeywordProperties | undefined;
|
|
88760
|
-
/** impressions data for the returned keyword idea
|
|
88761
|
-
Note that all data in the impressions_info object is deprecated and provided only as legacy to avoid maintenance issues
|
|
88762
|
-
daily_impressions values provide a more accurate alternative to Google search volume data;
|
|
88763
|
-
the 999 bid is used to mitigate account-specific factors Google considers when calculating impressions
|
|
88764
|
-
learn more about impressions in this help center article */
|
|
88765
|
-
impressions_info?: ImpressionsInfo | undefined;
|
|
88766
|
-
/** SERP data
|
|
88767
|
-
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 */
|
|
88768
|
-
serp_info?: SerpInfo | undefined;
|
|
88769
|
-
/** backlink data for the returned keyword
|
|
88770
|
-
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 */
|
|
88771
|
-
avg_backlinks_info?: AvgBacklinksInfo | undefined;
|
|
88772
|
-
/** search intent info for the returned keyword
|
|
88773
|
-
learn about search intent in this help center article */
|
|
88774
|
-
search_intent_info?: SearchIntentInfo | undefined;
|
|
88775
|
-
|
|
88776
|
-
[key: string]: any;
|
|
88777
|
-
|
|
88778
|
-
constructor(data?: IKeywordData) {
|
|
88779
|
-
if (data) {
|
|
88780
|
-
for (var property in data) {
|
|
88781
|
-
if (data.hasOwnProperty(property))
|
|
88782
|
-
(<any>this)[property] = (<any>data)[property];
|
|
88783
|
-
}
|
|
88784
|
-
}
|
|
88785
|
-
}
|
|
88786
|
-
|
|
88787
|
-
init(_data?: any) {
|
|
88788
|
-
if (_data) {
|
|
88789
|
-
for (var property in _data) {
|
|
88790
|
-
if (_data.hasOwnProperty(property))
|
|
88791
|
-
this[property] = _data[property];
|
|
88792
|
-
}
|
|
88793
|
-
this.se_type = _data["se_type"];
|
|
88794
|
-
this.keyword = _data["keyword"];
|
|
88795
|
-
this.location_code = _data["location_code"];
|
|
88796
|
-
this.language_code = _data["language_code"];
|
|
88797
|
-
this.keyword_info = _data["keyword_info"] ? KeywordInfo.fromJS(_data["keyword_info"]) : <any>undefined;
|
|
88798
|
-
this.keyword_properties = _data["keyword_properties"] ? KeywordProperties.fromJS(_data["keyword_properties"]) : <any>undefined;
|
|
88799
|
-
this.impressions_info = _data["impressions_info"] ? ImpressionsInfo.fromJS(_data["impressions_info"]) : <any>undefined;
|
|
88800
|
-
this.serp_info = _data["serp_info"] ? SerpInfo.fromJS(_data["serp_info"]) : <any>undefined;
|
|
88801
|
-
this.avg_backlinks_info = _data["avg_backlinks_info"] ? AvgBacklinksInfo.fromJS(_data["avg_backlinks_info"]) : <any>undefined;
|
|
88802
|
-
this.search_intent_info = _data["search_intent_info"] ? SearchIntentInfo.fromJS(_data["search_intent_info"]) : <any>undefined;
|
|
88803
|
-
}
|
|
88804
|
-
}
|
|
88805
|
-
|
|
88806
|
-
static fromJS(data: any): KeywordData {
|
|
88807
|
-
data = typeof data === 'object' ? data : {};
|
|
88808
|
-
let result = new KeywordData();
|
|
88809
|
-
result.init(data);
|
|
88810
|
-
return result;
|
|
88811
|
-
}
|
|
88812
|
-
|
|
88813
|
-
toJSON(data?: any) {
|
|
88814
|
-
data = typeof data === 'object' ? data : {};
|
|
88815
|
-
for (var property in this) {
|
|
88816
|
-
if (this.hasOwnProperty(property))
|
|
88817
|
-
data[property] = this[property];
|
|
88818
|
-
}
|
|
88819
|
-
data["se_type"] = this.se_type;
|
|
88820
|
-
data["keyword"] = this.keyword;
|
|
88821
|
-
data["location_code"] = this.location_code;
|
|
88822
|
-
data["language_code"] = this.language_code;
|
|
88823
|
-
data["keyword_info"] = this.keyword_info ? this.keyword_info.toJSON() : <any>undefined;
|
|
88824
|
-
data["keyword_properties"] = this.keyword_properties ? this.keyword_properties.toJSON() : <any>undefined;
|
|
88825
|
-
data["impressions_info"] = this.impressions_info ? this.impressions_info.toJSON() : <any>undefined;
|
|
88826
|
-
data["serp_info"] = this.serp_info ? this.serp_info.toJSON() : <any>undefined;
|
|
88827
|
-
data["avg_backlinks_info"] = this.avg_backlinks_info ? this.avg_backlinks_info.toJSON() : <any>undefined;
|
|
88828
|
-
data["search_intent_info"] = this.search_intent_info ? this.search_intent_info.toJSON() : <any>undefined;
|
|
88829
|
-
return data;
|
|
88830
|
-
}
|
|
88831
|
-
}
|
|
88832
|
-
|
|
88833
|
-
export interface IKeywordData {
|
|
88834
|
-
/** search engine type */
|
|
88835
|
-
se_type?: string | undefined;
|
|
88836
|
-
/** returned keyword */
|
|
88837
|
-
keyword?: string | undefined;
|
|
88838
|
-
/** location code in a POST array */
|
|
88839
|
-
location_code?: number | undefined;
|
|
88840
|
-
/** language code in a POST array */
|
|
88841
|
-
language_code?: string | undefined;
|
|
88842
|
-
/** keyword data for the returned keyword */
|
|
88843
|
-
keyword_info?: KeywordInfo | undefined;
|
|
88844
|
-
/** additional information about the keyword */
|
|
88845
|
-
keyword_properties?: KeywordProperties | undefined;
|
|
88846
|
-
/** impressions data for the returned keyword idea
|
|
88847
|
-
Note that all data in the impressions_info object is deprecated and provided only as legacy to avoid maintenance issues
|
|
88848
|
-
daily_impressions values provide a more accurate alternative to Google search volume data;
|
|
88849
|
-
the 999 bid is used to mitigate account-specific factors Google considers when calculating impressions
|
|
88850
|
-
learn more about impressions in this help center article */
|
|
88851
|
-
impressions_info?: ImpressionsInfo | undefined;
|
|
88852
|
-
/** SERP data
|
|
88853
|
-
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 */
|
|
88854
|
-
serp_info?: SerpInfo | undefined;
|
|
88855
|
-
/** backlink data for the returned keyword
|
|
88856
|
-
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 */
|
|
88857
|
-
avg_backlinks_info?: AvgBacklinksInfo | undefined;
|
|
88858
|
-
/** search intent info for the returned keyword
|
|
88859
|
-
learn about search intent in this help center article */
|
|
88860
|
-
search_intent_info?: SearchIntentInfo | undefined;
|
|
88861
|
-
|
|
88862
|
-
[key: string]: any;
|
|
88863
|
-
}
|
|
88864
|
-
|
|
88865
88759
|
export class RankChanges implements IRankChanges {
|
|
88866
88760
|
/** previous absolute rank in SERP
|
|
88867
88761
|
indicates previous rank of the element in Google SERP;
|
|
@@ -89054,11 +88948,11 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
89054
88948
|
/** sitelinks
|
|
89055
88949
|
the links shown below some of Google’s search results
|
|
89056
88950
|
if there are none, equals null */
|
|
89057
|
-
links?:
|
|
88951
|
+
links?: any | undefined;
|
|
89058
88952
|
/** contains information from the ‘About this result’ panel
|
|
89059
88953
|
‘About this result’ panel provides additional context about why Google returned this result for the given query;
|
|
89060
88954
|
this feature appears after clicking on the three dots next to most results */
|
|
89061
|
-
about_this_result?:
|
|
88955
|
+
about_this_result?: any | undefined;
|
|
89062
88956
|
/** primary domain name in SERP */
|
|
89063
88957
|
main_domain?: string | undefined;
|
|
89064
88958
|
/** URL in SERP that does not specify the HTTPs protocol and domain name */
|
|
@@ -89123,12 +89017,8 @@ contains information about the ranking changes of the SERP element since the pre
|
|
|
89123
89017
|
for (let item of _data["highlighted"])
|
|
89124
89018
|
this.highlighted!.push(item);
|
|
89125
89019
|
}
|
|
89126
|
-
|
|
89127
|
-
|
|
89128
|
-
for (let item of _data["links"])
|
|
89129
|
-
this.links!.push(LinkElement.fromJS(item));
|
|
89130
|
-
}
|
|
89131
|
-
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"];
|
|
89132
89022
|
this.main_domain = _data["main_domain"];
|
|
89133
89023
|
this.relative_url = _data["relative_url"];
|
|
89134
89024
|
this.etv = _data["etv"];
|
|
@@ -89177,12 +89067,8 @@ contains information about the ranking changes of the SERP element since the pre
|
|
|
89177
89067
|
for (let item of this.highlighted)
|
|
89178
89068
|
data["highlighted"].push(item);
|
|
89179
89069
|
}
|
|
89180
|
-
|
|
89181
|
-
|
|
89182
|
-
for (let item of this.links)
|
|
89183
|
-
data["links"].push(item.toJSON());
|
|
89184
|
-
}
|
|
89185
|
-
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;
|
|
89186
89072
|
data["main_domain"] = this.main_domain;
|
|
89187
89073
|
data["relative_url"] = this.relative_url;
|
|
89188
89074
|
data["etv"] = this.etv;
|
|
@@ -89246,11 +89132,11 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
89246
89132
|
/** sitelinks
|
|
89247
89133
|
the links shown below some of Google’s search results
|
|
89248
89134
|
if there are none, equals null */
|
|
89249
|
-
links?:
|
|
89135
|
+
links?: any | undefined;
|
|
89250
89136
|
/** contains information from the ‘About this result’ panel
|
|
89251
89137
|
‘About this result’ panel provides additional context about why Google returned this result for the given query;
|
|
89252
89138
|
this feature appears after clicking on the three dots next to most results */
|
|
89253
|
-
about_this_result?:
|
|
89139
|
+
about_this_result?: any | undefined;
|
|
89254
89140
|
/** primary domain name in SERP */
|
|
89255
89141
|
main_domain?: string | undefined;
|
|
89256
89142
|
/** URL in SERP that does not specify the HTTPs protocol and domain name */
|
|
@@ -89422,7 +89308,7 @@ export class DataforseoLabsGoogleRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
89422
89308
|
/** search engine type */
|
|
89423
89309
|
se_type?: string | undefined;
|
|
89424
89310
|
/** keyword data for the returned keyword */
|
|
89425
|
-
keyword_data?:
|
|
89311
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
89426
89312
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
89427
89313
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
89428
89314
|
|
|
@@ -89444,7 +89330,7 @@ export class DataforseoLabsGoogleRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
89444
89330
|
this[property] = _data[property];
|
|
89445
89331
|
}
|
|
89446
89332
|
this.se_type = _data["se_type"];
|
|
89447
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
89333
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
89448
89334
|
this.ranked_serp_element = _data["ranked_serp_element"] ? RankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
89449
89335
|
}
|
|
89450
89336
|
}
|
|
@@ -89473,7 +89359,7 @@ export interface IDataforseoLabsGoogleRankedKeywordsLiveItem {
|
|
|
89473
89359
|
/** search engine type */
|
|
89474
89360
|
se_type?: string | undefined;
|
|
89475
89361
|
/** keyword data for the returned keyword */
|
|
89476
|
-
keyword_data?:
|
|
89362
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
89477
89363
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
89478
89364
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
89479
89365
|
|
|
@@ -91414,11 +91300,11 @@ you will find the specified tag value in the data object of the response */
|
|
|
91414
91300
|
[key: string]: any;
|
|
91415
91301
|
}
|
|
91416
91302
|
|
|
91417
|
-
export class
|
|
91303
|
+
export class DataforseoLabsGoogleDomainIntersectionLiveItem implements IDataforseoLabsGoogleDomainIntersectionLiveItem {
|
|
91418
91304
|
/** search engine type */
|
|
91419
91305
|
se_type?: string | undefined;
|
|
91420
91306
|
/** keyword data for the returned keyword */
|
|
91421
|
-
keyword_data?:
|
|
91307
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
91422
91308
|
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
91423
91309
|
the list of supported SERP elements can be found below */
|
|
91424
91310
|
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
@@ -91428,7 +91314,7 @@ the list of supported SERP elements can be found below */
|
|
|
91428
91314
|
|
|
91429
91315
|
[key: string]: any;
|
|
91430
91316
|
|
|
91431
|
-
constructor(data?:
|
|
91317
|
+
constructor(data?: IDataforseoLabsGoogleDomainIntersectionLiveItem) {
|
|
91432
91318
|
if (data) {
|
|
91433
91319
|
for (var property in data) {
|
|
91434
91320
|
if (data.hasOwnProperty(property))
|
|
@@ -91444,15 +91330,15 @@ the list of supported SERP elements can be found below */
|
|
|
91444
91330
|
this[property] = _data[property];
|
|
91445
91331
|
}
|
|
91446
91332
|
this.se_type = _data["se_type"];
|
|
91447
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
91333
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
91448
91334
|
this.first_domain_serp_element = _data["first_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["first_domain_serp_element"]) : <any>undefined;
|
|
91449
91335
|
this.second_domain_serp_element = _data["second_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["second_domain_serp_element"]) : <any>undefined;
|
|
91450
91336
|
}
|
|
91451
91337
|
}
|
|
91452
91338
|
|
|
91453
|
-
static fromJS(data: any):
|
|
91339
|
+
static fromJS(data: any): DataforseoLabsGoogleDomainIntersectionLiveItem {
|
|
91454
91340
|
data = typeof data === 'object' ? data : {};
|
|
91455
|
-
let result = new
|
|
91341
|
+
let result = new DataforseoLabsGoogleDomainIntersectionLiveItem();
|
|
91456
91342
|
result.init(data);
|
|
91457
91343
|
return result;
|
|
91458
91344
|
}
|
|
@@ -91471,11 +91357,11 @@ the list of supported SERP elements can be found below */
|
|
|
91471
91357
|
}
|
|
91472
91358
|
}
|
|
91473
91359
|
|
|
91474
|
-
export interface
|
|
91360
|
+
export interface IDataforseoLabsGoogleDomainIntersectionLiveItem {
|
|
91475
91361
|
/** search engine type */
|
|
91476
91362
|
se_type?: string | undefined;
|
|
91477
91363
|
/** keyword data for the returned keyword */
|
|
91478
|
-
keyword_data?:
|
|
91364
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
91479
91365
|
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
91480
91366
|
the list of supported SERP elements can be found below */
|
|
91481
91367
|
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
@@ -91502,7 +91388,7 @@ export class DataforseoLabsGoogleDomainIntersectionLiveResultInfo implements IDa
|
|
|
91502
91388
|
/** the number of results returned in the items array */
|
|
91503
91389
|
items_count?: number | undefined;
|
|
91504
91390
|
/** contains keywords, relevant SERP elements and related data */
|
|
91505
|
-
items?: (
|
|
91391
|
+
items?: (DataforseoLabsGoogleDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
91506
91392
|
|
|
91507
91393
|
[key: string]: any;
|
|
91508
91394
|
|
|
@@ -91531,7 +91417,7 @@ export class DataforseoLabsGoogleDomainIntersectionLiveResultInfo implements IDa
|
|
|
91531
91417
|
if (Array.isArray(_data["items"])) {
|
|
91532
91418
|
this.items = [] as any;
|
|
91533
91419
|
for (let item of _data["items"])
|
|
91534
|
-
this.items!.push(
|
|
91420
|
+
this.items!.push(DataforseoLabsGoogleDomainIntersectionLiveItem.fromJS(item));
|
|
91535
91421
|
}
|
|
91536
91422
|
}
|
|
91537
91423
|
}
|
|
@@ -91581,7 +91467,7 @@ export interface IDataforseoLabsGoogleDomainIntersectionLiveResultInfo {
|
|
|
91581
91467
|
/** the number of results returned in the items array */
|
|
91582
91468
|
items_count?: number | undefined;
|
|
91583
91469
|
/** contains keywords, relevant SERP elements and related data */
|
|
91584
|
-
items?: (
|
|
91470
|
+
items?: (DataforseoLabsGoogleDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
91585
91471
|
|
|
91586
91472
|
[key: string]: any;
|
|
91587
91473
|
}
|
|
@@ -95698,12 +95584,6 @@ learn more about how the metric is calculated in this help center article */
|
|
|
95698
95584
|
ranking changes of the SERP element compared to the preceding month;
|
|
95699
95585
|
Note: the changes are calculated even if the preceding month is not included in a POST request */
|
|
95700
95586
|
rank_changes?: RankChanges | undefined;
|
|
95701
|
-
/** search engine type */
|
|
95702
|
-
se_type?: string | undefined;
|
|
95703
|
-
/** backlinks information for the target website */
|
|
95704
|
-
backlinks_info?: BacklinksInfo | undefined;
|
|
95705
|
-
/** page and domain rank information */
|
|
95706
|
-
rank_info?: RankInfo | undefined;
|
|
95707
95587
|
|
|
95708
95588
|
[key: string]: any;
|
|
95709
95589
|
|
|
@@ -95736,9 +95616,6 @@ Note: the changes are calculated even if the preceding month is not included in
|
|
|
95736
95616
|
this.impressions_etv = _data["impressions_etv"];
|
|
95737
95617
|
this.estimated_paid_traffic_cost = _data["estimated_paid_traffic_cost"];
|
|
95738
95618
|
this.rank_changes = _data["rank_changes"] ? RankChanges.fromJS(_data["rank_changes"]) : <any>undefined;
|
|
95739
|
-
this.se_type = _data["se_type"];
|
|
95740
|
-
this.backlinks_info = _data["backlinks_info"] ? BacklinksInfo.fromJS(_data["backlinks_info"]) : <any>undefined;
|
|
95741
|
-
this.rank_info = _data["rank_info"] ? RankInfo.fromJS(_data["rank_info"]) : <any>undefined;
|
|
95742
95619
|
}
|
|
95743
95620
|
}
|
|
95744
95621
|
|
|
@@ -95772,9 +95649,6 @@ Note: the changes are calculated even if the preceding month is not included in
|
|
|
95772
95649
|
data["impressions_etv"] = this.impressions_etv;
|
|
95773
95650
|
data["estimated_paid_traffic_cost"] = this.estimated_paid_traffic_cost;
|
|
95774
95651
|
data["rank_changes"] = this.rank_changes ? this.rank_changes.toJSON() : <any>undefined;
|
|
95775
|
-
data["se_type"] = this.se_type;
|
|
95776
|
-
data["backlinks_info"] = this.backlinks_info ? this.backlinks_info.toJSON() : <any>undefined;
|
|
95777
|
-
data["rank_info"] = this.rank_info ? this.rank_info.toJSON() : <any>undefined;
|
|
95778
95652
|
super.toJSON(data);
|
|
95779
95653
|
return data;
|
|
95780
95654
|
}
|
|
@@ -95831,12 +95705,6 @@ learn more about how the metric is calculated in this help center article */
|
|
|
95831
95705
|
ranking changes of the SERP element compared to the preceding month;
|
|
95832
95706
|
Note: the changes are calculated even if the preceding month is not included in a POST request */
|
|
95833
95707
|
rank_changes?: RankChanges | undefined;
|
|
95834
|
-
/** search engine type */
|
|
95835
|
-
se_type?: string | undefined;
|
|
95836
|
-
/** backlinks information for the target website */
|
|
95837
|
-
backlinks_info?: BacklinksInfo | undefined;
|
|
95838
|
-
/** page and domain rank information */
|
|
95839
|
-
rank_info?: RankInfo | undefined;
|
|
95840
95708
|
|
|
95841
95709
|
[key: string]: any;
|
|
95842
95710
|
}
|
|
@@ -98688,6 +98556,11 @@ if you use this parameter, our system will correlate data you obtain now with pr
|
|
|
98688
98556
|
this parameter is intended to mitigate any inconsistencies that may result from changes to our database
|
|
98689
98557
|
we recommend always setting correlate to true */
|
|
98690
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;
|
|
98691
98564
|
/** user-defined task identifier
|
|
98692
98565
|
optional field
|
|
98693
98566
|
the character limit is 255
|
|
@@ -98720,6 +98593,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
98720
98593
|
this.date_from = _data["date_from"];
|
|
98721
98594
|
this.date_to = _data["date_to"];
|
|
98722
98595
|
this.correlate = _data["correlate"];
|
|
98596
|
+
this.ignore_synonyms = _data["ignore_synonyms"];
|
|
98723
98597
|
this.tag = _data["tag"];
|
|
98724
98598
|
}
|
|
98725
98599
|
}
|
|
@@ -98745,6 +98619,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
98745
98619
|
data["date_from"] = this.date_from;
|
|
98746
98620
|
data["date_to"] = this.date_to;
|
|
98747
98621
|
data["correlate"] = this.correlate;
|
|
98622
|
+
data["ignore_synonyms"] = this.ignore_synonyms;
|
|
98748
98623
|
data["tag"] = this.tag;
|
|
98749
98624
|
return data;
|
|
98750
98625
|
}
|
|
@@ -98808,6 +98683,11 @@ if you use this parameter, our system will correlate data you obtain now with pr
|
|
|
98808
98683
|
this parameter is intended to mitigate any inconsistencies that may result from changes to our database
|
|
98809
98684
|
we recommend always setting correlate to true */
|
|
98810
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;
|
|
98811
98691
|
/** user-defined task identifier
|
|
98812
98692
|
optional field
|
|
98813
98693
|
the character limit is 255
|
|
@@ -99520,11 +99400,11 @@ you will find the specified tag value in the data object of the response */
|
|
|
99520
99400
|
[key: string]: any;
|
|
99521
99401
|
}
|
|
99522
99402
|
|
|
99523
|
-
export class
|
|
99403
|
+
export class DataforseoLabsGooglePageIntersectionLiveItem implements IDataforseoLabsGooglePageIntersectionLiveItem {
|
|
99524
99404
|
/** search engine type */
|
|
99525
99405
|
se_type?: string | undefined;
|
|
99526
99406
|
/** keyword data for the returned keyword */
|
|
99527
|
-
keyword_data?:
|
|
99407
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
99528
99408
|
/** contains data on the SERP elements found for the returned keyword
|
|
99529
99409
|
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
99530
99410
|
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -99532,7 +99412,7 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99532
99412
|
|
|
99533
99413
|
[key: string]: any;
|
|
99534
99414
|
|
|
99535
|
-
constructor(data?:
|
|
99415
|
+
constructor(data?: IDataforseoLabsGooglePageIntersectionLiveItem) {
|
|
99536
99416
|
if (data) {
|
|
99537
99417
|
for (var property in data) {
|
|
99538
99418
|
if (data.hasOwnProperty(property))
|
|
@@ -99548,7 +99428,7 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99548
99428
|
this[property] = _data[property];
|
|
99549
99429
|
}
|
|
99550
99430
|
this.se_type = _data["se_type"];
|
|
99551
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
99431
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
99552
99432
|
if (_data["intersection_result"]) {
|
|
99553
99433
|
this.intersection_result = {} as any;
|
|
99554
99434
|
for (let key in _data["intersection_result"]) {
|
|
@@ -99559,9 +99439,9 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99559
99439
|
}
|
|
99560
99440
|
}
|
|
99561
99441
|
|
|
99562
|
-
static fromJS(data: any):
|
|
99442
|
+
static fromJS(data: any): DataforseoLabsGooglePageIntersectionLiveItem {
|
|
99563
99443
|
data = typeof data === 'object' ? data : {};
|
|
99564
|
-
let result = new
|
|
99444
|
+
let result = new DataforseoLabsGooglePageIntersectionLiveItem();
|
|
99565
99445
|
result.init(data);
|
|
99566
99446
|
return result;
|
|
99567
99447
|
}
|
|
@@ -99585,11 +99465,11 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
99585
99465
|
}
|
|
99586
99466
|
}
|
|
99587
99467
|
|
|
99588
|
-
export interface
|
|
99468
|
+
export interface IDataforseoLabsGooglePageIntersectionLiveItem {
|
|
99589
99469
|
/** search engine type */
|
|
99590
99470
|
se_type?: string | undefined;
|
|
99591
99471
|
/** keyword data for the returned keyword */
|
|
99592
|
-
keyword_data?:
|
|
99472
|
+
keyword_data?: KeywordDataInfo | undefined;
|
|
99593
99473
|
/** contains data on the SERP elements found for the returned keyword
|
|
99594
99474
|
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
99595
99475
|
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -99614,7 +99494,7 @@ export class DataforseoLabsGooglePageIntersectionLiveResultInfo implements IData
|
|
|
99614
99494
|
/** the number of results returned in the items array */
|
|
99615
99495
|
items_count?: number | undefined;
|
|
99616
99496
|
/** contains keywords, relevant SERP elements and related data */
|
|
99617
|
-
items?: (
|
|
99497
|
+
items?: (DataforseoLabsGooglePageIntersectionLiveItem | undefined)[] | undefined;
|
|
99618
99498
|
|
|
99619
99499
|
[key: string]: any;
|
|
99620
99500
|
|
|
@@ -99653,7 +99533,7 @@ export class DataforseoLabsGooglePageIntersectionLiveResultInfo implements IData
|
|
|
99653
99533
|
if (Array.isArray(_data["items"])) {
|
|
99654
99534
|
this.items = [] as any;
|
|
99655
99535
|
for (let item of _data["items"])
|
|
99656
|
-
this.items!.push(
|
|
99536
|
+
this.items!.push(DataforseoLabsGooglePageIntersectionLiveItem.fromJS(item));
|
|
99657
99537
|
}
|
|
99658
99538
|
}
|
|
99659
99539
|
}
|
|
@@ -99713,7 +99593,7 @@ export interface IDataforseoLabsGooglePageIntersectionLiveResultInfo {
|
|
|
99713
99593
|
/** the number of results returned in the items array */
|
|
99714
99594
|
items_count?: number | undefined;
|
|
99715
99595
|
/** contains keywords, relevant SERP elements and related data */
|
|
99716
|
-
items?: (
|
|
99596
|
+
items?: (DataforseoLabsGooglePageIntersectionLiveItem | undefined)[] | undefined;
|
|
99717
99597
|
|
|
99718
99598
|
[key: string]: any;
|
|
99719
99599
|
}
|
|
@@ -100072,7 +99952,7 @@ learn more about how the metric is calculated in this help center article */
|
|
|
100072
99952
|
[key: string]: any;
|
|
100073
99953
|
}
|
|
100074
99954
|
|
|
100075
|
-
export class
|
|
99955
|
+
export class DataforseoLabsBBulkTrafficEstimationLiveItem implements IDataforseoLabsBBulkTrafficEstimationLiveItem {
|
|
100076
99956
|
/** search engine type */
|
|
100077
99957
|
se_type?: string | undefined;
|
|
100078
99958
|
/** target domain in a POST array */
|
|
@@ -100082,7 +99962,7 @@ export class DataforseoLabsBulkTrafficEstimationLiveItem implements IDataforseoL
|
|
|
100082
99962
|
|
|
100083
99963
|
[key: string]: any;
|
|
100084
99964
|
|
|
100085
|
-
constructor(data?:
|
|
99965
|
+
constructor(data?: IDataforseoLabsBBulkTrafficEstimationLiveItem) {
|
|
100086
99966
|
if (data) {
|
|
100087
99967
|
for (var property in data) {
|
|
100088
99968
|
if (data.hasOwnProperty(property))
|
|
@@ -100109,9 +99989,9 @@ export class DataforseoLabsBulkTrafficEstimationLiveItem implements IDataforseoL
|
|
|
100109
99989
|
}
|
|
100110
99990
|
}
|
|
100111
99991
|
|
|
100112
|
-
static fromJS(data: any):
|
|
99992
|
+
static fromJS(data: any): DataforseoLabsBBulkTrafficEstimationLiveItem {
|
|
100113
99993
|
data = typeof data === 'object' ? data : {};
|
|
100114
|
-
let result = new
|
|
99994
|
+
let result = new DataforseoLabsBBulkTrafficEstimationLiveItem();
|
|
100115
99995
|
result.init(data);
|
|
100116
99996
|
return result;
|
|
100117
99997
|
}
|
|
@@ -100135,7 +100015,7 @@ export class DataforseoLabsBulkTrafficEstimationLiveItem implements IDataforseoL
|
|
|
100135
100015
|
}
|
|
100136
100016
|
}
|
|
100137
100017
|
|
|
100138
|
-
export interface
|
|
100018
|
+
export interface IDataforseoLabsBBulkTrafficEstimationLiveItem {
|
|
100139
100019
|
/** search engine type */
|
|
100140
100020
|
se_type?: string | undefined;
|
|
100141
100021
|
/** target domain in a POST array */
|
|
@@ -100160,7 +100040,7 @@ if there is no data, then the value is null */
|
|
|
100160
100040
|
/** the number of results returned in the items array */
|
|
100161
100041
|
items_count?: number | undefined;
|
|
100162
100042
|
/** array of items with relevant traffic estimation data */
|
|
100163
|
-
items?: (
|
|
100043
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
100164
100044
|
|
|
100165
100045
|
[key: string]: any;
|
|
100166
100046
|
|
|
@@ -100187,7 +100067,7 @@ if there is no data, then the value is null */
|
|
|
100187
100067
|
if (Array.isArray(_data["items"])) {
|
|
100188
100068
|
this.items = [] as any;
|
|
100189
100069
|
for (let item of _data["items"])
|
|
100190
|
-
this.items!.push(
|
|
100070
|
+
this.items!.push(DataforseoLabsBBulkTrafficEstimationLiveItem.fromJS(item));
|
|
100191
100071
|
}
|
|
100192
100072
|
}
|
|
100193
100073
|
}
|
|
@@ -100233,7 +100113,7 @@ if there is no data, then the value is null */
|
|
|
100233
100113
|
/** the number of results returned in the items array */
|
|
100234
100114
|
items_count?: number | undefined;
|
|
100235
100115
|
/** array of items with relevant traffic estimation data */
|
|
100236
|
-
items?: (
|
|
100116
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
100237
100117
|
|
|
100238
100118
|
[key: string]: any;
|
|
100239
100119
|
}
|
|
@@ -100400,6 +100280,11 @@ date format: "yyyy-mm-dd"
|
|
|
100400
100280
|
example:
|
|
100401
100281
|
"2021-04-01" */
|
|
100402
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;
|
|
100403
100288
|
/** display results by item type
|
|
100404
100289
|
optional field
|
|
100405
100290
|
indicates the type of search results included in the response;
|
|
@@ -100444,6 +100329,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
100444
100329
|
this.language_code = _data["language_code"];
|
|
100445
100330
|
this.date_from = _data["date_from"];
|
|
100446
100331
|
this.date_to = _data["date_to"];
|
|
100332
|
+
this.ignore_synonyms = _data["ignore_synonyms"];
|
|
100447
100333
|
if (Array.isArray(_data["item_types"])) {
|
|
100448
100334
|
this.item_types = [] as any;
|
|
100449
100335
|
for (let item of _data["item_types"])
|
|
@@ -100477,6 +100363,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
100477
100363
|
data["language_code"] = this.language_code;
|
|
100478
100364
|
data["date_from"] = this.date_from;
|
|
100479
100365
|
data["date_to"] = this.date_to;
|
|
100366
|
+
data["ignore_synonyms"] = this.ignore_synonyms;
|
|
100480
100367
|
if (Array.isArray(this.item_types)) {
|
|
100481
100368
|
data["item_types"] = [];
|
|
100482
100369
|
for (let item of this.item_types)
|
|
@@ -100539,6 +100426,11 @@ date format: "yyyy-mm-dd"
|
|
|
100539
100426
|
example:
|
|
100540
100427
|
"2021-04-01" */
|
|
100541
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;
|
|
100542
100434
|
/** display results by item type
|
|
100543
100435
|
optional field
|
|
100544
100436
|
indicates the type of search results included in the response;
|
|
@@ -101664,6 +101556,106 @@ you will find the specified tag value in the data object of the response */
|
|
|
101664
101556
|
[key: string]: any;
|
|
101665
101557
|
}
|
|
101666
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
|
+
|
|
101667
101659
|
export class DataforseoLabsAmazonRelatedKeywordsLiveItem implements IDataforseoLabsAmazonRelatedKeywordsLiveItem {
|
|
101668
101660
|
/** search engine type */
|
|
101669
101661
|
se_type?: string | undefined;
|
|
@@ -102536,7 +102528,7 @@ export class DataforseoLabsAmazonRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
102536
102528
|
/** search engine type */
|
|
102537
102529
|
se_type?: string | undefined;
|
|
102538
102530
|
/** keyword data for the returned keyword */
|
|
102539
|
-
keyword_data?:
|
|
102531
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
102540
102532
|
/** contains data on the products’s SERP element found for the returned keyword */
|
|
102541
102533
|
ranked_serp_element?: AmazonRankedSerpElement | undefined;
|
|
102542
102534
|
|
|
@@ -102558,7 +102550,7 @@ export class DataforseoLabsAmazonRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
102558
102550
|
this[property] = _data[property];
|
|
102559
102551
|
}
|
|
102560
102552
|
this.se_type = _data["se_type"];
|
|
102561
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
102553
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
102562
102554
|
this.ranked_serp_element = _data["ranked_serp_element"] ? AmazonRankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
102563
102555
|
}
|
|
102564
102556
|
}
|
|
@@ -102587,7 +102579,7 @@ export interface IDataforseoLabsAmazonRankedKeywordsLiveItem {
|
|
|
102587
102579
|
/** search engine type */
|
|
102588
102580
|
se_type?: string | undefined;
|
|
102589
102581
|
/** keyword data for the returned keyword */
|
|
102590
|
-
keyword_data?:
|
|
102582
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
102591
102583
|
/** contains data on the products’s SERP element found for the returned keyword */
|
|
102592
102584
|
ranked_serp_element?: AmazonRankedSerpElement | undefined;
|
|
102593
102585
|
|
|
@@ -105014,7 +105006,7 @@ if there is no data, then the value is null */
|
|
|
105014
105006
|
/** the number of results returned in the items array */
|
|
105015
105007
|
items_count?: number | undefined;
|
|
105016
105008
|
/** array of items with relevant traffic estimation data */
|
|
105017
|
-
items?: (
|
|
105009
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
105018
105010
|
|
|
105019
105011
|
[key: string]: any;
|
|
105020
105012
|
|
|
@@ -105041,7 +105033,7 @@ if there is no data, then the value is null */
|
|
|
105041
105033
|
if (Array.isArray(_data["items"])) {
|
|
105042
105034
|
this.items = [] as any;
|
|
105043
105035
|
for (let item of _data["items"])
|
|
105044
|
-
this.items!.push(
|
|
105036
|
+
this.items!.push(DataforseoLabsBBulkTrafficEstimationLiveItem.fromJS(item));
|
|
105045
105037
|
}
|
|
105046
105038
|
}
|
|
105047
105039
|
}
|
|
@@ -105087,7 +105079,7 @@ if there is no data, then the value is null */
|
|
|
105087
105079
|
/** the number of results returned in the items array */
|
|
105088
105080
|
items_count?: number | undefined;
|
|
105089
105081
|
/** array of items with relevant traffic estimation data */
|
|
105090
|
-
items?: (
|
|
105082
|
+
items?: (DataforseoLabsBBulkTrafficEstimationLiveItem | undefined)[] | undefined;
|
|
105091
105083
|
|
|
105092
105084
|
[key: string]: any;
|
|
105093
105085
|
}
|
|
@@ -106090,6 +106082,82 @@ you will find the specified tag value in the data object of the response */
|
|
|
106090
106082
|
[key: string]: any;
|
|
106091
106083
|
}
|
|
106092
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
|
+
|
|
106093
106161
|
export class DataforseoLabsBingDomainIntersectionLiveResultInfo implements IDataforseoLabsBingDomainIntersectionLiveResultInfo {
|
|
106094
106162
|
/** search engine type
|
|
106095
106163
|
search engine type specified in a POST request;
|
|
@@ -106108,7 +106176,7 @@ for this endpoint, the field equals bing */
|
|
|
106108
106176
|
/** the number of results returned in the items array */
|
|
106109
106177
|
items_count?: number | undefined;
|
|
106110
106178
|
/** contains keywords, relevant SERP elements and related data */
|
|
106111
|
-
items?: (
|
|
106179
|
+
items?: (DataforseoLabsBingDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
106112
106180
|
|
|
106113
106181
|
[key: string]: any;
|
|
106114
106182
|
|
|
@@ -106137,7 +106205,7 @@ for this endpoint, the field equals bing */
|
|
|
106137
106205
|
if (Array.isArray(_data["items"])) {
|
|
106138
106206
|
this.items = [] as any;
|
|
106139
106207
|
for (let item of _data["items"])
|
|
106140
|
-
this.items!.push(
|
|
106208
|
+
this.items!.push(DataforseoLabsBingDomainIntersectionLiveItem.fromJS(item));
|
|
106141
106209
|
}
|
|
106142
106210
|
}
|
|
106143
106211
|
}
|
|
@@ -106189,7 +106257,7 @@ for this endpoint, the field equals bing */
|
|
|
106189
106257
|
/** the number of results returned in the items array */
|
|
106190
106258
|
items_count?: number | undefined;
|
|
106191
106259
|
/** contains keywords, relevant SERP elements and related data */
|
|
106192
|
-
items?: (
|
|
106260
|
+
items?: (DataforseoLabsBingDomainIntersectionLiveItem | undefined)[] | undefined;
|
|
106193
106261
|
|
|
106194
106262
|
[key: string]: any;
|
|
106195
106263
|
}
|
|
@@ -107106,6 +107174,88 @@ you will find the specified tag value in the data object of the response */
|
|
|
107106
107174
|
[key: string]: any;
|
|
107107
107175
|
}
|
|
107108
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
|
+
|
|
107109
107259
|
export class DataforseoLabsBingPageIntersectionLiveResultInfo implements IDataforseoLabsBingPageIntersectionLiveResultInfo {
|
|
107110
107260
|
/** search engine type
|
|
107111
107261
|
search engine type specified in a POST request;
|
|
@@ -107124,7 +107274,7 @@ for this endpoint, the field equals bing */
|
|
|
107124
107274
|
/** the number of results returned in the items array */
|
|
107125
107275
|
items_count?: number | undefined;
|
|
107126
107276
|
/** contains keywords, relevant SERP elements and related data */
|
|
107127
|
-
items?: (
|
|
107277
|
+
items?: (DataforseoLabsBingPageIntersectionLiveItem | undefined)[] | undefined;
|
|
107128
107278
|
|
|
107129
107279
|
[key: string]: any;
|
|
107130
107280
|
|
|
@@ -107163,7 +107313,7 @@ for this endpoint, the field equals bing */
|
|
|
107163
107313
|
if (Array.isArray(_data["items"])) {
|
|
107164
107314
|
this.items = [] as any;
|
|
107165
107315
|
for (let item of _data["items"])
|
|
107166
|
-
this.items!.push(
|
|
107316
|
+
this.items!.push(DataforseoLabsBingPageIntersectionLiveItem.fromJS(item));
|
|
107167
107317
|
}
|
|
107168
107318
|
}
|
|
107169
107319
|
}
|
|
@@ -107225,7 +107375,7 @@ for this endpoint, the field equals bing */
|
|
|
107225
107375
|
/** the number of results returned in the items array */
|
|
107226
107376
|
items_count?: number | undefined;
|
|
107227
107377
|
/** contains keywords, relevant SERP elements and related data */
|
|
107228
|
-
items?: (
|
|
107378
|
+
items?: (DataforseoLabsBingPageIntersectionLiveItem | undefined)[] | undefined;
|
|
107229
107379
|
|
|
107230
107380
|
[key: string]: any;
|
|
107231
107381
|
}
|
|
@@ -107696,7 +107846,7 @@ export class DataforseoLabsBingRankedKeywordsLiveItem implements IDataforseoLabs
|
|
|
107696
107846
|
/** search engine type */
|
|
107697
107847
|
se_type?: string | undefined;
|
|
107698
107848
|
/** keyword data for the returned keyword */
|
|
107699
|
-
keyword_data?:
|
|
107849
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
107700
107850
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
107701
107851
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
107702
107852
|
|
|
@@ -107718,7 +107868,7 @@ export class DataforseoLabsBingRankedKeywordsLiveItem implements IDataforseoLabs
|
|
|
107718
107868
|
this[property] = _data[property];
|
|
107719
107869
|
}
|
|
107720
107870
|
this.se_type = _data["se_type"];
|
|
107721
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
107871
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
107722
107872
|
this.ranked_serp_element = _data["ranked_serp_element"] ? RankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
107723
107873
|
}
|
|
107724
107874
|
}
|
|
@@ -107747,7 +107897,7 @@ export interface IDataforseoLabsBingRankedKeywordsLiveItem {
|
|
|
107747
107897
|
/** search engine type */
|
|
107748
107898
|
se_type?: string | undefined;
|
|
107749
107899
|
/** keyword data for the returned keyword */
|
|
107750
|
-
keyword_data?:
|
|
107900
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
107751
107901
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
107752
107902
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
107753
107903
|
|
|
@@ -108330,7 +108480,7 @@ export class DataforseoLabsBingRelatedKeywordsLiveItem implements IDataforseoLab
|
|
|
108330
108480
|
/** search engine type */
|
|
108331
108481
|
se_type?: string | undefined;
|
|
108332
108482
|
/** keyword data for the returned keyword */
|
|
108333
|
-
keyword_data?:
|
|
108483
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108334
108484
|
/** keyword search depth */
|
|
108335
108485
|
depth?: number | undefined;
|
|
108336
108486
|
/** list of related keywords
|
|
@@ -108355,7 +108505,7 @@ represents the list of search queries which are related to the keyword returned
|
|
|
108355
108505
|
this[property] = _data[property];
|
|
108356
108506
|
}
|
|
108357
108507
|
this.se_type = _data["se_type"];
|
|
108358
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
108508
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
108359
108509
|
this.depth = _data["depth"];
|
|
108360
108510
|
if (Array.isArray(_data["related_keywords"])) {
|
|
108361
108511
|
this.related_keywords = [] as any;
|
|
@@ -108394,7 +108544,7 @@ export interface IDataforseoLabsBingRelatedKeywordsLiveItem {
|
|
|
108394
108544
|
/** search engine type */
|
|
108395
108545
|
se_type?: string | undefined;
|
|
108396
108546
|
/** keyword data for the returned keyword */
|
|
108397
|
-
keyword_data?:
|
|
108547
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108398
108548
|
/** keyword search depth */
|
|
108399
108549
|
depth?: number | undefined;
|
|
108400
108550
|
/** list of related keywords
|
|
@@ -108411,7 +108561,7 @@ export class DataforseoLabsBingRelatedKeywordsLiveResultInfo implements IDatafor
|
|
|
108411
108561
|
seed_keyword?: string | undefined;
|
|
108412
108562
|
/** keyword data for the seed keyword
|
|
108413
108563
|
fields in the array are identical to that of keyword_data */
|
|
108414
|
-
seed_keyword_data?:
|
|
108564
|
+
seed_keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108415
108565
|
/** location code in a POST array */
|
|
108416
108566
|
location_code?: number | undefined;
|
|
108417
108567
|
/** language code in a POST array */
|
|
@@ -108442,7 +108592,7 @@ fields in the array are identical to that of keyword_data */
|
|
|
108442
108592
|
}
|
|
108443
108593
|
this.se_type = _data["se_type"];
|
|
108444
108594
|
this.seed_keyword = _data["seed_keyword"];
|
|
108445
|
-
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;
|
|
108446
108596
|
this.location_code = _data["location_code"];
|
|
108447
108597
|
this.language_code = _data["language_code"];
|
|
108448
108598
|
this.total_count = _data["total_count"];
|
|
@@ -108491,7 +108641,7 @@ export interface IDataforseoLabsBingRelatedKeywordsLiveResultInfo {
|
|
|
108491
108641
|
seed_keyword?: string | undefined;
|
|
108492
108642
|
/** keyword data for the seed keyword
|
|
108493
108643
|
fields in the array are identical to that of keyword_data */
|
|
108494
|
-
seed_keyword_data?:
|
|
108644
|
+
seed_keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
108495
108645
|
/** location code in a POST array */
|
|
108496
108646
|
location_code?: number | undefined;
|
|
108497
108647
|
/** language code in a POST array */
|
|
@@ -111092,7 +111242,7 @@ export class DataforseoLabsleKeywordsForAppLiveItem implements IDataforseoLabsle
|
|
|
111092
111242
|
/** search engine type */
|
|
111093
111243
|
se_type?: string | undefined;
|
|
111094
111244
|
/** keyword data for the returned keyword */
|
|
111095
|
-
keyword_data?:
|
|
111245
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
111096
111246
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
111097
111247
|
ranked_serp_element?: AppRankedSerpElementInfo | undefined;
|
|
111098
111248
|
|
|
@@ -111114,7 +111264,7 @@ export class DataforseoLabsleKeywordsForAppLiveItem implements IDataforseoLabsle
|
|
|
111114
111264
|
this[property] = _data[property];
|
|
111115
111265
|
}
|
|
111116
111266
|
this.se_type = _data["se_type"];
|
|
111117
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
111267
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
111118
111268
|
this.ranked_serp_element = _data["ranked_serp_element"] ? AppRankedSerpElementInfo.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
111119
111269
|
}
|
|
111120
111270
|
}
|
|
@@ -111143,7 +111293,7 @@ export interface IDataforseoLabsleKeywordsForAppLiveItem {
|
|
|
111143
111293
|
/** search engine type */
|
|
111144
111294
|
se_type?: string | undefined;
|
|
111145
111295
|
/** keyword data for the returned keyword */
|
|
111146
|
-
keyword_data?:
|
|
111296
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
111147
111297
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
111148
111298
|
ranked_serp_element?: AppRankedSerpElementInfo | undefined;
|
|
111149
111299
|
|
|
@@ -112256,7 +112406,7 @@ export class DataforseoLabsleAppIntersectionLiveItem implements IDataforseoLabsl
|
|
|
112256
112406
|
/** search engine type */
|
|
112257
112407
|
se_type?: string | undefined;
|
|
112258
112408
|
/** keyword data for the returned keyword */
|
|
112259
|
-
keyword_data?:
|
|
112409
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
112260
112410
|
/** contains SERP data for the returned keyword
|
|
112261
112411
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
112262
112412
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -112280,7 +112430,7 @@ depending on the number of specified app IDs, it can contain from 1 to 20 arrays
|
|
|
112280
112430
|
this[property] = _data[property];
|
|
112281
112431
|
}
|
|
112282
112432
|
this.se_type = _data["se_type"];
|
|
112283
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
112433
|
+
this.keyword_data = _data["keyword_data"] ? KeywordDataKeywordDataInfo.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
112284
112434
|
if (_data["intersection_result"]) {
|
|
112285
112435
|
this.intersection_result = {} as any;
|
|
112286
112436
|
for (let key in _data["intersection_result"]) {
|
|
@@ -112321,7 +112471,7 @@ export interface IDataforseoLabsleAppIntersectionLiveItem {
|
|
|
112321
112471
|
/** search engine type */
|
|
112322
112472
|
se_type?: string | undefined;
|
|
112323
112473
|
/** keyword data for the returned keyword */
|
|
112324
|
-
keyword_data?:
|
|
112474
|
+
keyword_data?: KeywordDataKeywordDataInfo | undefined;
|
|
112325
112475
|
/** contains SERP data for the returned keyword
|
|
112326
112476
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
112327
112477
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -151509,7 +151659,7 @@ the amount of time a browser needs to complete downloading a resource */
|
|
|
151509
151659
|
[key: string]: any;
|
|
151510
151660
|
}
|
|
151511
151661
|
|
|
151512
|
-
export class
|
|
151662
|
+
export class StylesheetResourceElementItem extends BaseOnPageResourceItemInfo implements IStylesheetResourceElementItem {
|
|
151513
151663
|
/** resource properties
|
|
151514
151664
|
the value depends on the resource_type
|
|
151515
151665
|
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;
|
|
@@ -151559,12 +151709,24 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
151559
151709
|
/** contains data on changes related to the resource
|
|
151560
151710
|
if there is no data, the value will be null */
|
|
151561
151711
|
last_modified?: LastModified | undefined;
|
|
151712
|
+
/** resource initiator */
|
|
151713
|
+
initiator?: string | undefined;
|
|
151714
|
+
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
151715
|
+
duration_time?: number | undefined;
|
|
151716
|
+
/** time to start downloading the resource
|
|
151717
|
+
the amount of time the browser needs to start downloading a resource */
|
|
151718
|
+
fetch_start?: number | undefined;
|
|
151719
|
+
/** time to complete downloading the resource
|
|
151720
|
+
the amount of time the browser needs to complete downloading a resource */
|
|
151721
|
+
fetch_end?: number | undefined;
|
|
151722
|
+
/** indicates whether the resource blocks rendering */
|
|
151723
|
+
is_render_blocking?: boolean | undefined;
|
|
151562
151724
|
|
|
151563
151725
|
[key: string]: any;
|
|
151564
151726
|
|
|
151565
|
-
constructor(data?:
|
|
151727
|
+
constructor(data?: IStylesheetResourceElementItem) {
|
|
151566
151728
|
super(data);
|
|
151567
|
-
this._discriminator = "
|
|
151729
|
+
this._discriminator = "stylesheet";
|
|
151568
151730
|
}
|
|
151569
151731
|
|
|
151570
151732
|
init(_data?: any) {
|
|
@@ -151597,12 +151759,17 @@ if there is no data, the value will be null */
|
|
|
151597
151759
|
this.accept_type = _data["accept_type"];
|
|
151598
151760
|
this.server = _data["server"];
|
|
151599
151761
|
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
151762
|
+
this.initiator = _data["initiator"];
|
|
151763
|
+
this.duration_time = _data["duration_time"];
|
|
151764
|
+
this.fetch_start = _data["fetch_start"];
|
|
151765
|
+
this.fetch_end = _data["fetch_end"];
|
|
151766
|
+
this.is_render_blocking = _data["is_render_blocking"];
|
|
151600
151767
|
}
|
|
151601
151768
|
}
|
|
151602
151769
|
|
|
151603
|
-
static fromJS(data: any):
|
|
151770
|
+
static fromJS(data: any): StylesheetResourceElementItem {
|
|
151604
151771
|
data = typeof data === 'object' ? data : {};
|
|
151605
|
-
let result = new
|
|
151772
|
+
let result = new StylesheetResourceElementItem();
|
|
151606
151773
|
result.init(data);
|
|
151607
151774
|
return result;
|
|
151608
151775
|
}
|
|
@@ -151636,12 +151803,17 @@ if there is no data, the value will be null */
|
|
|
151636
151803
|
data["accept_type"] = this.accept_type;
|
|
151637
151804
|
data["server"] = this.server;
|
|
151638
151805
|
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
151806
|
+
data["initiator"] = this.initiator;
|
|
151807
|
+
data["duration_time"] = this.duration_time;
|
|
151808
|
+
data["fetch_start"] = this.fetch_start;
|
|
151809
|
+
data["fetch_end"] = this.fetch_end;
|
|
151810
|
+
data["is_render_blocking"] = this.is_render_blocking;
|
|
151639
151811
|
super.toJSON(data);
|
|
151640
151812
|
return data;
|
|
151641
151813
|
}
|
|
151642
151814
|
}
|
|
151643
151815
|
|
|
151644
|
-
export interface
|
|
151816
|
+
export interface IStylesheetResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
151645
151817
|
/** resource properties
|
|
151646
151818
|
the value depends on the resource_type
|
|
151647
151819
|
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;
|
|
@@ -151691,11 +151863,23 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
151691
151863
|
/** contains data on changes related to the resource
|
|
151692
151864
|
if there is no data, the value will be null */
|
|
151693
151865
|
last_modified?: LastModified | undefined;
|
|
151866
|
+
/** resource initiator */
|
|
151867
|
+
initiator?: string | undefined;
|
|
151868
|
+
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
151869
|
+
duration_time?: number | undefined;
|
|
151870
|
+
/** time to start downloading the resource
|
|
151871
|
+
the amount of time the browser needs to start downloading a resource */
|
|
151872
|
+
fetch_start?: number | undefined;
|
|
151873
|
+
/** time to complete downloading the resource
|
|
151874
|
+
the amount of time the browser needs to complete downloading a resource */
|
|
151875
|
+
fetch_end?: number | undefined;
|
|
151876
|
+
/** indicates whether the resource blocks rendering */
|
|
151877
|
+
is_render_blocking?: boolean | undefined;
|
|
151694
151878
|
|
|
151695
151879
|
[key: string]: any;
|
|
151696
151880
|
}
|
|
151697
151881
|
|
|
151698
|
-
export class
|
|
151882
|
+
export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
151699
151883
|
/** resource properties
|
|
151700
151884
|
the value depends on the resource_type
|
|
151701
151885
|
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;
|
|
@@ -151745,24 +151929,12 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
151745
151929
|
/** contains data on changes related to the resource
|
|
151746
151930
|
if there is no data, the value will be null */
|
|
151747
151931
|
last_modified?: LastModified | undefined;
|
|
151748
|
-
/** resource initiator */
|
|
151749
|
-
initiator?: string | undefined;
|
|
151750
|
-
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
151751
|
-
duration_time?: number | undefined;
|
|
151752
|
-
/** time to start downloading the resource
|
|
151753
|
-
the amount of time the browser needs to start downloading a resource */
|
|
151754
|
-
fetch_start?: number | undefined;
|
|
151755
|
-
/** time to complete downloading the resource
|
|
151756
|
-
the amount of time the browser needs to complete downloading a resource */
|
|
151757
|
-
fetch_end?: number | undefined;
|
|
151758
|
-
/** indicates whether the resource blocks rendering */
|
|
151759
|
-
is_render_blocking?: boolean | undefined;
|
|
151760
151932
|
|
|
151761
151933
|
[key: string]: any;
|
|
151762
151934
|
|
|
151763
|
-
constructor(data?:
|
|
151935
|
+
constructor(data?: IScriptResourceElementItem) {
|
|
151764
151936
|
super(data);
|
|
151765
|
-
this._discriminator = "
|
|
151937
|
+
this._discriminator = "script";
|
|
151766
151938
|
}
|
|
151767
151939
|
|
|
151768
151940
|
init(_data?: any) {
|
|
@@ -151795,17 +151967,12 @@ the amount of time the browser needs to complete downloading a resource */
|
|
|
151795
151967
|
this.accept_type = _data["accept_type"];
|
|
151796
151968
|
this.server = _data["server"];
|
|
151797
151969
|
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
151798
|
-
this.initiator = _data["initiator"];
|
|
151799
|
-
this.duration_time = _data["duration_time"];
|
|
151800
|
-
this.fetch_start = _data["fetch_start"];
|
|
151801
|
-
this.fetch_end = _data["fetch_end"];
|
|
151802
|
-
this.is_render_blocking = _data["is_render_blocking"];
|
|
151803
151970
|
}
|
|
151804
151971
|
}
|
|
151805
151972
|
|
|
151806
|
-
static fromJS(data: any):
|
|
151973
|
+
static fromJS(data: any): ScriptResourceElementItem {
|
|
151807
151974
|
data = typeof data === 'object' ? data : {};
|
|
151808
|
-
let result = new
|
|
151975
|
+
let result = new ScriptResourceElementItem();
|
|
151809
151976
|
result.init(data);
|
|
151810
151977
|
return result;
|
|
151811
151978
|
}
|
|
@@ -151839,17 +152006,12 @@ the amount of time the browser needs to complete downloading a resource */
|
|
|
151839
152006
|
data["accept_type"] = this.accept_type;
|
|
151840
152007
|
data["server"] = this.server;
|
|
151841
152008
|
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
151842
|
-
data["initiator"] = this.initiator;
|
|
151843
|
-
data["duration_time"] = this.duration_time;
|
|
151844
|
-
data["fetch_start"] = this.fetch_start;
|
|
151845
|
-
data["fetch_end"] = this.fetch_end;
|
|
151846
|
-
data["is_render_blocking"] = this.is_render_blocking;
|
|
151847
152009
|
super.toJSON(data);
|
|
151848
152010
|
return data;
|
|
151849
152011
|
}
|
|
151850
152012
|
}
|
|
151851
152013
|
|
|
151852
|
-
export interface
|
|
152014
|
+
export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
151853
152015
|
/** resource properties
|
|
151854
152016
|
the value depends on the resource_type
|
|
151855
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;
|
|
@@ -151899,18 +152061,6 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
151899
152061
|
/** contains data on changes related to the resource
|
|
151900
152062
|
if there is no data, the value will be null */
|
|
151901
152063
|
last_modified?: LastModified | undefined;
|
|
151902
|
-
/** resource initiator */
|
|
151903
|
-
initiator?: string | undefined;
|
|
151904
|
-
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
151905
|
-
duration_time?: number | undefined;
|
|
151906
|
-
/** time to start downloading the resource
|
|
151907
|
-
the amount of time the browser needs to start downloading a resource */
|
|
151908
|
-
fetch_start?: number | undefined;
|
|
151909
|
-
/** time to complete downloading the resource
|
|
151910
|
-
the amount of time the browser needs to complete downloading a resource */
|
|
151911
|
-
fetch_end?: number | undefined;
|
|
151912
|
-
/** indicates whether the resource blocks rendering */
|
|
151913
|
-
is_render_blocking?: boolean | undefined;
|
|
151914
152064
|
|
|
151915
152065
|
[key: string]: any;
|
|
151916
152066
|
}
|