@getanyapi/sdk 0.19.0 → 0.21.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 +171 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1282 -57
- package/dist/index.d.ts +1282 -57
- package/dist/index.js +168 -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
|
*
|
|
@@ -3600,6 +3697,19 @@ var LinkedinNamespace = class {
|
|
|
3600
3697
|
searchPosts(input, options) {
|
|
3601
3698
|
return this._core.run("linkedin.search_posts", input, options);
|
|
3602
3699
|
}
|
|
3700
|
+
/**
|
|
3701
|
+
* LinkedIn Post Search (full)
|
|
3702
|
+
*
|
|
3703
|
+
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
3704
|
+
*
|
|
3705
|
+
* Price: $0 per request plus $0.00137 per result (maximum $0.137).
|
|
3706
|
+
*
|
|
3707
|
+
* @example
|
|
3708
|
+
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
|
3709
|
+
*/
|
|
3710
|
+
searchPostsFull(input, options) {
|
|
3711
|
+
return this._core.run("linkedin.search_posts_full", input, options);
|
|
3712
|
+
}
|
|
3603
3713
|
/**
|
|
3604
3714
|
* LinkedIn Profile Search
|
|
3605
3715
|
*
|
|
@@ -3810,6 +3920,40 @@ var PeopleSearchNamespace = class {
|
|
|
3810
3920
|
}
|
|
3811
3921
|
};
|
|
3812
3922
|
|
|
3923
|
+
// src/generated/platforms/perplexity.ts
|
|
3924
|
+
var PerplexityNamespace = class {
|
|
3925
|
+
constructor(_core) {
|
|
3926
|
+
this._core = _core;
|
|
3927
|
+
}
|
|
3928
|
+
_core;
|
|
3929
|
+
/**
|
|
3930
|
+
* Perplexity Brand Visibility
|
|
3931
|
+
*
|
|
3932
|
+
* Analyze how Perplexity mentions and cites a brand relative to its competitors.
|
|
3933
|
+
*
|
|
3934
|
+
* Price: $0.0045 per request.
|
|
3935
|
+
*
|
|
3936
|
+
* @example
|
|
3937
|
+
* 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" });
|
|
3938
|
+
*/
|
|
3939
|
+
brandVisibility(input, options) {
|
|
3940
|
+
return this._core.run("perplexity.brand_visibility", input, options);
|
|
3941
|
+
}
|
|
3942
|
+
/**
|
|
3943
|
+
* Perplexity Search
|
|
3944
|
+
*
|
|
3945
|
+
* Ask Perplexity a web-grounded question and receive an answer with source citations.
|
|
3946
|
+
*
|
|
3947
|
+
* Price: $0.0036 per request.
|
|
3948
|
+
*
|
|
3949
|
+
* @example
|
|
3950
|
+
* const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
3951
|
+
*/
|
|
3952
|
+
search(input, options) {
|
|
3953
|
+
return this._core.run("perplexity.search", input, options);
|
|
3954
|
+
}
|
|
3955
|
+
};
|
|
3956
|
+
|
|
3813
3957
|
// src/generated/platforms/person.ts
|
|
3814
3958
|
var PersonNamespace = class {
|
|
3815
3959
|
constructor(_core) {
|
|
@@ -6516,6 +6660,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6516
6660
|
this._core
|
|
6517
6661
|
);
|
|
6518
6662
|
}
|
|
6663
|
+
/**
|
|
6664
|
+
* Typed methods for the chatgpt platform.
|
|
6665
|
+
*/
|
|
6666
|
+
get chatgpt() {
|
|
6667
|
+
return this._namespaces["chatgpt"] ??= new ChatgptNamespace(
|
|
6668
|
+
this._core
|
|
6669
|
+
);
|
|
6670
|
+
}
|
|
6519
6671
|
/**
|
|
6520
6672
|
* Typed methods for the coinmarketcap platform.
|
|
6521
6673
|
*/
|
|
@@ -6608,6 +6760,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6608
6760
|
this._core
|
|
6609
6761
|
);
|
|
6610
6762
|
}
|
|
6763
|
+
/**
|
|
6764
|
+
* Typed methods for the gemini platform.
|
|
6765
|
+
*/
|
|
6766
|
+
get gemini() {
|
|
6767
|
+
return this._namespaces["gemini"] ??= new GeminiNamespace(
|
|
6768
|
+
this._core
|
|
6769
|
+
);
|
|
6770
|
+
}
|
|
6611
6771
|
/**
|
|
6612
6772
|
* Typed methods for the github platform.
|
|
6613
6773
|
*/
|
|
@@ -6720,6 +6880,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6720
6880
|
this._core
|
|
6721
6881
|
);
|
|
6722
6882
|
}
|
|
6883
|
+
/**
|
|
6884
|
+
* Typed methods for the perplexity platform.
|
|
6885
|
+
*/
|
|
6886
|
+
get perplexity() {
|
|
6887
|
+
return this._namespaces["perplexity"] ??= new PerplexityNamespace(
|
|
6888
|
+
this._core
|
|
6889
|
+
);
|
|
6890
|
+
}
|
|
6723
6891
|
/**
|
|
6724
6892
|
* Typed methods for the person platform.
|
|
6725
6893
|
*/
|
|
@@ -6989,6 +7157,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
6989
7157
|
BadRequestError,
|
|
6990
7158
|
BlueskyNamespace,
|
|
6991
7159
|
BookingNamespace,
|
|
7160
|
+
ChatgptNamespace,
|
|
6992
7161
|
CoinmarketcapNamespace,
|
|
6993
7162
|
CompanyEnrichmentNamespace,
|
|
6994
7163
|
CompanySearchNamespace,
|
|
@@ -7002,6 +7171,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
7002
7171
|
EmailVerificationNamespace,
|
|
7003
7172
|
FacebookNamespace,
|
|
7004
7173
|
FiverrNamespace,
|
|
7174
|
+
GeminiNamespace,
|
|
7005
7175
|
GithubNamespace,
|
|
7006
7176
|
GlassdoorNamespace,
|
|
7007
7177
|
GoogleAdsNamespace,
|
|
@@ -7018,6 +7188,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
7018
7188
|
NotFoundError,
|
|
7019
7189
|
PandaexpressNamespace,
|
|
7020
7190
|
PeopleSearchNamespace,
|
|
7191
|
+
PerplexityNamespace,
|
|
7021
7192
|
PersonEnrichmentNamespace,
|
|
7022
7193
|
PersonNamespace,
|
|
7023
7194
|
PinterestNamespace,
|