@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.js CHANGED
@@ -1336,6 +1336,40 @@ var BookingNamespace = class {
1336
1336
  }
1337
1337
  };
1338
1338
 
1339
+ // src/generated/platforms/chatgpt.ts
1340
+ var ChatgptNamespace = class {
1341
+ constructor(_core) {
1342
+ this._core = _core;
1343
+ }
1344
+ _core;
1345
+ /**
1346
+ * ChatGPT Brand Visibility
1347
+ *
1348
+ * Analyze how ChatGPT mentions and cites a brand relative to its competitors.
1349
+ *
1350
+ * Price: $0.0045 per request.
1351
+ *
1352
+ * @example
1353
+ * 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" });
1354
+ */
1355
+ brandVisibility(input, options) {
1356
+ return this._core.run("chatgpt.brand_visibility", input, options);
1357
+ }
1358
+ /**
1359
+ * ChatGPT Search
1360
+ *
1361
+ * Ask ChatGPT a web-grounded question and receive an answer with source citations.
1362
+ *
1363
+ * Price: $0.0036 per request.
1364
+ *
1365
+ * @example
1366
+ * const res = await client.chatgpt.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
1367
+ */
1368
+ search(input, options) {
1369
+ return this._core.run("chatgpt.search", input, options);
1370
+ }
1371
+ };
1372
+
1339
1373
  // src/generated/platforms/coinmarketcap.ts
1340
1374
  var CoinmarketcapNamespace = class {
1341
1375
  constructor(_core) {
@@ -2201,6 +2235,40 @@ var FiverrNamespace = class {
2201
2235
  }
2202
2236
  };
2203
2237
 
2238
+ // src/generated/platforms/gemini.ts
2239
+ var GeminiNamespace = class {
2240
+ constructor(_core) {
2241
+ this._core = _core;
2242
+ }
2243
+ _core;
2244
+ /**
2245
+ * Gemini Brand Visibility
2246
+ *
2247
+ * Analyze how Gemini mentions and cites a brand relative to its competitors.
2248
+ *
2249
+ * Price: $0.0045 per request.
2250
+ *
2251
+ * @example
2252
+ * 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" });
2253
+ */
2254
+ brandVisibility(input, options) {
2255
+ return this._core.run("gemini.brand_visibility", input, options);
2256
+ }
2257
+ /**
2258
+ * Gemini Search
2259
+ *
2260
+ * Ask Gemini a web-grounded question and receive an answer with source citations.
2261
+ *
2262
+ * Price: $0.0036 per request.
2263
+ *
2264
+ * @example
2265
+ * const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
2266
+ */
2267
+ search(input, options) {
2268
+ return this._core.run("gemini.search", input, options);
2269
+ }
2270
+ };
2271
+
2204
2272
  // src/generated/platforms/github.ts
2205
2273
  var GithubNamespace = class {
2206
2274
  constructor(_core) {
@@ -2446,6 +2514,32 @@ var GoogleNamespace = class {
2446
2514
  this._core = _core;
2447
2515
  }
2448
2516
  _core;
2517
+ /**
2518
+ * Google AI Mode
2519
+ *
2520
+ * Ask Google AI Mode a prompt and receive a cited answer.
2521
+ *
2522
+ * Price: $0.00126 per request.
2523
+ *
2524
+ * @example
2525
+ * const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
2526
+ */
2527
+ aiMode(input, options) {
2528
+ return this._core.run("google.ai_mode", input, options);
2529
+ }
2530
+ /**
2531
+ * Google AI Overview
2532
+ *
2533
+ * Ask Google Search a prompt and receive its AI Overview with citations.
2534
+ *
2535
+ * Price: $0.00126 per request plus $0.00018 per result (maximum $0.00144).
2536
+ *
2537
+ * @example
2538
+ * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
2539
+ */
2540
+ aiOverview(input, options) {
2541
+ return this._core.run("google.ai_overview", input, options);
2542
+ }
2449
2543
  /**
2450
2544
  * Google Autocomplete
2451
2545
  *
@@ -3494,6 +3588,19 @@ var LinkedinNamespace = class {
3494
3588
  searchPosts(input, options) {
3495
3589
  return this._core.run("linkedin.search_posts", input, options);
3496
3590
  }
3591
+ /**
3592
+ * LinkedIn Post Search (full)
3593
+ *
3594
+ * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
3595
+ *
3596
+ * Price: $0 per request plus $0.00137 per result (maximum $0.137).
3597
+ *
3598
+ * @example
3599
+ * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
3600
+ */
3601
+ searchPostsFull(input, options) {
3602
+ return this._core.run("linkedin.search_posts_full", input, options);
3603
+ }
3497
3604
  /**
3498
3605
  * LinkedIn Profile Search
3499
3606
  *
@@ -3704,6 +3811,40 @@ var PeopleSearchNamespace = class {
3704
3811
  }
3705
3812
  };
3706
3813
 
3814
+ // src/generated/platforms/perplexity.ts
3815
+ var PerplexityNamespace = class {
3816
+ constructor(_core) {
3817
+ this._core = _core;
3818
+ }
3819
+ _core;
3820
+ /**
3821
+ * Perplexity Brand Visibility
3822
+ *
3823
+ * Analyze how Perplexity mentions and cites a brand relative to its competitors.
3824
+ *
3825
+ * Price: $0.0045 per request.
3826
+ *
3827
+ * @example
3828
+ * 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" });
3829
+ */
3830
+ brandVisibility(input, options) {
3831
+ return this._core.run("perplexity.brand_visibility", input, options);
3832
+ }
3833
+ /**
3834
+ * Perplexity Search
3835
+ *
3836
+ * Ask Perplexity a web-grounded question and receive an answer with source citations.
3837
+ *
3838
+ * Price: $0.0036 per request.
3839
+ *
3840
+ * @example
3841
+ * const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
3842
+ */
3843
+ search(input, options) {
3844
+ return this._core.run("perplexity.search", input, options);
3845
+ }
3846
+ };
3847
+
3707
3848
  // src/generated/platforms/person.ts
3708
3849
  var PersonNamespace = class {
3709
3850
  constructor(_core) {
@@ -6410,6 +6551,14 @@ var AnyAPI2 = class extends AnyAPI {
6410
6551
  this._core
6411
6552
  );
6412
6553
  }
6554
+ /**
6555
+ * Typed methods for the chatgpt platform.
6556
+ */
6557
+ get chatgpt() {
6558
+ return this._namespaces["chatgpt"] ??= new ChatgptNamespace(
6559
+ this._core
6560
+ );
6561
+ }
6413
6562
  /**
6414
6563
  * Typed methods for the coinmarketcap platform.
6415
6564
  */
@@ -6502,6 +6651,14 @@ var AnyAPI2 = class extends AnyAPI {
6502
6651
  this._core
6503
6652
  );
6504
6653
  }
6654
+ /**
6655
+ * Typed methods for the gemini platform.
6656
+ */
6657
+ get gemini() {
6658
+ return this._namespaces["gemini"] ??= new GeminiNamespace(
6659
+ this._core
6660
+ );
6661
+ }
6505
6662
  /**
6506
6663
  * Typed methods for the github platform.
6507
6664
  */
@@ -6614,6 +6771,14 @@ var AnyAPI2 = class extends AnyAPI {
6614
6771
  this._core
6615
6772
  );
6616
6773
  }
6774
+ /**
6775
+ * Typed methods for the perplexity platform.
6776
+ */
6777
+ get perplexity() {
6778
+ return this._namespaces["perplexity"] ??= new PerplexityNamespace(
6779
+ this._core
6780
+ );
6781
+ }
6617
6782
  /**
6618
6783
  * Typed methods for the person platform.
6619
6784
  */
@@ -6882,6 +7047,7 @@ export {
6882
7047
  BadRequestError,
6883
7048
  BlueskyNamespace,
6884
7049
  BookingNamespace,
7050
+ ChatgptNamespace,
6885
7051
  CoinmarketcapNamespace,
6886
7052
  CompanyEnrichmentNamespace,
6887
7053
  CompanySearchNamespace,
@@ -6895,6 +7061,7 @@ export {
6895
7061
  EmailVerificationNamespace,
6896
7062
  FacebookNamespace,
6897
7063
  FiverrNamespace,
7064
+ GeminiNamespace,
6898
7065
  GithubNamespace,
6899
7066
  GlassdoorNamespace,
6900
7067
  GoogleAdsNamespace,
@@ -6911,6 +7078,7 @@ export {
6911
7078
  NotFoundError,
6912
7079
  PandaexpressNamespace,
6913
7080
  PeopleSearchNamespace,
7081
+ PerplexityNamespace,
6914
7082
  PersonEnrichmentNamespace,
6915
7083
  PersonNamespace,
6916
7084
  PinterestNamespace,