@getanyapi/sdk 0.19.0 → 0.20.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 +158 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1031 -21
- package/dist/index.d.ts +1031 -21
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -32,6 +32,7 @@ __export(index_exports, {
|
|
|
32
32
|
BadRequestError: () => BadRequestError,
|
|
33
33
|
BlueskyNamespace: () => BlueskyNamespace,
|
|
34
34
|
BookingNamespace: () => BookingNamespace,
|
|
35
|
+
ChatgptNamespace: () => ChatgptNamespace,
|
|
35
36
|
CoinmarketcapNamespace: () => CoinmarketcapNamespace,
|
|
36
37
|
CompanyEnrichmentNamespace: () => CompanyEnrichmentNamespace,
|
|
37
38
|
CompanySearchNamespace: () => CompanySearchNamespace,
|
|
@@ -45,6 +46,7 @@ __export(index_exports, {
|
|
|
45
46
|
EmailVerificationNamespace: () => EmailVerificationNamespace,
|
|
46
47
|
FacebookNamespace: () => FacebookNamespace,
|
|
47
48
|
FiverrNamespace: () => FiverrNamespace,
|
|
49
|
+
GeminiNamespace: () => GeminiNamespace,
|
|
48
50
|
GithubNamespace: () => GithubNamespace,
|
|
49
51
|
GlassdoorNamespace: () => GlassdoorNamespace,
|
|
50
52
|
GoogleAdsNamespace: () => GoogleAdsNamespace,
|
|
@@ -61,6 +63,7 @@ __export(index_exports, {
|
|
|
61
63
|
NotFoundError: () => NotFoundError,
|
|
62
64
|
PandaexpressNamespace: () => PandaexpressNamespace,
|
|
63
65
|
PeopleSearchNamespace: () => PeopleSearchNamespace,
|
|
66
|
+
PerplexityNamespace: () => PerplexityNamespace,
|
|
64
67
|
PersonEnrichmentNamespace: () => PersonEnrichmentNamespace,
|
|
65
68
|
PersonNamespace: () => PersonNamespace,
|
|
66
69
|
PinterestNamespace: () => PinterestNamespace,
|
|
@@ -1442,6 +1445,40 @@ var BookingNamespace = class {
|
|
|
1442
1445
|
}
|
|
1443
1446
|
};
|
|
1444
1447
|
|
|
1448
|
+
// src/generated/platforms/chatgpt.ts
|
|
1449
|
+
var ChatgptNamespace = class {
|
|
1450
|
+
constructor(_core) {
|
|
1451
|
+
this._core = _core;
|
|
1452
|
+
}
|
|
1453
|
+
_core;
|
|
1454
|
+
/**
|
|
1455
|
+
* ChatGPT Brand Visibility
|
|
1456
|
+
*
|
|
1457
|
+
* Analyze how ChatGPT mentions and cites a brand relative to its competitors.
|
|
1458
|
+
*
|
|
1459
|
+
* Price: $0.0045 per request.
|
|
1460
|
+
*
|
|
1461
|
+
* @example
|
|
1462
|
+
* const res = await client.chatgpt.brandVisibility({ brand: "OpenAI", prompt: "What is OpenAI and who are its main competitors?", competitors: ["Anthropic", "Google DeepMind", "Meta"], country: "US", domain: "openai.com" });
|
|
1463
|
+
*/
|
|
1464
|
+
brandVisibility(input, options) {
|
|
1465
|
+
return this._core.run("chatgpt.brand_visibility", input, options);
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* ChatGPT Search
|
|
1469
|
+
*
|
|
1470
|
+
* Ask ChatGPT a web-grounded question and receive an answer with source citations.
|
|
1471
|
+
*
|
|
1472
|
+
* Price: $0.0036 per request.
|
|
1473
|
+
*
|
|
1474
|
+
* @example
|
|
1475
|
+
* const res = await client.chatgpt.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
1476
|
+
*/
|
|
1477
|
+
search(input, options) {
|
|
1478
|
+
return this._core.run("chatgpt.search", input, options);
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1445
1482
|
// src/generated/platforms/coinmarketcap.ts
|
|
1446
1483
|
var CoinmarketcapNamespace = class {
|
|
1447
1484
|
constructor(_core) {
|
|
@@ -2307,6 +2344,40 @@ var FiverrNamespace = class {
|
|
|
2307
2344
|
}
|
|
2308
2345
|
};
|
|
2309
2346
|
|
|
2347
|
+
// src/generated/platforms/gemini.ts
|
|
2348
|
+
var GeminiNamespace = class {
|
|
2349
|
+
constructor(_core) {
|
|
2350
|
+
this._core = _core;
|
|
2351
|
+
}
|
|
2352
|
+
_core;
|
|
2353
|
+
/**
|
|
2354
|
+
* Gemini Brand Visibility
|
|
2355
|
+
*
|
|
2356
|
+
* Analyze how Gemini mentions and cites a brand relative to its competitors.
|
|
2357
|
+
*
|
|
2358
|
+
* Price: $0.0045 per request.
|
|
2359
|
+
*
|
|
2360
|
+
* @example
|
|
2361
|
+
* const res = await client.gemini.brandVisibility({ brand: "OpenAI", prompt: "What is OpenAI and who are its main competitors?", competitors: ["Anthropic", "Google DeepMind", "Meta"], country: "US", domain: "openai.com" });
|
|
2362
|
+
*/
|
|
2363
|
+
brandVisibility(input, options) {
|
|
2364
|
+
return this._core.run("gemini.brand_visibility", input, options);
|
|
2365
|
+
}
|
|
2366
|
+
/**
|
|
2367
|
+
* Gemini Search
|
|
2368
|
+
*
|
|
2369
|
+
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
2370
|
+
*
|
|
2371
|
+
* Price: $0.0036 per request.
|
|
2372
|
+
*
|
|
2373
|
+
* @example
|
|
2374
|
+
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
2375
|
+
*/
|
|
2376
|
+
search(input, options) {
|
|
2377
|
+
return this._core.run("gemini.search", input, options);
|
|
2378
|
+
}
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2310
2381
|
// src/generated/platforms/github.ts
|
|
2311
2382
|
var GithubNamespace = class {
|
|
2312
2383
|
constructor(_core) {
|
|
@@ -2552,6 +2623,32 @@ var GoogleNamespace = class {
|
|
|
2552
2623
|
this._core = _core;
|
|
2553
2624
|
}
|
|
2554
2625
|
_core;
|
|
2626
|
+
/**
|
|
2627
|
+
* Google AI Mode
|
|
2628
|
+
*
|
|
2629
|
+
* Ask Google AI Mode a prompt and receive a cited answer.
|
|
2630
|
+
*
|
|
2631
|
+
* Price: $0.00126 per request.
|
|
2632
|
+
*
|
|
2633
|
+
* @example
|
|
2634
|
+
* const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
2635
|
+
*/
|
|
2636
|
+
aiMode(input, options) {
|
|
2637
|
+
return this._core.run("google.ai_mode", input, options);
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
* Google AI Overview
|
|
2641
|
+
*
|
|
2642
|
+
* Ask Google Search a prompt and receive its AI Overview with citations.
|
|
2643
|
+
*
|
|
2644
|
+
* Price: $0.00126 per request plus $0.00018 per result (maximum $0.00144).
|
|
2645
|
+
*
|
|
2646
|
+
* @example
|
|
2647
|
+
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
2648
|
+
*/
|
|
2649
|
+
aiOverview(input, options) {
|
|
2650
|
+
return this._core.run("google.ai_overview", input, options);
|
|
2651
|
+
}
|
|
2555
2652
|
/**
|
|
2556
2653
|
* Google Autocomplete
|
|
2557
2654
|
*
|
|
@@ -3810,6 +3907,40 @@ var PeopleSearchNamespace = class {
|
|
|
3810
3907
|
}
|
|
3811
3908
|
};
|
|
3812
3909
|
|
|
3910
|
+
// src/generated/platforms/perplexity.ts
|
|
3911
|
+
var PerplexityNamespace = class {
|
|
3912
|
+
constructor(_core) {
|
|
3913
|
+
this._core = _core;
|
|
3914
|
+
}
|
|
3915
|
+
_core;
|
|
3916
|
+
/**
|
|
3917
|
+
* Perplexity Brand Visibility
|
|
3918
|
+
*
|
|
3919
|
+
* Analyze how Perplexity mentions and cites a brand relative to its competitors.
|
|
3920
|
+
*
|
|
3921
|
+
* Price: $0.0045 per request.
|
|
3922
|
+
*
|
|
3923
|
+
* @example
|
|
3924
|
+
* const res = await client.perplexity.brandVisibility({ brand: "OpenAI", prompt: "What is OpenAI and who are its main competitors?", competitors: ["Anthropic", "Google DeepMind", "Meta"], country: "US", domain: "openai.com" });
|
|
3925
|
+
*/
|
|
3926
|
+
brandVisibility(input, options) {
|
|
3927
|
+
return this._core.run("perplexity.brand_visibility", input, options);
|
|
3928
|
+
}
|
|
3929
|
+
/**
|
|
3930
|
+
* Perplexity Search
|
|
3931
|
+
*
|
|
3932
|
+
* Ask Perplexity a web-grounded question and receive an answer with source citations.
|
|
3933
|
+
*
|
|
3934
|
+
* Price: $0.0036 per request.
|
|
3935
|
+
*
|
|
3936
|
+
* @example
|
|
3937
|
+
* const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
3938
|
+
*/
|
|
3939
|
+
search(input, options) {
|
|
3940
|
+
return this._core.run("perplexity.search", input, options);
|
|
3941
|
+
}
|
|
3942
|
+
};
|
|
3943
|
+
|
|
3813
3944
|
// src/generated/platforms/person.ts
|
|
3814
3945
|
var PersonNamespace = class {
|
|
3815
3946
|
constructor(_core) {
|
|
@@ -6516,6 +6647,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6516
6647
|
this._core
|
|
6517
6648
|
);
|
|
6518
6649
|
}
|
|
6650
|
+
/**
|
|
6651
|
+
* Typed methods for the chatgpt platform.
|
|
6652
|
+
*/
|
|
6653
|
+
get chatgpt() {
|
|
6654
|
+
return this._namespaces["chatgpt"] ??= new ChatgptNamespace(
|
|
6655
|
+
this._core
|
|
6656
|
+
);
|
|
6657
|
+
}
|
|
6519
6658
|
/**
|
|
6520
6659
|
* Typed methods for the coinmarketcap platform.
|
|
6521
6660
|
*/
|
|
@@ -6608,6 +6747,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6608
6747
|
this._core
|
|
6609
6748
|
);
|
|
6610
6749
|
}
|
|
6750
|
+
/**
|
|
6751
|
+
* Typed methods for the gemini platform.
|
|
6752
|
+
*/
|
|
6753
|
+
get gemini() {
|
|
6754
|
+
return this._namespaces["gemini"] ??= new GeminiNamespace(
|
|
6755
|
+
this._core
|
|
6756
|
+
);
|
|
6757
|
+
}
|
|
6611
6758
|
/**
|
|
6612
6759
|
* Typed methods for the github platform.
|
|
6613
6760
|
*/
|
|
@@ -6720,6 +6867,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6720
6867
|
this._core
|
|
6721
6868
|
);
|
|
6722
6869
|
}
|
|
6870
|
+
/**
|
|
6871
|
+
* Typed methods for the perplexity platform.
|
|
6872
|
+
*/
|
|
6873
|
+
get perplexity() {
|
|
6874
|
+
return this._namespaces["perplexity"] ??= new PerplexityNamespace(
|
|
6875
|
+
this._core
|
|
6876
|
+
);
|
|
6877
|
+
}
|
|
6723
6878
|
/**
|
|
6724
6879
|
* Typed methods for the person platform.
|
|
6725
6880
|
*/
|
|
@@ -6989,6 +7144,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6989
7144
|
BadRequestError,
|
|
6990
7145
|
BlueskyNamespace,
|
|
6991
7146
|
BookingNamespace,
|
|
7147
|
+
ChatgptNamespace,
|
|
6992
7148
|
CoinmarketcapNamespace,
|
|
6993
7149
|
CompanyEnrichmentNamespace,
|
|
6994
7150
|
CompanySearchNamespace,
|
|
@@ -7002,6 +7158,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
7002
7158
|
EmailVerificationNamespace,
|
|
7003
7159
|
FacebookNamespace,
|
|
7004
7160
|
FiverrNamespace,
|
|
7161
|
+
GeminiNamespace,
|
|
7005
7162
|
GithubNamespace,
|
|
7006
7163
|
GlassdoorNamespace,
|
|
7007
7164
|
GoogleAdsNamespace,
|
|
@@ -7018,6 +7175,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
7018
7175
|
NotFoundError,
|
|
7019
7176
|
PandaexpressNamespace,
|
|
7020
7177
|
PeopleSearchNamespace,
|
|
7178
|
+
PerplexityNamespace,
|
|
7021
7179
|
PersonEnrichmentNamespace,
|
|
7022
7180
|
PersonNamespace,
|
|
7023
7181
|
PinterestNamespace,
|