@getanyapi/sdk 0.90.11 → 0.90.13
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 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -59,8 +59,9 @@ interface RequestSnapshot<T = unknown> {
|
|
|
59
59
|
* - `suspended`: the platform has suspended the account.
|
|
60
60
|
* - `unavailable`: the platform did not show this to the source: it may not exist, or it may
|
|
61
61
|
* be visible only to signed-in users.
|
|
62
|
+
* - `too_long`: the video is too long to transcribe.
|
|
62
63
|
*/
|
|
63
|
-
declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable"];
|
|
64
|
+
declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable", "too_long"];
|
|
64
65
|
type NotFoundReason = (typeof NOT_FOUND_REASONS)[number] | (string & {});
|
|
65
66
|
/**
|
|
66
67
|
* Discriminated union on `found`. When found is false, data is null and `reason` says why
|
|
@@ -17533,7 +17534,7 @@ declare class FacebookNamespace {
|
|
|
17533
17534
|
*
|
|
17534
17535
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
17535
17536
|
*
|
|
17536
|
-
* Price: $0.
|
|
17537
|
+
* Price: $0.0011 per request.
|
|
17537
17538
|
*
|
|
17538
17539
|
* @example
|
|
17539
17540
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -17569,7 +17570,7 @@ declare class FacebookNamespace {
|
|
|
17569
17570
|
*
|
|
17570
17571
|
* List the Meta Ad Library ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination.
|
|
17571
17572
|
*
|
|
17572
|
-
* Price: $0.
|
|
17573
|
+
* Price: $0.0011 per request.
|
|
17573
17574
|
*
|
|
17574
17575
|
* @example
|
|
17575
17576
|
* const res = await client.facebook.companyAds({ pageId: "15087023444", sortBy: "recent" });
|
|
@@ -20983,7 +20984,7 @@ declare class GoogleAdsNamespace {
|
|
|
20983
20984
|
*
|
|
20984
20985
|
* 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.
|
|
20985
20986
|
*
|
|
20986
|
-
* Price: $0.
|
|
20987
|
+
* Price: $0.0011 per request.
|
|
20987
20988
|
*
|
|
20988
20989
|
* @example
|
|
20989
20990
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -52596,7 +52597,7 @@ declare class ThreadsNamespace {
|
|
|
52596
52597
|
*
|
|
52597
52598
|
* Fetch a Threads user's public profile (bio, follower count, verification, profile picture) by username.
|
|
52598
52599
|
*
|
|
52599
|
-
* Price: $0.
|
|
52600
|
+
* Price: $0.0011 per request.
|
|
52600
52601
|
*
|
|
52601
52602
|
* @example
|
|
52602
52603
|
* const res = await client.threads.profile({ username: "zuck" });
|
|
@@ -56286,7 +56287,7 @@ declare class TiktokNamespace {
|
|
|
56286
56287
|
*
|
|
56287
56288
|
* Fetch the caption track TikTok itself published for a video, as TikTok wrote it. It is the cheapest way to get the words, and it is only as good as TikTok's own transcription: it mishears names and uncommon words, and many videos - especially non-English ones - have no caption track at all, which comes back as not found. When you need the words to be right, or there is no track to read, tiktok.video_transcript_full transcribes the audio with AnyAPI's own speech-to-text instead.
|
|
56288
56289
|
*
|
|
56289
|
-
* Price: $0.
|
|
56290
|
+
* Price: $0.0011 per request.
|
|
56290
56291
|
*
|
|
56291
56292
|
* @example
|
|
56292
56293
|
* const res = await client.tiktok.videoTranscript({ url: "https://www.tiktok.com/@washingtonpost/video/7609177768793787679" });
|
|
@@ -59949,7 +59950,7 @@ declare class TwitterNamespace {
|
|
|
59949
59950
|
*
|
|
59950
59951
|
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
59951
59952
|
*
|
|
59952
|
-
* Price: $0.
|
|
59953
|
+
* Price: $0.0007 per request.
|
|
59953
59954
|
*
|
|
59954
59955
|
* @example
|
|
59955
59956
|
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
package/dist/index.d.ts
CHANGED
|
@@ -59,8 +59,9 @@ interface RequestSnapshot<T = unknown> {
|
|
|
59
59
|
* - `suspended`: the platform has suspended the account.
|
|
60
60
|
* - `unavailable`: the platform did not show this to the source: it may not exist, or it may
|
|
61
61
|
* be visible only to signed-in users.
|
|
62
|
+
* - `too_long`: the video is too long to transcribe.
|
|
62
63
|
*/
|
|
63
|
-
declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable"];
|
|
64
|
+
declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable", "too_long"];
|
|
64
65
|
type NotFoundReason = (typeof NOT_FOUND_REASONS)[number] | (string & {});
|
|
65
66
|
/**
|
|
66
67
|
* Discriminated union on `found`. When found is false, data is null and `reason` says why
|
|
@@ -17533,7 +17534,7 @@ declare class FacebookNamespace {
|
|
|
17533
17534
|
*
|
|
17534
17535
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
17535
17536
|
*
|
|
17536
|
-
* Price: $0.
|
|
17537
|
+
* Price: $0.0011 per request.
|
|
17537
17538
|
*
|
|
17538
17539
|
* @example
|
|
17539
17540
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -17569,7 +17570,7 @@ declare class FacebookNamespace {
|
|
|
17569
17570
|
*
|
|
17570
17571
|
* List the Meta Ad Library ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination.
|
|
17571
17572
|
*
|
|
17572
|
-
* Price: $0.
|
|
17573
|
+
* Price: $0.0011 per request.
|
|
17573
17574
|
*
|
|
17574
17575
|
* @example
|
|
17575
17576
|
* const res = await client.facebook.companyAds({ pageId: "15087023444", sortBy: "recent" });
|
|
@@ -20983,7 +20984,7 @@ declare class GoogleAdsNamespace {
|
|
|
20983
20984
|
*
|
|
20984
20985
|
* 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.
|
|
20985
20986
|
*
|
|
20986
|
-
* Price: $0.
|
|
20987
|
+
* Price: $0.0011 per request.
|
|
20987
20988
|
*
|
|
20988
20989
|
* @example
|
|
20989
20990
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -52596,7 +52597,7 @@ declare class ThreadsNamespace {
|
|
|
52596
52597
|
*
|
|
52597
52598
|
* Fetch a Threads user's public profile (bio, follower count, verification, profile picture) by username.
|
|
52598
52599
|
*
|
|
52599
|
-
* Price: $0.
|
|
52600
|
+
* Price: $0.0011 per request.
|
|
52600
52601
|
*
|
|
52601
52602
|
* @example
|
|
52602
52603
|
* const res = await client.threads.profile({ username: "zuck" });
|
|
@@ -56286,7 +56287,7 @@ declare class TiktokNamespace {
|
|
|
56286
56287
|
*
|
|
56287
56288
|
* Fetch the caption track TikTok itself published for a video, as TikTok wrote it. It is the cheapest way to get the words, and it is only as good as TikTok's own transcription: it mishears names and uncommon words, and many videos - especially non-English ones - have no caption track at all, which comes back as not found. When you need the words to be right, or there is no track to read, tiktok.video_transcript_full transcribes the audio with AnyAPI's own speech-to-text instead.
|
|
56288
56289
|
*
|
|
56289
|
-
* Price: $0.
|
|
56290
|
+
* Price: $0.0011 per request.
|
|
56290
56291
|
*
|
|
56291
56292
|
* @example
|
|
56292
56293
|
* const res = await client.tiktok.videoTranscript({ url: "https://www.tiktok.com/@washingtonpost/video/7609177768793787679" });
|
|
@@ -59949,7 +59950,7 @@ declare class TwitterNamespace {
|
|
|
59949
59950
|
*
|
|
59950
59951
|
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
59951
59952
|
*
|
|
59952
|
-
* Price: $0.
|
|
59953
|
+
* Price: $0.0007 per request.
|
|
59953
59954
|
*
|
|
59954
59955
|
* @example
|
|
59955
59956
|
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
package/dist/index.js
CHANGED
|
@@ -931,7 +931,7 @@ function isRequestSnapshot(value) {
|
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
// src/core/types.ts
|
|
934
|
-
var NOT_FOUND_REASONS = ["not_found", "suspended", "unavailable"];
|
|
934
|
+
var NOT_FOUND_REASONS = ["not_found", "suspended", "unavailable", "too_long"];
|
|
935
935
|
var OUTPUT_NOT_RETAINED = "the run output was not retained: this response is an idempotent replay whose stored payload has expired or was too large to store, so only the run metadata came back. Re-run the request without the idempotency key (or with a fresh one) to fetch the data again.";
|
|
936
936
|
function unwrap(result) {
|
|
937
937
|
const output = result.output;
|
|
@@ -2224,7 +2224,7 @@ var FacebookNamespace = class {
|
|
|
2224
2224
|
*
|
|
2225
2225
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
2226
2226
|
*
|
|
2227
|
-
* Price: $0.
|
|
2227
|
+
* Price: $0.0011 per request.
|
|
2228
2228
|
*
|
|
2229
2229
|
* @example
|
|
2230
2230
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -2282,7 +2282,7 @@ var FacebookNamespace = class {
|
|
|
2282
2282
|
*
|
|
2283
2283
|
* List the Meta Ad Library ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination.
|
|
2284
2284
|
*
|
|
2285
|
-
* Price: $0.
|
|
2285
|
+
* Price: $0.0011 per request.
|
|
2286
2286
|
*
|
|
2287
2287
|
* @example
|
|
2288
2288
|
* const res = await client.facebook.companyAds({ pageId: "15087023444", sortBy: "recent" });
|
|
@@ -3248,7 +3248,7 @@ var GoogleAdsNamespace = class {
|
|
|
3248
3248
|
*
|
|
3249
3249
|
* 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.
|
|
3250
3250
|
*
|
|
3251
|
-
* Price: $0.
|
|
3251
|
+
* Price: $0.0011 per request.
|
|
3252
3252
|
*
|
|
3253
3253
|
* @example
|
|
3254
3254
|
* const res = await client.googleAds.companyAds({ domain: "lululemon.com" });
|
|
@@ -6367,7 +6367,7 @@ var ThreadsNamespace = class {
|
|
|
6367
6367
|
*
|
|
6368
6368
|
* Fetch a Threads user's public profile (bio, follower count, verification, profile picture) by username.
|
|
6369
6369
|
*
|
|
6370
|
-
* Price: $0.
|
|
6370
|
+
* Price: $0.0011 per request.
|
|
6371
6371
|
*
|
|
6372
6372
|
* @example
|
|
6373
6373
|
* const res = await client.threads.profile({ username: "zuck" });
|
|
@@ -7102,7 +7102,7 @@ var TiktokNamespace = class {
|
|
|
7102
7102
|
*
|
|
7103
7103
|
* Fetch the caption track TikTok itself published for a video, as TikTok wrote it. It is the cheapest way to get the words, and it is only as good as TikTok's own transcription: it mishears names and uncommon words, and many videos - especially non-English ones - have no caption track at all, which comes back as not found. When you need the words to be right, or there is no track to read, tiktok.video_transcript_full transcribes the audio with AnyAPI's own speech-to-text instead.
|
|
7104
7104
|
*
|
|
7105
|
-
* Price: $0.
|
|
7105
|
+
* Price: $0.0011 per request.
|
|
7106
7106
|
*
|
|
7107
7107
|
* @example
|
|
7108
7108
|
* const res = await client.tiktok.videoTranscript({ url: "https://www.tiktok.com/@washingtonpost/video/7609177768793787679" });
|
|
@@ -7595,7 +7595,7 @@ var TwitterNamespace = class {
|
|
|
7595
7595
|
*
|
|
7596
7596
|
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
7597
7597
|
*
|
|
7598
|
-
* Price: $0.
|
|
7598
|
+
* Price: $0.0007 per request.
|
|
7599
7599
|
*
|
|
7600
7600
|
* @example
|
|
7601
7601
|
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|