@getanyapi/sdk 0.190.9 → 0.191.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 +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25359,7 +25359,7 @@ declare class GoogleAdsNamespace {
|
|
|
25359
25359
|
*
|
|
25360
25360
|
* List the ads a company is running from the Google Ads Transparency Center by domain or advertiser ID (creative ID, format, ad URL, and first/last shown dates) with cursor pagination.
|
|
25361
25361
|
*
|
|
25362
|
-
* Price: $0.
|
|
25362
|
+
* Price: $0.00078 per request.
|
|
25363
25363
|
*
|
|
25364
25364
|
* @example
|
|
25365
25365
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -69633,7 +69633,7 @@ declare class TiktokNamespace {
|
|
|
69633
69633
|
*
|
|
69634
69634
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
69635
69635
|
*
|
|
69636
|
-
* Price: $0.
|
|
69636
|
+
* Price: $0.00038 per request.
|
|
69637
69637
|
*
|
|
69638
69638
|
* @example
|
|
69639
69639
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -72504,6 +72504,10 @@ interface TwitterSearchInput {
|
|
|
72504
72504
|
* Default: Latest.
|
|
72505
72505
|
*/
|
|
72506
72506
|
queryType?: "Latest" | "Top" | "Photos" | "Videos";
|
|
72507
|
+
/**
|
|
72508
|
+
* 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. A named field can still be absent on a post that genuinely lacks it. 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.
|
|
72509
|
+
*/
|
|
72510
|
+
requireFields?: "nextCursor"[];
|
|
72507
72511
|
/**
|
|
72508
72512
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources 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`.
|
|
72509
72513
|
*/
|
|
@@ -72606,7 +72610,7 @@ interface TwitterSearchData {
|
|
|
72606
72610
|
*/
|
|
72607
72611
|
items: TwitterSearchItem[];
|
|
72608
72612
|
/**
|
|
72609
|
-
* Opaque cursor for the next page of search results
|
|
72613
|
+
* Opaque cursor for the next page of search results. Pass it back as cursor to continue. Null when there are no more results, or when the source that served this call cannot continue the search; to be served only by a source that can, send requireFields: ["nextCursor"] on the first page.
|
|
72610
72614
|
*/
|
|
72611
72615
|
nextCursor?: string | null;
|
|
72612
72616
|
}
|
|
@@ -78301,7 +78305,7 @@ declare class YoutubeNamespace {
|
|
|
78301
78305
|
*
|
|
78302
78306
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
78303
78307
|
*
|
|
78304
|
-
* Price: $0.
|
|
78308
|
+
* Price: $0.00039 per request.
|
|
78305
78309
|
*
|
|
78306
78310
|
* @example
|
|
78307
78311
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -78406,7 +78410,7 @@ declare class YoutubeNamespace {
|
|
|
78406
78410
|
*
|
|
78407
78411
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
78408
78412
|
*
|
|
78409
|
-
* Price: $0.
|
|
78413
|
+
* Price: $0.00073 per request.
|
|
78410
78414
|
*
|
|
78411
78415
|
* @example
|
|
78412
78416
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -78464,7 +78468,7 @@ declare class YoutubeNamespace {
|
|
|
78464
78468
|
*
|
|
78465
78469
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
78466
78470
|
*
|
|
78467
|
-
* Price: $0.
|
|
78471
|
+
* Price: $0.00036 per request.
|
|
78468
78472
|
*
|
|
78469
78473
|
* @example
|
|
78470
78474
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -78529,7 +78533,7 @@ declare class YoutubeNamespace {
|
|
|
78529
78533
|
*
|
|
78530
78534
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
78531
78535
|
*
|
|
78532
|
-
* Price: $0.
|
|
78536
|
+
* Price: $0.00061 per request.
|
|
78533
78537
|
*
|
|
78534
78538
|
* @example
|
|
78535
78539
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -78540,7 +78544,7 @@ declare class YoutubeNamespace {
|
|
|
78540
78544
|
*
|
|
78541
78545
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
78542
78546
|
*
|
|
78543
|
-
* Price: $0.
|
|
78547
|
+
* Price: $0.00072 per request.
|
|
78544
78548
|
*
|
|
78545
78549
|
* @example
|
|
78546
78550
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -78569,7 +78573,7 @@ declare class YoutubeNamespace {
|
|
|
78569
78573
|
*
|
|
78570
78574
|
* Fetch the transcript/captions of a YouTube video or Short by URL or ID.
|
|
78571
78575
|
*
|
|
78572
|
-
* Price: $0.
|
|
78576
|
+
* Price: $0.00083 per request.
|
|
78573
78577
|
*
|
|
78574
78578
|
* @example
|
|
78575
78579
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.d.ts
CHANGED
|
@@ -25359,7 +25359,7 @@ declare class GoogleAdsNamespace {
|
|
|
25359
25359
|
*
|
|
25360
25360
|
* List the ads a company is running from the Google Ads Transparency Center by domain or advertiser ID (creative ID, format, ad URL, and first/last shown dates) with cursor pagination.
|
|
25361
25361
|
*
|
|
25362
|
-
* Price: $0.
|
|
25362
|
+
* Price: $0.00078 per request.
|
|
25363
25363
|
*
|
|
25364
25364
|
* @example
|
|
25365
25365
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -69633,7 +69633,7 @@ declare class TiktokNamespace {
|
|
|
69633
69633
|
*
|
|
69634
69634
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
69635
69635
|
*
|
|
69636
|
-
* Price: $0.
|
|
69636
|
+
* Price: $0.00038 per request.
|
|
69637
69637
|
*
|
|
69638
69638
|
* @example
|
|
69639
69639
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -72504,6 +72504,10 @@ interface TwitterSearchInput {
|
|
|
72504
72504
|
* Default: Latest.
|
|
72505
72505
|
*/
|
|
72506
72506
|
queryType?: "Latest" | "Top" | "Photos" | "Videos";
|
|
72507
|
+
/**
|
|
72508
|
+
* 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. A named field can still be absent on a post that genuinely lacks it. 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.
|
|
72509
|
+
*/
|
|
72510
|
+
requireFields?: "nextCursor"[];
|
|
72507
72511
|
/**
|
|
72508
72512
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources 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`.
|
|
72509
72513
|
*/
|
|
@@ -72606,7 +72610,7 @@ interface TwitterSearchData {
|
|
|
72606
72610
|
*/
|
|
72607
72611
|
items: TwitterSearchItem[];
|
|
72608
72612
|
/**
|
|
72609
|
-
* Opaque cursor for the next page of search results
|
|
72613
|
+
* Opaque cursor for the next page of search results. Pass it back as cursor to continue. Null when there are no more results, or when the source that served this call cannot continue the search; to be served only by a source that can, send requireFields: ["nextCursor"] on the first page.
|
|
72610
72614
|
*/
|
|
72611
72615
|
nextCursor?: string | null;
|
|
72612
72616
|
}
|
|
@@ -78301,7 +78305,7 @@ declare class YoutubeNamespace {
|
|
|
78301
78305
|
*
|
|
78302
78306
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
78303
78307
|
*
|
|
78304
|
-
* Price: $0.
|
|
78308
|
+
* Price: $0.00039 per request.
|
|
78305
78309
|
*
|
|
78306
78310
|
* @example
|
|
78307
78311
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -78406,7 +78410,7 @@ declare class YoutubeNamespace {
|
|
|
78406
78410
|
*
|
|
78407
78411
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
78408
78412
|
*
|
|
78409
|
-
* Price: $0.
|
|
78413
|
+
* Price: $0.00073 per request.
|
|
78410
78414
|
*
|
|
78411
78415
|
* @example
|
|
78412
78416
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -78464,7 +78468,7 @@ declare class YoutubeNamespace {
|
|
|
78464
78468
|
*
|
|
78465
78469
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
78466
78470
|
*
|
|
78467
|
-
* Price: $0.
|
|
78471
|
+
* Price: $0.00036 per request.
|
|
78468
78472
|
*
|
|
78469
78473
|
* @example
|
|
78470
78474
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -78529,7 +78533,7 @@ declare class YoutubeNamespace {
|
|
|
78529
78533
|
*
|
|
78530
78534
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
78531
78535
|
*
|
|
78532
|
-
* Price: $0.
|
|
78536
|
+
* Price: $0.00061 per request.
|
|
78533
78537
|
*
|
|
78534
78538
|
* @example
|
|
78535
78539
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -78540,7 +78544,7 @@ declare class YoutubeNamespace {
|
|
|
78540
78544
|
*
|
|
78541
78545
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
78542
78546
|
*
|
|
78543
|
-
* Price: $0.
|
|
78547
|
+
* Price: $0.00072 per request.
|
|
78544
78548
|
*
|
|
78545
78549
|
* @example
|
|
78546
78550
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -78569,7 +78573,7 @@ declare class YoutubeNamespace {
|
|
|
78569
78573
|
*
|
|
78570
78574
|
* Fetch the transcript/captions of a YouTube video or Short by URL or ID.
|
|
78571
78575
|
*
|
|
78572
|
-
* Price: $0.
|
|
78576
|
+
* Price: $0.00083 per request.
|
|
78573
78577
|
*
|
|
78574
78578
|
* @example
|
|
78575
78579
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.js
CHANGED
|
@@ -3831,7 +3831,7 @@ var GoogleAdsNamespace = class {
|
|
|
3831
3831
|
*
|
|
3832
3832
|
* List the ads a company is running from the Google Ads Transparency Center by domain or advertiser ID (creative ID, format, ad URL, and first/last shown dates) with cursor pagination.
|
|
3833
3833
|
*
|
|
3834
|
-
* Price: $0.
|
|
3834
|
+
* Price: $0.00078 per request.
|
|
3835
3835
|
*
|
|
3836
3836
|
* @example
|
|
3837
3837
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -8081,7 +8081,7 @@ var TiktokNamespace = class {
|
|
|
8081
8081
|
*
|
|
8082
8082
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
8083
8083
|
*
|
|
8084
|
-
* Price: $0.
|
|
8084
|
+
* Price: $0.00038 per request.
|
|
8085
8085
|
*
|
|
8086
8086
|
* @example
|
|
8087
8087
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -9513,7 +9513,7 @@ var YoutubeNamespace = class {
|
|
|
9513
9513
|
*
|
|
9514
9514
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
9515
9515
|
*
|
|
9516
|
-
* Price: $0.
|
|
9516
|
+
* Price: $0.00039 per request.
|
|
9517
9517
|
*
|
|
9518
9518
|
* @example
|
|
9519
9519
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -9668,7 +9668,7 @@ var YoutubeNamespace = class {
|
|
|
9668
9668
|
*
|
|
9669
9669
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
9670
9670
|
*
|
|
9671
|
-
* Price: $0.
|
|
9671
|
+
* Price: $0.00073 per request.
|
|
9672
9672
|
*
|
|
9673
9673
|
* @example
|
|
9674
9674
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -9752,7 +9752,7 @@ var YoutubeNamespace = class {
|
|
|
9752
9752
|
*
|
|
9753
9753
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
9754
9754
|
*
|
|
9755
|
-
* Price: $0.
|
|
9755
|
+
* Price: $0.00036 per request.
|
|
9756
9756
|
*
|
|
9757
9757
|
* @example
|
|
9758
9758
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -9852,7 +9852,7 @@ var YoutubeNamespace = class {
|
|
|
9852
9852
|
*
|
|
9853
9853
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
9854
9854
|
*
|
|
9855
|
-
* Price: $0.
|
|
9855
|
+
* Price: $0.00061 per request.
|
|
9856
9856
|
*
|
|
9857
9857
|
* @example
|
|
9858
9858
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -9865,7 +9865,7 @@ var YoutubeNamespace = class {
|
|
|
9865
9865
|
*
|
|
9866
9866
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
9867
9867
|
*
|
|
9868
|
-
* Price: $0.
|
|
9868
|
+
* Price: $0.00072 per request.
|
|
9869
9869
|
*
|
|
9870
9870
|
* @example
|
|
9871
9871
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -9907,7 +9907,7 @@ var YoutubeNamespace = class {
|
|
|
9907
9907
|
*
|
|
9908
9908
|
* Fetch the transcript/captions of a YouTube video or Short by URL or ID.
|
|
9909
9909
|
*
|
|
9910
|
-
* Price: $0.
|
|
9910
|
+
* Price: $0.00083 per request.
|
|
9911
9911
|
*
|
|
9912
9912
|
* @example
|
|
9913
9913
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|