@getanyapi/sdk 0.191.0 → 0.192.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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.js +7 -7
- 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.00077 per request.
|
|
25363
25363
|
*
|
|
25364
25364
|
* @example
|
|
25365
25365
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -32567,7 +32567,7 @@ declare class InstagramNamespace {
|
|
|
32567
32567
|
*
|
|
32568
32568
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
32569
32569
|
*
|
|
32570
|
-
* Price: $0.
|
|
32570
|
+
* Price: $0.00038 per request.
|
|
32571
32571
|
*
|
|
32572
32572
|
* @example
|
|
32573
32573
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -41688,7 +41688,7 @@ declare class MapsNamespace {
|
|
|
41688
41688
|
*
|
|
41689
41689
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
41690
41690
|
*
|
|
41691
|
-
* Price: $0.
|
|
41691
|
+
* Price: $0.00135 per request.
|
|
41692
41692
|
*
|
|
41693
41693
|
* @example
|
|
41694
41694
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -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.00037 per request.
|
|
69637
69637
|
*
|
|
69638
69638
|
* @example
|
|
69639
69639
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -72504,10 +72504,6 @@ 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"[];
|
|
72511
72507
|
/**
|
|
72512
72508
|
* 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`.
|
|
72513
72509
|
*/
|
|
@@ -72610,7 +72606,7 @@ interface TwitterSearchData {
|
|
|
72610
72606
|
*/
|
|
72611
72607
|
items: TwitterSearchItem[];
|
|
72612
72608
|
/**
|
|
72613
|
-
* Opaque cursor for the next page of search results
|
|
72609
|
+
* Opaque cursor for the next page of search results, or null when there are no more. Pass it back as cursor to continue.
|
|
72614
72610
|
*/
|
|
72615
72611
|
nextCursor?: string | null;
|
|
72616
72612
|
}
|
|
@@ -78305,7 +78301,7 @@ declare class YoutubeNamespace {
|
|
|
78305
78301
|
*
|
|
78306
78302
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
78307
78303
|
*
|
|
78308
|
-
* Price: $0.
|
|
78304
|
+
* Price: $0.00038 per request.
|
|
78309
78305
|
*
|
|
78310
78306
|
* @example
|
|
78311
78307
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -78410,7 +78406,7 @@ declare class YoutubeNamespace {
|
|
|
78410
78406
|
*
|
|
78411
78407
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
78412
78408
|
*
|
|
78413
|
-
* Price: $0.
|
|
78409
|
+
* Price: $0.00072 per request.
|
|
78414
78410
|
*
|
|
78415
78411
|
* @example
|
|
78416
78412
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -78573,7 +78569,7 @@ declare class YoutubeNamespace {
|
|
|
78573
78569
|
*
|
|
78574
78570
|
* Fetch the transcript/captions of a YouTube video or Short by URL or ID.
|
|
78575
78571
|
*
|
|
78576
|
-
* Price: $0.
|
|
78572
|
+
* Price: $0.00082 per request.
|
|
78577
78573
|
*
|
|
78578
78574
|
* @example
|
|
78579
78575
|
* 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.00077 per request.
|
|
25363
25363
|
*
|
|
25364
25364
|
* @example
|
|
25365
25365
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -32567,7 +32567,7 @@ declare class InstagramNamespace {
|
|
|
32567
32567
|
*
|
|
32568
32568
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
32569
32569
|
*
|
|
32570
|
-
* Price: $0.
|
|
32570
|
+
* Price: $0.00038 per request.
|
|
32571
32571
|
*
|
|
32572
32572
|
* @example
|
|
32573
32573
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -41688,7 +41688,7 @@ declare class MapsNamespace {
|
|
|
41688
41688
|
*
|
|
41689
41689
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
41690
41690
|
*
|
|
41691
|
-
* Price: $0.
|
|
41691
|
+
* Price: $0.00135 per request.
|
|
41692
41692
|
*
|
|
41693
41693
|
* @example
|
|
41694
41694
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -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.00037 per request.
|
|
69637
69637
|
*
|
|
69638
69638
|
* @example
|
|
69639
69639
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -72504,10 +72504,6 @@ 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"[];
|
|
72511
72507
|
/**
|
|
72512
72508
|
* 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`.
|
|
72513
72509
|
*/
|
|
@@ -72610,7 +72606,7 @@ interface TwitterSearchData {
|
|
|
72610
72606
|
*/
|
|
72611
72607
|
items: TwitterSearchItem[];
|
|
72612
72608
|
/**
|
|
72613
|
-
* Opaque cursor for the next page of search results
|
|
72609
|
+
* Opaque cursor for the next page of search results, or null when there are no more. Pass it back as cursor to continue.
|
|
72614
72610
|
*/
|
|
72615
72611
|
nextCursor?: string | null;
|
|
72616
72612
|
}
|
|
@@ -78305,7 +78301,7 @@ declare class YoutubeNamespace {
|
|
|
78305
78301
|
*
|
|
78306
78302
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
78307
78303
|
*
|
|
78308
|
-
* Price: $0.
|
|
78304
|
+
* Price: $0.00038 per request.
|
|
78309
78305
|
*
|
|
78310
78306
|
* @example
|
|
78311
78307
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -78410,7 +78406,7 @@ declare class YoutubeNamespace {
|
|
|
78410
78406
|
*
|
|
78411
78407
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
78412
78408
|
*
|
|
78413
|
-
* Price: $0.
|
|
78409
|
+
* Price: $0.00072 per request.
|
|
78414
78410
|
*
|
|
78415
78411
|
* @example
|
|
78416
78412
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -78573,7 +78569,7 @@ declare class YoutubeNamespace {
|
|
|
78573
78569
|
*
|
|
78574
78570
|
* Fetch the transcript/captions of a YouTube video or Short by URL or ID.
|
|
78575
78571
|
*
|
|
78576
|
-
* Price: $0.
|
|
78572
|
+
* Price: $0.00082 per request.
|
|
78577
78573
|
*
|
|
78578
78574
|
* @example
|
|
78579
78575
|
* 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.00077 per request.
|
|
3835
3835
|
*
|
|
3836
3836
|
* @example
|
|
3837
3837
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -4429,7 +4429,7 @@ var InstagramNamespace = class {
|
|
|
4429
4429
|
*
|
|
4430
4430
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
4431
4431
|
*
|
|
4432
|
-
* Price: $0.
|
|
4432
|
+
* Price: $0.00038 per request.
|
|
4433
4433
|
*
|
|
4434
4434
|
* @example
|
|
4435
4435
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -5664,7 +5664,7 @@ var MapsNamespace = class {
|
|
|
5664
5664
|
*
|
|
5665
5665
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
5666
5666
|
*
|
|
5667
|
-
* Price: $0.
|
|
5667
|
+
* Price: $0.00135 per request.
|
|
5668
5668
|
*
|
|
5669
5669
|
* @example
|
|
5670
5670
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -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.00037 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.00038 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.00072 per request.
|
|
9672
9672
|
*
|
|
9673
9673
|
* @example
|
|
9674
9674
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -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.00082 per request.
|
|
9911
9911
|
*
|
|
9912
9912
|
* @example
|
|
9913
9913
|
* const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|