@getanyapi/sdk 0.176.2 → 0.177.0

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.d.cts CHANGED
@@ -838,7 +838,7 @@ interface AhrefsTrafficInput {
838
838
  */
839
839
  ignoreSources?: string[];
840
840
  /**
841
- * Analysis scope: subdomains covers the domain and its subdomains, domain covers the root domain only, prefix covers every page under the given path, exact matches only the given URL.
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 domain or page URL to analyze (e.g. ahrefs.com).
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. Populated whenever the provider has data for the entity.
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. Populated whenever the provider has data for the entity.
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, up to five.
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 recent months, oldest first.
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 pages, top countries, and traffic history. Populated whenever the provider has data for the entity.
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 any domain or URL: monthly traffic estimate and value, the top 5 keywords it already ranks for with position and traffic, top pages, traffic by country, and a monthly traffic history - as normalized JSON. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
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.00006 per request plus $0.0054 per result (maximum $0.00546).
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" });
package/dist/index.d.ts CHANGED
@@ -838,7 +838,7 @@ interface AhrefsTrafficInput {
838
838
  */
839
839
  ignoreSources?: string[];
840
840
  /**
841
- * Analysis scope: subdomains covers the domain and its subdomains, domain covers the root domain only, prefix covers every page under the given path, exact matches only the given URL.
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 domain or page URL to analyze (e.g. ahrefs.com).
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. Populated whenever the provider has data for the entity.
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. Populated whenever the provider has data for the entity.
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, up to five.
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 recent months, oldest first.
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 pages, top countries, and traffic history. Populated whenever the provider has data for the entity.
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 any domain or URL: monthly traffic estimate and value, the top 5 keywords it already ranks for with position and traffic, top pages, traffic by country, and a monthly traffic history - as normalized JSON. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
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.00006 per request plus $0.0054 per result (maximum $0.00546).
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" });
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 any domain or URL: monthly traffic estimate and value, the top 5 keywords it already ranks for with position and traffic, top pages, traffic by country, and a monthly traffic history - as normalized JSON. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
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.00006 per request plus $0.0054 per result (maximum $0.00546).
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" });