@getanyapi/sdk 0.176.2 → 0.177.1
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -20
- package/dist/index.d.ts +19 -20
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -838,7 +838,7 @@ interface AhrefsTrafficInput {
|
|
|
838
838
|
*/
|
|
839
839
|
ignoreSources?: string[];
|
|
840
840
|
/**
|
|
841
|
-
* Analysis scope
|
|
841
|
+
* Analysis scope. Only subdomains, the whole website with its subdomains, is served now; a request for domain, prefix or exact is refused. A page URL is analyzed as its whole website.
|
|
842
842
|
* One of: exact, subdomains, prefix, domain.
|
|
843
843
|
* Default: subdomains.
|
|
844
844
|
*/
|
|
@@ -853,13 +853,13 @@ interface AhrefsTrafficInput {
|
|
|
853
853
|
*/
|
|
854
854
|
source?: string[];
|
|
855
855
|
/**
|
|
856
|
-
* The
|
|
856
|
+
* The website to analyze (e.g. ahrefs.com). A page URL is analyzed as its whole website.
|
|
857
857
|
*/
|
|
858
858
|
url: string;
|
|
859
859
|
}
|
|
860
860
|
interface AhrefsTrafficItem {
|
|
861
861
|
/**
|
|
862
|
-
* The domain or URL the metrics are scoped to.
|
|
862
|
+
* The domain or URL the metrics are scoped to.
|
|
863
863
|
*/
|
|
864
864
|
domain: string;
|
|
865
865
|
/**
|
|
@@ -867,28 +867,27 @@ interface AhrefsTrafficItem {
|
|
|
867
867
|
*/
|
|
868
868
|
mode?: string;
|
|
869
869
|
/**
|
|
870
|
-
* Estimated monthly organic search visits.
|
|
870
|
+
* Estimated monthly organic search visits for the latest month.
|
|
871
871
|
*/
|
|
872
|
-
monthlyTraffic?: number;
|
|
872
|
+
monthlyTraffic?: number | null;
|
|
873
873
|
/**
|
|
874
874
|
* Estimated monthly USD value of the organic traffic, what the same clicks would cost in paid search.
|
|
875
875
|
*/
|
|
876
|
-
monthlyTrafficValueUsd?: number;
|
|
876
|
+
monthlyTrafficValueUsd?: number | null;
|
|
877
877
|
/**
|
|
878
878
|
* Countries sending the most organic traffic, up to five.
|
|
879
879
|
*/
|
|
880
880
|
topCountries?: AhrefsTrafficTopCountrie[];
|
|
881
881
|
/**
|
|
882
|
-
* The top organic keywords the domain already ranks for, up to five. Not ordered by traffic. For the full ranked-keyword list, use seo.ranked_keywords.
|
|
883
|
-
* Present whenever the upstream returns this record.
|
|
882
|
+
* The top organic keywords the domain already ranks for, up to five. Not ordered by traffic. For the full ranked-keyword list, use seo.ranked_keywords.
|
|
884
883
|
*/
|
|
885
884
|
topKeywords?: AhrefsTrafficTopKeyword[];
|
|
886
885
|
/**
|
|
887
|
-
* The pages receiving the most organic traffic
|
|
886
|
+
* The pages receiving the most organic traffic. Currently always null: Ahrefs no longer publishes top pages.
|
|
888
887
|
*/
|
|
889
|
-
topPages?: AhrefsTrafficTopPage[];
|
|
888
|
+
topPages?: AhrefsTrafficTopPage[] | null;
|
|
890
889
|
/**
|
|
891
|
-
* Monthly organic traffic estimates for
|
|
890
|
+
* Monthly organic traffic estimates, oldest first, for as many months as Ahrefs publishes for the site.
|
|
892
891
|
*/
|
|
893
892
|
trafficHistory?: AhrefsTrafficTrafficHistory[];
|
|
894
893
|
[extra: string]: unknown;
|
|
@@ -901,7 +900,7 @@ interface AhrefsTrafficTopCountrie {
|
|
|
901
900
|
/**
|
|
902
901
|
* Share (0-100) of the domain's organic traffic from this country.
|
|
903
902
|
*/
|
|
904
|
-
sharePct?: number;
|
|
903
|
+
sharePct?: number | null;
|
|
905
904
|
[extra: string]: unknown;
|
|
906
905
|
}
|
|
907
906
|
interface AhrefsTrafficTopKeyword {
|
|
@@ -912,11 +911,11 @@ interface AhrefsTrafficTopKeyword {
|
|
|
912
911
|
/**
|
|
913
912
|
* Current Google organic position for this keyword.
|
|
914
913
|
*/
|
|
915
|
-
position?: number;
|
|
914
|
+
position?: number | null;
|
|
916
915
|
/**
|
|
917
916
|
* Estimated monthly traffic this keyword drives to the domain.
|
|
918
917
|
*/
|
|
919
|
-
traffic?: number;
|
|
918
|
+
traffic?: number | null;
|
|
920
919
|
[extra: string]: unknown;
|
|
921
920
|
}
|
|
922
921
|
interface AhrefsTrafficTopPage {
|
|
@@ -942,7 +941,7 @@ interface AhrefsTrafficTrafficHistory {
|
|
|
942
941
|
/**
|
|
943
942
|
* Estimated organic search visits in that month.
|
|
944
943
|
*/
|
|
945
|
-
organicTraffic?: number;
|
|
944
|
+
organicTraffic?: number | null;
|
|
946
945
|
[extra: string]: unknown;
|
|
947
946
|
}
|
|
948
947
|
/**
|
|
@@ -950,7 +949,7 @@ interface AhrefsTrafficTrafficHistory {
|
|
|
950
949
|
*/
|
|
951
950
|
interface AhrefsTrafficData {
|
|
952
951
|
/**
|
|
953
|
-
* Traffic overview records: the requested domain plus its monthly organic traffic, top ranking keywords, top
|
|
952
|
+
* Traffic overview records: the requested domain plus its monthly organic traffic, top ranking keywords, top countries, and traffic history.
|
|
954
953
|
*/
|
|
955
954
|
items: AhrefsTrafficItem[];
|
|
956
955
|
}
|
|
@@ -1008,9 +1007,9 @@ declare class AhrefsNamespace {
|
|
|
1008
1007
|
/**
|
|
1009
1008
|
* Ahrefs Traffic Overview
|
|
1010
1009
|
*
|
|
1011
|
-
* Get the Ahrefs organic traffic overview for
|
|
1010
|
+
* Get the Ahrefs organic traffic overview for a website Ahrefs publishes traffic for (its Top Websites list, mostly larger sites): monthly organic traffic estimate and value, the top 5 keywords it ranks for with position and traffic, traffic by country, and a monthly traffic history - as normalized JSON. Other websites return not found. Top pages are not available. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
|
|
1012
1011
|
*
|
|
1013
|
-
* Price: $0.
|
|
1012
|
+
* Price: $0.0012 per request plus $0.00456 per result (maximum $0.00576).
|
|
1014
1013
|
*
|
|
1015
1014
|
* @example
|
|
1016
1015
|
* const res = await client.ahrefs.traffic({ url: "ahrefs.com", mode: "subdomains" });
|
|
@@ -32285,7 +32284,7 @@ declare class InstagramNamespace {
|
|
|
32285
32284
|
*
|
|
32286
32285
|
* Fetch an Instagram account's core public profile fields (followers, posts, bio, verification) by user id.
|
|
32287
32286
|
*
|
|
32288
|
-
* Price: $0.
|
|
32287
|
+
* Price: $0.0008 per request.
|
|
32289
32288
|
*
|
|
32290
32289
|
* @example
|
|
32291
32290
|
* const res = await client.instagram.basicProfile({ userId: "314216" });
|
|
@@ -40370,7 +40369,7 @@ declare class LinkedinNamespace {
|
|
|
40370
40369
|
*
|
|
40371
40370
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
40372
40371
|
*
|
|
40373
|
-
* Price: $0.
|
|
40372
|
+
* Price: $0.00245 per request.
|
|
40374
40373
|
*
|
|
40375
40374
|
* @example
|
|
40376
40375
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
package/dist/index.d.ts
CHANGED
|
@@ -838,7 +838,7 @@ interface AhrefsTrafficInput {
|
|
|
838
838
|
*/
|
|
839
839
|
ignoreSources?: string[];
|
|
840
840
|
/**
|
|
841
|
-
* Analysis scope
|
|
841
|
+
* Analysis scope. Only subdomains, the whole website with its subdomains, is served now; a request for domain, prefix or exact is refused. A page URL is analyzed as its whole website.
|
|
842
842
|
* One of: exact, subdomains, prefix, domain.
|
|
843
843
|
* Default: subdomains.
|
|
844
844
|
*/
|
|
@@ -853,13 +853,13 @@ interface AhrefsTrafficInput {
|
|
|
853
853
|
*/
|
|
854
854
|
source?: string[];
|
|
855
855
|
/**
|
|
856
|
-
* The
|
|
856
|
+
* The website to analyze (e.g. ahrefs.com). A page URL is analyzed as its whole website.
|
|
857
857
|
*/
|
|
858
858
|
url: string;
|
|
859
859
|
}
|
|
860
860
|
interface AhrefsTrafficItem {
|
|
861
861
|
/**
|
|
862
|
-
* The domain or URL the metrics are scoped to.
|
|
862
|
+
* The domain or URL the metrics are scoped to.
|
|
863
863
|
*/
|
|
864
864
|
domain: string;
|
|
865
865
|
/**
|
|
@@ -867,28 +867,27 @@ interface AhrefsTrafficItem {
|
|
|
867
867
|
*/
|
|
868
868
|
mode?: string;
|
|
869
869
|
/**
|
|
870
|
-
* Estimated monthly organic search visits.
|
|
870
|
+
* Estimated monthly organic search visits for the latest month.
|
|
871
871
|
*/
|
|
872
|
-
monthlyTraffic?: number;
|
|
872
|
+
monthlyTraffic?: number | null;
|
|
873
873
|
/**
|
|
874
874
|
* Estimated monthly USD value of the organic traffic, what the same clicks would cost in paid search.
|
|
875
875
|
*/
|
|
876
|
-
monthlyTrafficValueUsd?: number;
|
|
876
|
+
monthlyTrafficValueUsd?: number | null;
|
|
877
877
|
/**
|
|
878
878
|
* Countries sending the most organic traffic, up to five.
|
|
879
879
|
*/
|
|
880
880
|
topCountries?: AhrefsTrafficTopCountrie[];
|
|
881
881
|
/**
|
|
882
|
-
* The top organic keywords the domain already ranks for, up to five. Not ordered by traffic. For the full ranked-keyword list, use seo.ranked_keywords.
|
|
883
|
-
* Present whenever the upstream returns this record.
|
|
882
|
+
* The top organic keywords the domain already ranks for, up to five. Not ordered by traffic. For the full ranked-keyword list, use seo.ranked_keywords.
|
|
884
883
|
*/
|
|
885
884
|
topKeywords?: AhrefsTrafficTopKeyword[];
|
|
886
885
|
/**
|
|
887
|
-
* The pages receiving the most organic traffic
|
|
886
|
+
* The pages receiving the most organic traffic. Currently always null: Ahrefs no longer publishes top pages.
|
|
888
887
|
*/
|
|
889
|
-
topPages?: AhrefsTrafficTopPage[];
|
|
888
|
+
topPages?: AhrefsTrafficTopPage[] | null;
|
|
890
889
|
/**
|
|
891
|
-
* Monthly organic traffic estimates for
|
|
890
|
+
* Monthly organic traffic estimates, oldest first, for as many months as Ahrefs publishes for the site.
|
|
892
891
|
*/
|
|
893
892
|
trafficHistory?: AhrefsTrafficTrafficHistory[];
|
|
894
893
|
[extra: string]: unknown;
|
|
@@ -901,7 +900,7 @@ interface AhrefsTrafficTopCountrie {
|
|
|
901
900
|
/**
|
|
902
901
|
* Share (0-100) of the domain's organic traffic from this country.
|
|
903
902
|
*/
|
|
904
|
-
sharePct?: number;
|
|
903
|
+
sharePct?: number | null;
|
|
905
904
|
[extra: string]: unknown;
|
|
906
905
|
}
|
|
907
906
|
interface AhrefsTrafficTopKeyword {
|
|
@@ -912,11 +911,11 @@ interface AhrefsTrafficTopKeyword {
|
|
|
912
911
|
/**
|
|
913
912
|
* Current Google organic position for this keyword.
|
|
914
913
|
*/
|
|
915
|
-
position?: number;
|
|
914
|
+
position?: number | null;
|
|
916
915
|
/**
|
|
917
916
|
* Estimated monthly traffic this keyword drives to the domain.
|
|
918
917
|
*/
|
|
919
|
-
traffic?: number;
|
|
918
|
+
traffic?: number | null;
|
|
920
919
|
[extra: string]: unknown;
|
|
921
920
|
}
|
|
922
921
|
interface AhrefsTrafficTopPage {
|
|
@@ -942,7 +941,7 @@ interface AhrefsTrafficTrafficHistory {
|
|
|
942
941
|
/**
|
|
943
942
|
* Estimated organic search visits in that month.
|
|
944
943
|
*/
|
|
945
|
-
organicTraffic?: number;
|
|
944
|
+
organicTraffic?: number | null;
|
|
946
945
|
[extra: string]: unknown;
|
|
947
946
|
}
|
|
948
947
|
/**
|
|
@@ -950,7 +949,7 @@ interface AhrefsTrafficTrafficHistory {
|
|
|
950
949
|
*/
|
|
951
950
|
interface AhrefsTrafficData {
|
|
952
951
|
/**
|
|
953
|
-
* Traffic overview records: the requested domain plus its monthly organic traffic, top ranking keywords, top
|
|
952
|
+
* Traffic overview records: the requested domain plus its monthly organic traffic, top ranking keywords, top countries, and traffic history.
|
|
954
953
|
*/
|
|
955
954
|
items: AhrefsTrafficItem[];
|
|
956
955
|
}
|
|
@@ -1008,9 +1007,9 @@ declare class AhrefsNamespace {
|
|
|
1008
1007
|
/**
|
|
1009
1008
|
* Ahrefs Traffic Overview
|
|
1010
1009
|
*
|
|
1011
|
-
* Get the Ahrefs organic traffic overview for
|
|
1010
|
+
* Get the Ahrefs organic traffic overview for a website Ahrefs publishes traffic for (its Top Websites list, mostly larger sites): monthly organic traffic estimate and value, the top 5 keywords it ranks for with position and traffic, traffic by country, and a monthly traffic history - as normalized JSON. Other websites return not found. Top pages are not available. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
|
|
1012
1011
|
*
|
|
1013
|
-
* Price: $0.
|
|
1012
|
+
* Price: $0.0012 per request plus $0.00456 per result (maximum $0.00576).
|
|
1014
1013
|
*
|
|
1015
1014
|
* @example
|
|
1016
1015
|
* const res = await client.ahrefs.traffic({ url: "ahrefs.com", mode: "subdomains" });
|
|
@@ -32285,7 +32284,7 @@ declare class InstagramNamespace {
|
|
|
32285
32284
|
*
|
|
32286
32285
|
* Fetch an Instagram account's core public profile fields (followers, posts, bio, verification) by user id.
|
|
32287
32286
|
*
|
|
32288
|
-
* Price: $0.
|
|
32287
|
+
* Price: $0.0008 per request.
|
|
32289
32288
|
*
|
|
32290
32289
|
* @example
|
|
32291
32290
|
* const res = await client.instagram.basicProfile({ userId: "314216" });
|
|
@@ -40370,7 +40369,7 @@ declare class LinkedinNamespace {
|
|
|
40370
40369
|
*
|
|
40371
40370
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
40372
40371
|
*
|
|
40373
|
-
* Price: $0.
|
|
40372
|
+
* Price: $0.00245 per request.
|
|
40374
40373
|
*
|
|
40375
40374
|
* @example
|
|
40376
40375
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
package/dist/index.js
CHANGED
|
@@ -1101,9 +1101,9 @@ var AhrefsNamespace = class {
|
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Ahrefs Traffic Overview
|
|
1103
1103
|
*
|
|
1104
|
-
* Get the Ahrefs organic traffic overview for
|
|
1104
|
+
* Get the Ahrefs organic traffic overview for a website Ahrefs publishes traffic for (its Top Websites list, mostly larger sites): monthly organic traffic estimate and value, the top 5 keywords it ranks for with position and traffic, traffic by country, and a monthly traffic history - as normalized JSON. Other websites return not found. Top pages are not available. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
|
|
1105
1105
|
*
|
|
1106
|
-
* Price: $0.
|
|
1106
|
+
* Price: $0.0012 per request plus $0.00456 per result (maximum $0.00576).
|
|
1107
1107
|
*
|
|
1108
1108
|
* @example
|
|
1109
1109
|
* const res = await client.ahrefs.traffic({ url: "ahrefs.com", mode: "subdomains" });
|
|
@@ -4123,7 +4123,7 @@ var InstagramNamespace = class {
|
|
|
4123
4123
|
*
|
|
4124
4124
|
* Fetch an Instagram account's core public profile fields (followers, posts, bio, verification) by user id.
|
|
4125
4125
|
*
|
|
4126
|
-
* Price: $0.
|
|
4126
|
+
* Price: $0.0008 per request.
|
|
4127
4127
|
*
|
|
4128
4128
|
* @example
|
|
4129
4129
|
* const res = await client.instagram.basicProfile({ userId: "314216" });
|
|
@@ -5477,7 +5477,7 @@ var LinkedinNamespace = class {
|
|
|
5477
5477
|
*
|
|
5478
5478
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
5479
5479
|
*
|
|
5480
|
-
* Price: $0.
|
|
5480
|
+
* Price: $0.00245 per request.
|
|
5481
5481
|
*
|
|
5482
5482
|
* @example
|
|
5483
5483
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|