@getanyapi/sdk 0.173.7 → 0.174.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 +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -12
- package/dist/index.d.ts +17 -12
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20239,7 +20239,7 @@ declare class FacebookNamespace {
|
|
|
20239
20239
|
*
|
|
20240
20240
|
* List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, publication time, permalink).
|
|
20241
20241
|
*
|
|
20242
|
-
* Price: $0.
|
|
20242
|
+
* Price: $0.00115 per request.
|
|
20243
20243
|
*
|
|
20244
20244
|
* @example
|
|
20245
20245
|
* const res = await client.facebook.profilePosts({ url: "https://www.facebook.com/nike" });
|
|
@@ -24282,7 +24282,7 @@ declare class GoogleNamespace {
|
|
|
24282
24282
|
*
|
|
24283
24283
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
24284
24284
|
*
|
|
24285
|
-
* Price: $0.
|
|
24285
|
+
* Price: $0.00088 per request.
|
|
24286
24286
|
*
|
|
24287
24287
|
* @example
|
|
24288
24288
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -31919,7 +31919,7 @@ declare class InstagramNamespace {
|
|
|
31919
31919
|
*
|
|
31920
31920
|
* List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
|
|
31921
31921
|
*
|
|
31922
|
-
* Price: $0.
|
|
31922
|
+
* Price: $0.00072 per request.
|
|
31923
31923
|
*
|
|
31924
31924
|
* @example
|
|
31925
31925
|
* const res = await client.instagram.postComments({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -31948,7 +31948,7 @@ declare class InstagramNamespace {
|
|
|
31948
31948
|
*
|
|
31949
31949
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
31950
31950
|
*
|
|
31951
|
-
* Price: $0.
|
|
31951
|
+
* Price: $0.00054 per request.
|
|
31952
31952
|
*
|
|
31953
31953
|
* @example
|
|
31954
31954
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -31999,7 +31999,7 @@ declare class InstagramNamespace {
|
|
|
31999
31999
|
*
|
|
32000
32000
|
* Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
|
|
32001
32001
|
*
|
|
32002
|
-
* Price: $0.
|
|
32002
|
+
* Price: $0.00126 per request.
|
|
32003
32003
|
*
|
|
32004
32004
|
* @example
|
|
32005
32005
|
* const res = await client.instagram.search({ query: "nasa" });
|
|
@@ -32203,7 +32203,7 @@ declare class InstagramNamespace {
|
|
|
32203
32203
|
*
|
|
32204
32204
|
* List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
|
|
32205
32205
|
*
|
|
32206
|
-
* Price: $0.
|
|
32206
|
+
* Price: $0.00068 per request.
|
|
32207
32207
|
*
|
|
32208
32208
|
* @example
|
|
32209
32209
|
* const res = await client.instagram.userPosts({ handle: "nasa" });
|
|
@@ -32221,7 +32221,7 @@ declare class InstagramNamespace {
|
|
|
32221
32221
|
*
|
|
32222
32222
|
* List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
|
|
32223
32223
|
*
|
|
32224
|
-
* Price: $0.
|
|
32224
|
+
* Price: $0.00068 per request.
|
|
32225
32225
|
*
|
|
32226
32226
|
* @example
|
|
32227
32227
|
* const res = await client.instagram.userReels({ handle: "nasa" });
|
|
@@ -40897,7 +40897,7 @@ declare class MapsNamespace {
|
|
|
40897
40897
|
*
|
|
40898
40898
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
40899
40899
|
*
|
|
40900
|
-
* Price: $0.
|
|
40900
|
+
* Price: $0.00149 per request.
|
|
40901
40901
|
*
|
|
40902
40902
|
* @example
|
|
40903
40903
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -54334,7 +54334,7 @@ declare class RedditNamespace {
|
|
|
54334
54334
|
*
|
|
54335
54335
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
54336
54336
|
*
|
|
54337
|
-
* Price: $0.
|
|
54337
|
+
* Price: $0.00048 per request.
|
|
54338
54338
|
*
|
|
54339
54339
|
* @example
|
|
54340
54340
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -54414,7 +54414,7 @@ declare class RedditNamespace {
|
|
|
54414
54414
|
*
|
|
54415
54415
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
54416
54416
|
*
|
|
54417
|
-
* Price: $0.
|
|
54417
|
+
* Price: $0.00036 per request.
|
|
54418
54418
|
*
|
|
54419
54419
|
* @example
|
|
54420
54420
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming" });
|
|
@@ -64980,6 +64980,11 @@ interface TiktokAdLibrarySearchInput {
|
|
|
64980
64980
|
* Opaque cursor from a previous response's nextCursor. Omit it for the first page.
|
|
64981
64981
|
*/
|
|
64982
64982
|
cursor?: string;
|
|
64983
|
+
/**
|
|
64984
|
+
* Number of days of library history to search, from 1 to 365.
|
|
64985
|
+
* Range: minimum 1, maximum 365.
|
|
64986
|
+
*/
|
|
64987
|
+
days?: number;
|
|
64983
64988
|
/**
|
|
64984
64989
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. 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.
|
|
64985
64990
|
*/
|
|
@@ -72816,7 +72821,7 @@ declare class TwitterNamespace {
|
|
|
72816
72821
|
*
|
|
72817
72822
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
72818
72823
|
*
|
|
72819
|
-
* Price: $0.
|
|
72824
|
+
* Price: $0.0002 per request.
|
|
72820
72825
|
*
|
|
72821
72826
|
* @example
|
|
72822
72827
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
|
@@ -72827,7 +72832,7 @@ declare class TwitterNamespace {
|
|
|
72827
72832
|
*
|
|
72828
72833
|
* 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.
|
|
72829
72834
|
*
|
|
72830
|
-
* Price: $0.
|
|
72835
|
+
* Price: $0.00044 per request.
|
|
72831
72836
|
*
|
|
72832
72837
|
* @example
|
|
72833
72838
|
* const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
|
package/dist/index.d.ts
CHANGED
|
@@ -20239,7 +20239,7 @@ declare class FacebookNamespace {
|
|
|
20239
20239
|
*
|
|
20240
20240
|
* List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, publication time, permalink).
|
|
20241
20241
|
*
|
|
20242
|
-
* Price: $0.
|
|
20242
|
+
* Price: $0.00115 per request.
|
|
20243
20243
|
*
|
|
20244
20244
|
* @example
|
|
20245
20245
|
* const res = await client.facebook.profilePosts({ url: "https://www.facebook.com/nike" });
|
|
@@ -24282,7 +24282,7 @@ declare class GoogleNamespace {
|
|
|
24282
24282
|
*
|
|
24283
24283
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
24284
24284
|
*
|
|
24285
|
-
* Price: $0.
|
|
24285
|
+
* Price: $0.00088 per request.
|
|
24286
24286
|
*
|
|
24287
24287
|
* @example
|
|
24288
24288
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -31919,7 +31919,7 @@ declare class InstagramNamespace {
|
|
|
31919
31919
|
*
|
|
31920
31920
|
* List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
|
|
31921
31921
|
*
|
|
31922
|
-
* Price: $0.
|
|
31922
|
+
* Price: $0.00072 per request.
|
|
31923
31923
|
*
|
|
31924
31924
|
* @example
|
|
31925
31925
|
* const res = await client.instagram.postComments({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -31948,7 +31948,7 @@ declare class InstagramNamespace {
|
|
|
31948
31948
|
*
|
|
31949
31949
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
31950
31950
|
*
|
|
31951
|
-
* Price: $0.
|
|
31951
|
+
* Price: $0.00054 per request.
|
|
31952
31952
|
*
|
|
31953
31953
|
* @example
|
|
31954
31954
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -31999,7 +31999,7 @@ declare class InstagramNamespace {
|
|
|
31999
31999
|
*
|
|
32000
32000
|
* Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
|
|
32001
32001
|
*
|
|
32002
|
-
* Price: $0.
|
|
32002
|
+
* Price: $0.00126 per request.
|
|
32003
32003
|
*
|
|
32004
32004
|
* @example
|
|
32005
32005
|
* const res = await client.instagram.search({ query: "nasa" });
|
|
@@ -32203,7 +32203,7 @@ declare class InstagramNamespace {
|
|
|
32203
32203
|
*
|
|
32204
32204
|
* List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
|
|
32205
32205
|
*
|
|
32206
|
-
* Price: $0.
|
|
32206
|
+
* Price: $0.00068 per request.
|
|
32207
32207
|
*
|
|
32208
32208
|
* @example
|
|
32209
32209
|
* const res = await client.instagram.userPosts({ handle: "nasa" });
|
|
@@ -32221,7 +32221,7 @@ declare class InstagramNamespace {
|
|
|
32221
32221
|
*
|
|
32222
32222
|
* List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
|
|
32223
32223
|
*
|
|
32224
|
-
* Price: $0.
|
|
32224
|
+
* Price: $0.00068 per request.
|
|
32225
32225
|
*
|
|
32226
32226
|
* @example
|
|
32227
32227
|
* const res = await client.instagram.userReels({ handle: "nasa" });
|
|
@@ -40897,7 +40897,7 @@ declare class MapsNamespace {
|
|
|
40897
40897
|
*
|
|
40898
40898
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
40899
40899
|
*
|
|
40900
|
-
* Price: $0.
|
|
40900
|
+
* Price: $0.00149 per request.
|
|
40901
40901
|
*
|
|
40902
40902
|
* @example
|
|
40903
40903
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -54334,7 +54334,7 @@ declare class RedditNamespace {
|
|
|
54334
54334
|
*
|
|
54335
54335
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
54336
54336
|
*
|
|
54337
|
-
* Price: $0.
|
|
54337
|
+
* Price: $0.00048 per request.
|
|
54338
54338
|
*
|
|
54339
54339
|
* @example
|
|
54340
54340
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -54414,7 +54414,7 @@ declare class RedditNamespace {
|
|
|
54414
54414
|
*
|
|
54415
54415
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
54416
54416
|
*
|
|
54417
|
-
* Price: $0.
|
|
54417
|
+
* Price: $0.00036 per request.
|
|
54418
54418
|
*
|
|
54419
54419
|
* @example
|
|
54420
54420
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming" });
|
|
@@ -64980,6 +64980,11 @@ interface TiktokAdLibrarySearchInput {
|
|
|
64980
64980
|
* Opaque cursor from a previous response's nextCursor. Omit it for the first page.
|
|
64981
64981
|
*/
|
|
64982
64982
|
cursor?: string;
|
|
64983
|
+
/**
|
|
64984
|
+
* Number of days of library history to search, from 1 to 365.
|
|
64985
|
+
* Range: minimum 1, maximum 365.
|
|
64986
|
+
*/
|
|
64987
|
+
days?: number;
|
|
64983
64988
|
/**
|
|
64984
64989
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. 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.
|
|
64985
64990
|
*/
|
|
@@ -72816,7 +72821,7 @@ declare class TwitterNamespace {
|
|
|
72816
72821
|
*
|
|
72817
72822
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
72818
72823
|
*
|
|
72819
|
-
* Price: $0.
|
|
72824
|
+
* Price: $0.0002 per request.
|
|
72820
72825
|
*
|
|
72821
72826
|
* @example
|
|
72822
72827
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
|
@@ -72827,7 +72832,7 @@ declare class TwitterNamespace {
|
|
|
72827
72832
|
*
|
|
72828
72833
|
* 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.
|
|
72829
72834
|
*
|
|
72830
|
-
* Price: $0.
|
|
72835
|
+
* Price: $0.00044 per request.
|
|
72831
72836
|
*
|
|
72832
72837
|
* @example
|
|
72833
72838
|
* const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
|
package/dist/index.js
CHANGED
|
@@ -2984,7 +2984,7 @@ var FacebookNamespace = class {
|
|
|
2984
2984
|
*
|
|
2985
2985
|
* List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, publication time, permalink).
|
|
2986
2986
|
*
|
|
2987
|
-
* Price: $0.
|
|
2987
|
+
* Price: $0.00115 per request.
|
|
2988
2988
|
*
|
|
2989
2989
|
* @example
|
|
2990
2990
|
* const res = await client.facebook.profilePosts({ url: "https://www.facebook.com/nike" });
|
|
@@ -3618,7 +3618,7 @@ var GoogleNamespace = class {
|
|
|
3618
3618
|
*
|
|
3619
3619
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
3620
3620
|
*
|
|
3621
|
-
* Price: $0.
|
|
3621
|
+
* Price: $0.00088 per request.
|
|
3622
3622
|
*
|
|
3623
3623
|
* @example
|
|
3624
3624
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -4370,7 +4370,7 @@ var InstagramNamespace = class {
|
|
|
4370
4370
|
*
|
|
4371
4371
|
* List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
|
|
4372
4372
|
*
|
|
4373
|
-
* Price: $0.
|
|
4373
|
+
* Price: $0.00072 per request.
|
|
4374
4374
|
*
|
|
4375
4375
|
* @example
|
|
4376
4376
|
* const res = await client.instagram.postComments({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -4412,7 +4412,7 @@ var InstagramNamespace = class {
|
|
|
4412
4412
|
*
|
|
4413
4413
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
4414
4414
|
*
|
|
4415
|
-
* Price: $0.
|
|
4415
|
+
* Price: $0.00054 per request.
|
|
4416
4416
|
*
|
|
4417
4417
|
* @example
|
|
4418
4418
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -4480,7 +4480,7 @@ var InstagramNamespace = class {
|
|
|
4480
4480
|
*
|
|
4481
4481
|
* Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
|
|
4482
4482
|
*
|
|
4483
|
-
* Price: $0.
|
|
4483
|
+
* Price: $0.00126 per request.
|
|
4484
4484
|
*
|
|
4485
4485
|
* @example
|
|
4486
4486
|
* const res = await client.instagram.search({ query: "nasa" });
|
|
@@ -4752,7 +4752,7 @@ var InstagramNamespace = class {
|
|
|
4752
4752
|
*
|
|
4753
4753
|
* List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
|
|
4754
4754
|
*
|
|
4755
|
-
* Price: $0.
|
|
4755
|
+
* Price: $0.00068 per request.
|
|
4756
4756
|
*
|
|
4757
4757
|
* @example
|
|
4758
4758
|
* const res = await client.instagram.userPosts({ handle: "nasa" });
|
|
@@ -4781,7 +4781,7 @@ var InstagramNamespace = class {
|
|
|
4781
4781
|
*
|
|
4782
4782
|
* List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
|
|
4783
4783
|
*
|
|
4784
|
-
* Price: $0.
|
|
4784
|
+
* Price: $0.00068 per request.
|
|
4785
4785
|
*
|
|
4786
4786
|
* @example
|
|
4787
4787
|
* const res = await client.instagram.userReels({ handle: "nasa" });
|
|
@@ -5579,7 +5579,7 @@ var MapsNamespace = class {
|
|
|
5579
5579
|
*
|
|
5580
5580
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
5581
5581
|
*
|
|
5582
|
-
* Price: $0.
|
|
5582
|
+
* Price: $0.00149 per request.
|
|
5583
5583
|
*
|
|
5584
5584
|
* @example
|
|
5585
5585
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -6362,7 +6362,7 @@ var RedditNamespace = class {
|
|
|
6362
6362
|
*
|
|
6363
6363
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
6364
6364
|
*
|
|
6365
|
-
* Price: $0.
|
|
6365
|
+
* Price: $0.00048 per request.
|
|
6366
6366
|
*
|
|
6367
6367
|
* @example
|
|
6368
6368
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -6472,7 +6472,7 @@ var RedditNamespace = class {
|
|
|
6472
6472
|
*
|
|
6473
6473
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
6474
6474
|
*
|
|
6475
|
-
* Price: $0.
|
|
6475
|
+
* Price: $0.00036 per request.
|
|
6476
6476
|
*
|
|
6477
6477
|
* @example
|
|
6478
6478
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming" });
|
|
@@ -8838,7 +8838,7 @@ var TwitterNamespace = class {
|
|
|
8838
8838
|
*
|
|
8839
8839
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
8840
8840
|
*
|
|
8841
|
-
* Price: $0.
|
|
8841
|
+
* Price: $0.0002 per request.
|
|
8842
8842
|
*
|
|
8843
8843
|
* @example
|
|
8844
8844
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
|
@@ -8851,7 +8851,7 @@ var TwitterNamespace = class {
|
|
|
8851
8851
|
*
|
|
8852
8852
|
* 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.
|
|
8853
8853
|
*
|
|
8854
|
-
* Price: $0.
|
|
8854
|
+
* Price: $0.00044 per request.
|
|
8855
8855
|
*
|
|
8856
8856
|
* @example
|
|
8857
8857
|
* const res = await client.twitter.replies({ url: "https://x.com/jack/status/20" });
|