@getanyapi/sdk 0.144.2 → 0.146.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.cjs +18 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -8
- package/dist/index.d.ts +27 -8
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -66419,7 +66419,7 @@ interface TiktokTrendingHashtagsInput {
|
|
|
66419
66419
|
/**
|
|
66420
66420
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `industryIds`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a hashtag that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
66421
66421
|
*/
|
|
66422
|
-
requireFields?: "industryIds"[];
|
|
66422
|
+
requireFields?: ("industryIds" | "topCreators")[];
|
|
66423
66423
|
/**
|
|
66424
66424
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
66425
66425
|
*/
|
|
@@ -67430,7 +67430,7 @@ declare class TiktokNamespace {
|
|
|
67430
67430
|
*
|
|
67431
67431
|
* Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
|
|
67432
67432
|
*
|
|
67433
|
-
* Price: $0.
|
|
67433
|
+
* Price: $0.00116 per request plus $0 per result (maximum $0.00116).
|
|
67434
67434
|
*
|
|
67435
67435
|
* @example
|
|
67436
67436
|
* const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });
|
|
@@ -68710,16 +68710,20 @@ interface TripadvisorReviewsInput {
|
|
|
68710
68710
|
* Default: true.
|
|
68711
68711
|
*/
|
|
68712
68712
|
allowFallbacks?: boolean;
|
|
68713
|
+
/**
|
|
68714
|
+
* Pagination cursor from a previous response's nextCursor. Omit for the first page.
|
|
68715
|
+
*/
|
|
68716
|
+
cursor?: string;
|
|
68713
68717
|
/**
|
|
68714
68718
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
|
|
68715
68719
|
*/
|
|
68716
68720
|
ignoreSources?: string[];
|
|
68717
68721
|
/**
|
|
68718
|
-
* Only return reviews in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages.
|
|
68722
|
+
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
68719
68723
|
*/
|
|
68720
68724
|
languages?: string[];
|
|
68721
68725
|
/**
|
|
68722
|
-
*
|
|
68726
|
+
* Reviews per page (1-20, default 20). Sources that page return one page of up to `limit` reviews, newest first, with a nextCursor for the next page; sources that cannot page return up to `limit` reviews in one call with no nextCursor.
|
|
68723
68727
|
* Range: minimum 1, maximum 20.
|
|
68724
68728
|
*/
|
|
68725
68729
|
limit?: number;
|
|
@@ -68732,6 +68736,10 @@ interface TripadvisorReviewsInput {
|
|
|
68732
68736
|
* Only return reviews whose bubble rating is in this set (e.g. ["5", "4"] for 4 and 5 star reviews); omit for all ratings.
|
|
68733
68737
|
*/
|
|
68734
68738
|
ratings?: ("1" | "2" | "3" | "4" | "5")[];
|
|
68739
|
+
/**
|
|
68740
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. nextCursor is null on the last page. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
68741
|
+
*/
|
|
68742
|
+
requireFields?: "nextCursor"[];
|
|
68735
68743
|
/**
|
|
68736
68744
|
* Only return reviews newer than this date, YYYY-MM-DD or a relative window like '3 months' (e.g. 2026-01-01).
|
|
68737
68745
|
*/
|
|
@@ -68780,7 +68788,7 @@ interface TripadvisorReviewsItem {
|
|
|
68780
68788
|
*/
|
|
68781
68789
|
id?: string;
|
|
68782
68790
|
/**
|
|
68783
|
-
*
|
|
68791
|
+
* ISO 639-1 code of the language the review was originally written in (e.g. en, es). On some requests `title` and `text` are Tripadvisor's English machine translation of a review written in another language; this code still names the original language. A request with `languages` always returns the original text.
|
|
68784
68792
|
*/
|
|
68785
68793
|
language?: string;
|
|
68786
68794
|
/**
|
|
@@ -68835,6 +68843,10 @@ interface TripadvisorReviewsData {
|
|
|
68835
68843
|
* Review records for the place: rating, title, review text, publish date, trip type, and reviewer details. Populated whenever the provider has data for the entity.
|
|
68836
68844
|
*/
|
|
68837
68845
|
items: TripadvisorReviewsItem[];
|
|
68846
|
+
/**
|
|
68847
|
+
* Opaque cursor for the next page of reviews, or null when there are no more. Pass it back as cursor to continue. Absent on sources that cannot page.
|
|
68848
|
+
*/
|
|
68849
|
+
nextCursor?: string | null;
|
|
68838
68850
|
}
|
|
68839
68851
|
/**
|
|
68840
68852
|
* Input for Tripadvisor Search (tripadvisor.search).
|
|
@@ -68898,7 +68910,7 @@ interface TripadvisorSearchItem {
|
|
|
68898
68910
|
*/
|
|
68899
68911
|
address?: string;
|
|
68900
68912
|
/**
|
|
68901
|
-
* High-level category
|
|
68913
|
+
* High-level category: hotel, restaurant, attraction, or geo for a destination such as a city.
|
|
68902
68914
|
*/
|
|
68903
68915
|
category?: string;
|
|
68904
68916
|
/**
|
|
@@ -68966,7 +68978,7 @@ interface TripadvisorSearchItem {
|
|
|
68966
68978
|
*/
|
|
68967
68979
|
title: string;
|
|
68968
68980
|
/**
|
|
68969
|
-
* Tripadvisor place type
|
|
68981
|
+
* Tripadvisor place type: HOTEL, RESTAURANT, ATTRACTION, or GEO for a destination such as a city.
|
|
68970
68982
|
*/
|
|
68971
68983
|
type?: string;
|
|
68972
68984
|
/**
|
|
@@ -69006,6 +69018,13 @@ declare class TripadvisorNamespace {
|
|
|
69006
69018
|
* const res = await client.tripadvisor.reviews({ url: "https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-The_Plaza-New_York_City_New_York.html", limit: 3 });
|
|
69007
69019
|
*/
|
|
69008
69020
|
reviews(input: TripadvisorReviewsInput, options?: RequestOptions): Promise<RunResult<TripadvisorReviewsData>>;
|
|
69021
|
+
/**
|
|
69022
|
+
* Iterate every result of Tripadvisor Reviews across pages.
|
|
69023
|
+
*
|
|
69024
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
69025
|
+
* result pages instead (each carries its own costUsd).
|
|
69026
|
+
*/
|
|
69027
|
+
iterReviews(input: TripadvisorReviewsInput, options?: RequestOptions): Paginator<TripadvisorReviewsItem, RunResult<TripadvisorReviewsData>>;
|
|
69009
69028
|
/**
|
|
69010
69029
|
* Tripadvisor Search
|
|
69011
69030
|
*
|
|
@@ -75485,7 +75504,7 @@ declare class YoutubeNamespace {
|
|
|
75485
75504
|
*
|
|
75486
75505
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
75487
75506
|
*
|
|
75488
|
-
* Price: $0.
|
|
75507
|
+
* Price: $0.0005 per request.
|
|
75489
75508
|
*
|
|
75490
75509
|
* @example
|
|
75491
75510
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
package/dist/index.d.ts
CHANGED
|
@@ -66419,7 +66419,7 @@ interface TiktokTrendingHashtagsInput {
|
|
|
66419
66419
|
/**
|
|
66420
66420
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `industryIds`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a hashtag that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
66421
66421
|
*/
|
|
66422
|
-
requireFields?: "industryIds"[];
|
|
66422
|
+
requireFields?: ("industryIds" | "topCreators")[];
|
|
66423
66423
|
/**
|
|
66424
66424
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
66425
66425
|
*/
|
|
@@ -67430,7 +67430,7 @@ declare class TiktokNamespace {
|
|
|
67430
67430
|
*
|
|
67431
67431
|
* Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
|
|
67432
67432
|
*
|
|
67433
|
-
* Price: $0.
|
|
67433
|
+
* Price: $0.00116 per request plus $0 per result (maximum $0.00116).
|
|
67434
67434
|
*
|
|
67435
67435
|
* @example
|
|
67436
67436
|
* const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });
|
|
@@ -68710,16 +68710,20 @@ interface TripadvisorReviewsInput {
|
|
|
68710
68710
|
* Default: true.
|
|
68711
68711
|
*/
|
|
68712
68712
|
allowFallbacks?: boolean;
|
|
68713
|
+
/**
|
|
68714
|
+
* Pagination cursor from a previous response's nextCursor. Omit for the first page.
|
|
68715
|
+
*/
|
|
68716
|
+
cursor?: string;
|
|
68713
68717
|
/**
|
|
68714
68718
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
|
|
68715
68719
|
*/
|
|
68716
68720
|
ignoreSources?: string[];
|
|
68717
68721
|
/**
|
|
68718
|
-
* Only return reviews in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages.
|
|
68722
|
+
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
68719
68723
|
*/
|
|
68720
68724
|
languages?: string[];
|
|
68721
68725
|
/**
|
|
68722
|
-
*
|
|
68726
|
+
* Reviews per page (1-20, default 20). Sources that page return one page of up to `limit` reviews, newest first, with a nextCursor for the next page; sources that cannot page return up to `limit` reviews in one call with no nextCursor.
|
|
68723
68727
|
* Range: minimum 1, maximum 20.
|
|
68724
68728
|
*/
|
|
68725
68729
|
limit?: number;
|
|
@@ -68732,6 +68736,10 @@ interface TripadvisorReviewsInput {
|
|
|
68732
68736
|
* Only return reviews whose bubble rating is in this set (e.g. ["5", "4"] for 4 and 5 star reviews); omit for all ratings.
|
|
68733
68737
|
*/
|
|
68734
68738
|
ratings?: ("1" | "2" | "3" | "4" | "5")[];
|
|
68739
|
+
/**
|
|
68740
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. nextCursor is null on the last page. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
68741
|
+
*/
|
|
68742
|
+
requireFields?: "nextCursor"[];
|
|
68735
68743
|
/**
|
|
68736
68744
|
* Only return reviews newer than this date, YYYY-MM-DD or a relative window like '3 months' (e.g. 2026-01-01).
|
|
68737
68745
|
*/
|
|
@@ -68780,7 +68788,7 @@ interface TripadvisorReviewsItem {
|
|
|
68780
68788
|
*/
|
|
68781
68789
|
id?: string;
|
|
68782
68790
|
/**
|
|
68783
|
-
*
|
|
68791
|
+
* ISO 639-1 code of the language the review was originally written in (e.g. en, es). On some requests `title` and `text` are Tripadvisor's English machine translation of a review written in another language; this code still names the original language. A request with `languages` always returns the original text.
|
|
68784
68792
|
*/
|
|
68785
68793
|
language?: string;
|
|
68786
68794
|
/**
|
|
@@ -68835,6 +68843,10 @@ interface TripadvisorReviewsData {
|
|
|
68835
68843
|
* Review records for the place: rating, title, review text, publish date, trip type, and reviewer details. Populated whenever the provider has data for the entity.
|
|
68836
68844
|
*/
|
|
68837
68845
|
items: TripadvisorReviewsItem[];
|
|
68846
|
+
/**
|
|
68847
|
+
* Opaque cursor for the next page of reviews, or null when there are no more. Pass it back as cursor to continue. Absent on sources that cannot page.
|
|
68848
|
+
*/
|
|
68849
|
+
nextCursor?: string | null;
|
|
68838
68850
|
}
|
|
68839
68851
|
/**
|
|
68840
68852
|
* Input for Tripadvisor Search (tripadvisor.search).
|
|
@@ -68898,7 +68910,7 @@ interface TripadvisorSearchItem {
|
|
|
68898
68910
|
*/
|
|
68899
68911
|
address?: string;
|
|
68900
68912
|
/**
|
|
68901
|
-
* High-level category
|
|
68913
|
+
* High-level category: hotel, restaurant, attraction, or geo for a destination such as a city.
|
|
68902
68914
|
*/
|
|
68903
68915
|
category?: string;
|
|
68904
68916
|
/**
|
|
@@ -68966,7 +68978,7 @@ interface TripadvisorSearchItem {
|
|
|
68966
68978
|
*/
|
|
68967
68979
|
title: string;
|
|
68968
68980
|
/**
|
|
68969
|
-
* Tripadvisor place type
|
|
68981
|
+
* Tripadvisor place type: HOTEL, RESTAURANT, ATTRACTION, or GEO for a destination such as a city.
|
|
68970
68982
|
*/
|
|
68971
68983
|
type?: string;
|
|
68972
68984
|
/**
|
|
@@ -69006,6 +69018,13 @@ declare class TripadvisorNamespace {
|
|
|
69006
69018
|
* const res = await client.tripadvisor.reviews({ url: "https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-The_Plaza-New_York_City_New_York.html", limit: 3 });
|
|
69007
69019
|
*/
|
|
69008
69020
|
reviews(input: TripadvisorReviewsInput, options?: RequestOptions): Promise<RunResult<TripadvisorReviewsData>>;
|
|
69021
|
+
/**
|
|
69022
|
+
* Iterate every result of Tripadvisor Reviews across pages.
|
|
69023
|
+
*
|
|
69024
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
69025
|
+
* result pages instead (each carries its own costUsd).
|
|
69026
|
+
*/
|
|
69027
|
+
iterReviews(input: TripadvisorReviewsInput, options?: RequestOptions): Paginator<TripadvisorReviewsItem, RunResult<TripadvisorReviewsData>>;
|
|
69009
69028
|
/**
|
|
69010
69029
|
* Tripadvisor Search
|
|
69011
69030
|
*
|
|
@@ -75485,7 +75504,7 @@ declare class YoutubeNamespace {
|
|
|
75485
75504
|
*
|
|
75486
75505
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
75487
75506
|
*
|
|
75488
|
-
* Price: $0.
|
|
75507
|
+
* Price: $0.0005 per request.
|
|
75489
75508
|
*
|
|
75490
75509
|
* @example
|
|
75491
75510
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
package/dist/index.js
CHANGED
|
@@ -7681,7 +7681,7 @@ var TiktokNamespace = class {
|
|
|
7681
7681
|
*
|
|
7682
7682
|
* Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
|
|
7683
7683
|
*
|
|
7684
|
-
* Price: $0.
|
|
7684
|
+
* Price: $0.00116 per request plus $0 per result (maximum $0.00116).
|
|
7685
7685
|
*
|
|
7686
7686
|
* @example
|
|
7687
7687
|
* const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });
|
|
@@ -8287,6 +8287,22 @@ var TripadvisorNamespace = class {
|
|
|
8287
8287
|
reviews(input, options) {
|
|
8288
8288
|
return this._core.run("tripadvisor.reviews", input, options);
|
|
8289
8289
|
}
|
|
8290
|
+
/**
|
|
8291
|
+
* Iterate every result of Tripadvisor Reviews across pages.
|
|
8292
|
+
*
|
|
8293
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
8294
|
+
* result pages instead (each carries its own costUsd).
|
|
8295
|
+
*/
|
|
8296
|
+
iterReviews(input, options) {
|
|
8297
|
+
return paginate(
|
|
8298
|
+
this._core,
|
|
8299
|
+
"tripadvisor.reviews",
|
|
8300
|
+
input,
|
|
8301
|
+
"items",
|
|
8302
|
+
false,
|
|
8303
|
+
options
|
|
8304
|
+
);
|
|
8305
|
+
}
|
|
8290
8306
|
/**
|
|
8291
8307
|
* Tripadvisor Search
|
|
8292
8308
|
*
|
|
@@ -9050,7 +9066,7 @@ var YoutubeNamespace = class {
|
|
|
9050
9066
|
*
|
|
9051
9067
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
9052
9068
|
*
|
|
9053
|
-
* Price: $0.
|
|
9069
|
+
* Price: $0.0005 per request.
|
|
9054
9070
|
*
|
|
9055
9071
|
* @example
|
|
9056
9072
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|