@getanyapi/sdk 0.84.0 → 0.85.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 +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20560,7 +20560,7 @@ declare class GoogleNamespace {
|
|
|
20560
20560
|
*
|
|
20561
20561
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
20562
20562
|
*
|
|
20563
|
-
* Price: $0.
|
|
20563
|
+
* Price: $0.0004 per request.
|
|
20564
20564
|
*
|
|
20565
20565
|
* @example
|
|
20566
20566
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -32331,9 +32331,9 @@ interface MapsPlaceInput {
|
|
|
32331
32331
|
*/
|
|
32332
32332
|
query: string;
|
|
32333
32333
|
/**
|
|
32334
|
-
* 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 `
|
|
32334
|
+
* 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 `plusCode` or `postalCode`, 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 place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
32335
32335
|
*/
|
|
32336
|
-
requireFields?: ("city" | "countryCode" | "
|
|
32336
|
+
requireFields?: ("city" | "countryCode" | "neighborhood" | "permanentlyClosed" | "plusCode" | "postalCode" | "state" | "street")[];
|
|
32337
32337
|
/**
|
|
32338
32338
|
* 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`.
|
|
32339
32339
|
*/
|
|
@@ -59480,7 +59480,7 @@ declare class TwitterNamespace {
|
|
|
59480
59480
|
*
|
|
59481
59481
|
* List recent tweets posted in a Twitter/X community by URL.
|
|
59482
59482
|
*
|
|
59483
|
-
* Price: $0.
|
|
59483
|
+
* Price: $0.00045 per request.
|
|
59484
59484
|
*
|
|
59485
59485
|
* @example
|
|
59486
59486
|
* const res = await client.twitter.communityTweets({ url: "https://x.com/i/communities/1926186499399139650" });
|
|
@@ -59491,7 +59491,7 @@ declare class TwitterNamespace {
|
|
|
59491
59491
|
*
|
|
59492
59492
|
* Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
|
|
59493
59493
|
*
|
|
59494
|
-
* Price: $0.
|
|
59494
|
+
* Price: $0.00045 per request.
|
|
59495
59495
|
*
|
|
59496
59496
|
* @example
|
|
59497
59497
|
* const res = await client.twitter.followers({ username: "nasa", limit: 200 });
|
|
@@ -59509,7 +59509,7 @@ declare class TwitterNamespace {
|
|
|
59509
59509
|
*
|
|
59510
59510
|
* List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
|
|
59511
59511
|
*
|
|
59512
|
-
* Price: $0.
|
|
59512
|
+
* Price: $0.00045 per request.
|
|
59513
59513
|
*
|
|
59514
59514
|
* @example
|
|
59515
59515
|
* const res = await client.twitter.following({ username: "nasa", limit: 200 });
|
|
@@ -59538,7 +59538,7 @@ declare class TwitterNamespace {
|
|
|
59538
59538
|
*
|
|
59539
59539
|
* Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
|
|
59540
59540
|
*
|
|
59541
|
-
* Price: $0.
|
|
59541
|
+
* Price: $0.00045 per request.
|
|
59542
59542
|
*
|
|
59543
59543
|
* @example
|
|
59544
59544
|
* const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
|
|
@@ -59556,7 +59556,7 @@ declare class TwitterNamespace {
|
|
|
59556
59556
|
*
|
|
59557
59557
|
* Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
|
|
59558
59558
|
*
|
|
59559
|
-
* Price: $0.
|
|
59559
|
+
* Price: $0.0006 per request.
|
|
59560
59560
|
*
|
|
59561
59561
|
* @example
|
|
59562
59562
|
* const res = await client.twitter.search({ query: "openai" });
|
|
@@ -59654,7 +59654,7 @@ declare class TwitterNamespace {
|
|
|
59654
59654
|
*
|
|
59655
59655
|
* Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
|
|
59656
59656
|
*
|
|
59657
|
-
* Price: $0.
|
|
59657
|
+
* Price: $0.00045 per request.
|
|
59658
59658
|
*
|
|
59659
59659
|
* @example
|
|
59660
59660
|
* const res = await client.twitter.userPosts({ handle: "levelsio" });
|
|
@@ -59672,7 +59672,7 @@ declare class TwitterNamespace {
|
|
|
59672
59672
|
*
|
|
59673
59673
|
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
|
|
59674
59674
|
*
|
|
59675
|
-
* Price: $0.
|
|
59675
|
+
* Price: $0.00045 per request.
|
|
59676
59676
|
*
|
|
59677
59677
|
* @example
|
|
59678
59678
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
@@ -63434,7 +63434,7 @@ declare class YoutubeNamespace {
|
|
|
63434
63434
|
*
|
|
63435
63435
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
63436
63436
|
*
|
|
63437
|
-
* Price: $0.
|
|
63437
|
+
* Price: $0.0012 per request.
|
|
63438
63438
|
*
|
|
63439
63439
|
* @example
|
|
63440
63440
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.d.ts
CHANGED
|
@@ -20560,7 +20560,7 @@ declare class GoogleNamespace {
|
|
|
20560
20560
|
*
|
|
20561
20561
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
20562
20562
|
*
|
|
20563
|
-
* Price: $0.
|
|
20563
|
+
* Price: $0.0004 per request.
|
|
20564
20564
|
*
|
|
20565
20565
|
* @example
|
|
20566
20566
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -32331,9 +32331,9 @@ interface MapsPlaceInput {
|
|
|
32331
32331
|
*/
|
|
32332
32332
|
query: string;
|
|
32333
32333
|
/**
|
|
32334
|
-
* 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 `
|
|
32334
|
+
* 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 `plusCode` or `postalCode`, 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 place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
32335
32335
|
*/
|
|
32336
|
-
requireFields?: ("city" | "countryCode" | "
|
|
32336
|
+
requireFields?: ("city" | "countryCode" | "neighborhood" | "permanentlyClosed" | "plusCode" | "postalCode" | "state" | "street")[];
|
|
32337
32337
|
/**
|
|
32338
32338
|
* 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`.
|
|
32339
32339
|
*/
|
|
@@ -59480,7 +59480,7 @@ declare class TwitterNamespace {
|
|
|
59480
59480
|
*
|
|
59481
59481
|
* List recent tweets posted in a Twitter/X community by URL.
|
|
59482
59482
|
*
|
|
59483
|
-
* Price: $0.
|
|
59483
|
+
* Price: $0.00045 per request.
|
|
59484
59484
|
*
|
|
59485
59485
|
* @example
|
|
59486
59486
|
* const res = await client.twitter.communityTweets({ url: "https://x.com/i/communities/1926186499399139650" });
|
|
@@ -59491,7 +59491,7 @@ declare class TwitterNamespace {
|
|
|
59491
59491
|
*
|
|
59492
59492
|
* Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
|
|
59493
59493
|
*
|
|
59494
|
-
* Price: $0.
|
|
59494
|
+
* Price: $0.00045 per request.
|
|
59495
59495
|
*
|
|
59496
59496
|
* @example
|
|
59497
59497
|
* const res = await client.twitter.followers({ username: "nasa", limit: 200 });
|
|
@@ -59509,7 +59509,7 @@ declare class TwitterNamespace {
|
|
|
59509
59509
|
*
|
|
59510
59510
|
* List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
|
|
59511
59511
|
*
|
|
59512
|
-
* Price: $0.
|
|
59512
|
+
* Price: $0.00045 per request.
|
|
59513
59513
|
*
|
|
59514
59514
|
* @example
|
|
59515
59515
|
* const res = await client.twitter.following({ username: "nasa", limit: 200 });
|
|
@@ -59538,7 +59538,7 @@ declare class TwitterNamespace {
|
|
|
59538
59538
|
*
|
|
59539
59539
|
* Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
|
|
59540
59540
|
*
|
|
59541
|
-
* Price: $0.
|
|
59541
|
+
* Price: $0.00045 per request.
|
|
59542
59542
|
*
|
|
59543
59543
|
* @example
|
|
59544
59544
|
* const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
|
|
@@ -59556,7 +59556,7 @@ declare class TwitterNamespace {
|
|
|
59556
59556
|
*
|
|
59557
59557
|
* Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
|
|
59558
59558
|
*
|
|
59559
|
-
* Price: $0.
|
|
59559
|
+
* Price: $0.0006 per request.
|
|
59560
59560
|
*
|
|
59561
59561
|
* @example
|
|
59562
59562
|
* const res = await client.twitter.search({ query: "openai" });
|
|
@@ -59654,7 +59654,7 @@ declare class TwitterNamespace {
|
|
|
59654
59654
|
*
|
|
59655
59655
|
* Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
|
|
59656
59656
|
*
|
|
59657
|
-
* Price: $0.
|
|
59657
|
+
* Price: $0.00045 per request.
|
|
59658
59658
|
*
|
|
59659
59659
|
* @example
|
|
59660
59660
|
* const res = await client.twitter.userPosts({ handle: "levelsio" });
|
|
@@ -59672,7 +59672,7 @@ declare class TwitterNamespace {
|
|
|
59672
59672
|
*
|
|
59673
59673
|
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
|
|
59674
59674
|
*
|
|
59675
|
-
* Price: $0.
|
|
59675
|
+
* Price: $0.00045 per request.
|
|
59676
59676
|
*
|
|
59677
59677
|
* @example
|
|
59678
59678
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
@@ -63434,7 +63434,7 @@ declare class YoutubeNamespace {
|
|
|
63434
63434
|
*
|
|
63435
63435
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
63436
63436
|
*
|
|
63437
|
-
* Price: $0.
|
|
63437
|
+
* Price: $0.0012 per request.
|
|
63438
63438
|
*
|
|
63439
63439
|
* @example
|
|
63440
63440
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.js
CHANGED
|
@@ -3159,7 +3159,7 @@ var GoogleNamespace = class {
|
|
|
3159
3159
|
*
|
|
3160
3160
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3161
3161
|
*
|
|
3162
|
-
* Price: $0.
|
|
3162
|
+
* Price: $0.0004 per request.
|
|
3163
3163
|
*
|
|
3164
3164
|
* @example
|
|
3165
3165
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -7390,7 +7390,7 @@ var TwitterNamespace = class {
|
|
|
7390
7390
|
*
|
|
7391
7391
|
* List recent tweets posted in a Twitter/X community by URL.
|
|
7392
7392
|
*
|
|
7393
|
-
* Price: $0.
|
|
7393
|
+
* Price: $0.00045 per request.
|
|
7394
7394
|
*
|
|
7395
7395
|
* @example
|
|
7396
7396
|
* const res = await client.twitter.communityTweets({ url: "https://x.com/i/communities/1926186499399139650" });
|
|
@@ -7403,7 +7403,7 @@ var TwitterNamespace = class {
|
|
|
7403
7403
|
*
|
|
7404
7404
|
* Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
|
|
7405
7405
|
*
|
|
7406
|
-
* Price: $0.
|
|
7406
|
+
* Price: $0.00045 per request.
|
|
7407
7407
|
*
|
|
7408
7408
|
* @example
|
|
7409
7409
|
* const res = await client.twitter.followers({ username: "nasa", limit: 200 });
|
|
@@ -7432,7 +7432,7 @@ var TwitterNamespace = class {
|
|
|
7432
7432
|
*
|
|
7433
7433
|
* List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
|
|
7434
7434
|
*
|
|
7435
|
-
* Price: $0.
|
|
7435
|
+
* Price: $0.00045 per request.
|
|
7436
7436
|
*
|
|
7437
7437
|
* @example
|
|
7438
7438
|
* const res = await client.twitter.following({ username: "nasa", limit: 200 });
|
|
@@ -7474,7 +7474,7 @@ var TwitterNamespace = class {
|
|
|
7474
7474
|
*
|
|
7475
7475
|
* Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
|
|
7476
7476
|
*
|
|
7477
|
-
* Price: $0.
|
|
7477
|
+
* Price: $0.00045 per request.
|
|
7478
7478
|
*
|
|
7479
7479
|
* @example
|
|
7480
7480
|
* const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
|
|
@@ -7503,7 +7503,7 @@ var TwitterNamespace = class {
|
|
|
7503
7503
|
*
|
|
7504
7504
|
* Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
|
|
7505
7505
|
*
|
|
7506
|
-
* Price: $0.
|
|
7506
|
+
* Price: $0.0006 per request.
|
|
7507
7507
|
*
|
|
7508
7508
|
* @example
|
|
7509
7509
|
* const res = await client.twitter.search({ query: "openai" });
|
|
@@ -7642,7 +7642,7 @@ var TwitterNamespace = class {
|
|
|
7642
7642
|
*
|
|
7643
7643
|
* Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
|
|
7644
7644
|
*
|
|
7645
|
-
* Price: $0.
|
|
7645
|
+
* Price: $0.00045 per request.
|
|
7646
7646
|
*
|
|
7647
7647
|
* @example
|
|
7648
7648
|
* const res = await client.twitter.userPosts({ handle: "levelsio" });
|
|
@@ -7671,7 +7671,7 @@ var TwitterNamespace = class {
|
|
|
7671
7671
|
*
|
|
7672
7672
|
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
|
|
7673
7673
|
*
|
|
7674
|
-
* Price: $0.
|
|
7674
|
+
* Price: $0.00045 per request.
|
|
7675
7675
|
*
|
|
7676
7676
|
* @example
|
|
7677
7677
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
@@ -8327,7 +8327,7 @@ var YoutubeNamespace = class {
|
|
|
8327
8327
|
*
|
|
8328
8328
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
8329
8329
|
*
|
|
8330
|
-
* Price: $0.
|
|
8330
|
+
* Price: $0.0012 per request.
|
|
8331
8331
|
*
|
|
8332
8332
|
* @example
|
|
8333
8333
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|