@getanyapi/sdk 0.12.0 → 0.12.2

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.d.cts CHANGED
@@ -8239,7 +8239,7 @@ declare class HackernewsNamespace {
8239
8239
  *
8240
8240
  * Get a Hacker News user's public profile by username - karma, bio, and account details as clean JSON.
8241
8241
  *
8242
- * Price: $0.00325 per request.
8242
+ * Price: $0.0015 per request.
8243
8243
  *
8244
8244
  * @example
8245
8245
  * const res = await client.hackernews.profile({ handle: "pg" });
@@ -8250,7 +8250,7 @@ declare class HackernewsNamespace {
8250
8250
  *
8251
8251
  * Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON.
8252
8252
  *
8253
- * Price: $0.00325 per request.
8253
+ * Price: $0.0015 per request.
8254
8254
  *
8255
8255
  * @example
8256
8256
  * const res = await client.hackernews.search({ query: "ai" });
@@ -8261,7 +8261,7 @@ declare class HackernewsNamespace {
8261
8261
  *
8262
8262
  * Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON.
8263
8263
  *
8264
- * Price: $0.00325 per request.
8264
+ * Price: $0.0015 per request.
8265
8265
  *
8266
8266
  * @example
8267
8267
  * const res = await client.hackernews.story({ id: "47340079" });
@@ -8272,7 +8272,7 @@ declare class HackernewsNamespace {
8272
8272
  *
8273
8273
  * List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON.
8274
8274
  *
8275
- * Price: $0.00325 per request.
8275
+ * Price: $0.0015 per request.
8276
8276
  *
8277
8277
  * @example
8278
8278
  * const res = await client.hackernews.storyComments({ id: "47340079" });
@@ -12405,7 +12405,7 @@ interface MapsPlaceHour {
12405
12405
  */
12406
12406
  interface MapsPlaceData {
12407
12407
  /**
12408
- * The best-matching place for the query, with full details: name, address, contact info, category, rating, opening hours, and coordinates. Up to one element (empty when nothing matched). Populated whenever the provider has data for the entity.
12408
+ * The best-matching place for the query, with available address, contact, category, rating, opening-hours, and coordinate details. Up to one element (empty when nothing matched). Populated whenever the provider has data for the entity.
12409
12409
  */
12410
12410
  items: MapsPlaceItem[];
12411
12411
  }
@@ -12533,7 +12533,7 @@ interface MapsSearchInput {
12533
12533
  */
12534
12534
  language?: string;
12535
12535
  /**
12536
- * Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
12536
+ * Maximum number of results to return (1-20, default 20). Pricing depends on the selected provider and may be flat per request.
12537
12537
  * Range: minimum 1, maximum 20.
12538
12538
  */
12539
12539
  limit?: number;
@@ -12669,9 +12669,9 @@ declare class MapsNamespace {
12669
12669
  /**
12670
12670
  * Google Maps Place Lookup
12671
12671
  *
12672
- * Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with full details - address, phone, website, rating, hours, and coordinates - as normalized JSON.
12672
+ * Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
12673
12673
  *
12674
- * Price: $0.003 per request plus $0.005 per result (maximum $0.009).
12674
+ * Price: $0.00297 per request.
12675
12675
  *
12676
12676
  * @example
12677
12677
  * const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
@@ -12693,7 +12693,7 @@ declare class MapsNamespace {
12693
12693
  *
12694
12694
  * Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
12695
12695
  *
12696
- * Price: $0.00005 per request plus $0.003 per result (maximum $0.06005).
12696
+ * Price: $0.00297 per request.
12697
12697
  *
12698
12698
  * @example
12699
12699
  * const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
@@ -21083,7 +21083,7 @@ interface WebScrapeInput {
21083
21083
  */
21084
21084
  excludeTags?: string[];
21085
21085
  /**
21086
- * Which representations of the page to return. Any combination of: markdown (clean main content), html (cleaned HTML), rawHtml (verbatim page HTML). Each requested format is returned under the matching output field. Defaults to markdown only.
21086
+ * Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (cleaned HTML), rawHtml (verbatim page HTML). Each requested format is returned under the matching output field. Defaults to Markdown and raw HTML.
21087
21087
  */
21088
21088
  formats?: ("markdown" | "html" | "rawHtml")[];
21089
21089
  /**
@@ -21095,8 +21095,8 @@ interface WebScrapeInput {
21095
21095
  */
21096
21096
  mobile?: boolean;
21097
21097
  /**
21098
- * When true (default) return only the main article content, stripping navigation, headers, footers, and other boilerplate. Set false to capture the full page.
21099
- * Default: true.
21098
+ * When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.
21099
+ * Default: false.
21100
21100
  */
21101
21101
  onlyMainContent?: boolean;
21102
21102
  /**
package/dist/index.d.ts CHANGED
@@ -8239,7 +8239,7 @@ declare class HackernewsNamespace {
8239
8239
  *
8240
8240
  * Get a Hacker News user's public profile by username - karma, bio, and account details as clean JSON.
8241
8241
  *
8242
- * Price: $0.00325 per request.
8242
+ * Price: $0.0015 per request.
8243
8243
  *
8244
8244
  * @example
8245
8245
  * const res = await client.hackernews.profile({ handle: "pg" });
@@ -8250,7 +8250,7 @@ declare class HackernewsNamespace {
8250
8250
  *
8251
8251
  * Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON.
8252
8252
  *
8253
- * Price: $0.00325 per request.
8253
+ * Price: $0.0015 per request.
8254
8254
  *
8255
8255
  * @example
8256
8256
  * const res = await client.hackernews.search({ query: "ai" });
@@ -8261,7 +8261,7 @@ declare class HackernewsNamespace {
8261
8261
  *
8262
8262
  * Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON.
8263
8263
  *
8264
- * Price: $0.00325 per request.
8264
+ * Price: $0.0015 per request.
8265
8265
  *
8266
8266
  * @example
8267
8267
  * const res = await client.hackernews.story({ id: "47340079" });
@@ -8272,7 +8272,7 @@ declare class HackernewsNamespace {
8272
8272
  *
8273
8273
  * List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON.
8274
8274
  *
8275
- * Price: $0.00325 per request.
8275
+ * Price: $0.0015 per request.
8276
8276
  *
8277
8277
  * @example
8278
8278
  * const res = await client.hackernews.storyComments({ id: "47340079" });
@@ -12405,7 +12405,7 @@ interface MapsPlaceHour {
12405
12405
  */
12406
12406
  interface MapsPlaceData {
12407
12407
  /**
12408
- * The best-matching place for the query, with full details: name, address, contact info, category, rating, opening hours, and coordinates. Up to one element (empty when nothing matched). Populated whenever the provider has data for the entity.
12408
+ * The best-matching place for the query, with available address, contact, category, rating, opening-hours, and coordinate details. Up to one element (empty when nothing matched). Populated whenever the provider has data for the entity.
12409
12409
  */
12410
12410
  items: MapsPlaceItem[];
12411
12411
  }
@@ -12533,7 +12533,7 @@ interface MapsSearchInput {
12533
12533
  */
12534
12534
  language?: string;
12535
12535
  /**
12536
- * Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
12536
+ * Maximum number of results to return (1-20, default 20). Pricing depends on the selected provider and may be flat per request.
12537
12537
  * Range: minimum 1, maximum 20.
12538
12538
  */
12539
12539
  limit?: number;
@@ -12669,9 +12669,9 @@ declare class MapsNamespace {
12669
12669
  /**
12670
12670
  * Google Maps Place Lookup
12671
12671
  *
12672
- * Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with full details - address, phone, website, rating, hours, and coordinates - as normalized JSON.
12672
+ * Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
12673
12673
  *
12674
- * Price: $0.003 per request plus $0.005 per result (maximum $0.009).
12674
+ * Price: $0.00297 per request.
12675
12675
  *
12676
12676
  * @example
12677
12677
  * const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
@@ -12693,7 +12693,7 @@ declare class MapsNamespace {
12693
12693
  *
12694
12694
  * Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
12695
12695
  *
12696
- * Price: $0.00005 per request plus $0.003 per result (maximum $0.06005).
12696
+ * Price: $0.00297 per request.
12697
12697
  *
12698
12698
  * @example
12699
12699
  * const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
@@ -21083,7 +21083,7 @@ interface WebScrapeInput {
21083
21083
  */
21084
21084
  excludeTags?: string[];
21085
21085
  /**
21086
- * Which representations of the page to return. Any combination of: markdown (clean main content), html (cleaned HTML), rawHtml (verbatim page HTML). Each requested format is returned under the matching output field. Defaults to markdown only.
21086
+ * Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (cleaned HTML), rawHtml (verbatim page HTML). Each requested format is returned under the matching output field. Defaults to Markdown and raw HTML.
21087
21087
  */
21088
21088
  formats?: ("markdown" | "html" | "rawHtml")[];
21089
21089
  /**
@@ -21095,8 +21095,8 @@ interface WebScrapeInput {
21095
21095
  */
21096
21096
  mobile?: boolean;
21097
21097
  /**
21098
- * When true (default) return only the main article content, stripping navigation, headers, footers, and other boilerplate. Set false to capture the full page.
21099
- * Default: true.
21098
+ * When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.
21099
+ * Default: false.
21100
21100
  */
21101
21101
  onlyMainContent?: boolean;
21102
21102
  /**
package/dist/index.js CHANGED
@@ -2427,7 +2427,7 @@ var HackernewsNamespace = class {
2427
2427
  *
2428
2428
  * Get a Hacker News user's public profile by username - karma, bio, and account details as clean JSON.
2429
2429
  *
2430
- * Price: $0.00325 per request.
2430
+ * Price: $0.0015 per request.
2431
2431
  *
2432
2432
  * @example
2433
2433
  * const res = await client.hackernews.profile({ handle: "pg" });
@@ -2440,7 +2440,7 @@ var HackernewsNamespace = class {
2440
2440
  *
2441
2441
  * Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON.
2442
2442
  *
2443
- * Price: $0.00325 per request.
2443
+ * Price: $0.0015 per request.
2444
2444
  *
2445
2445
  * @example
2446
2446
  * const res = await client.hackernews.search({ query: "ai" });
@@ -2453,7 +2453,7 @@ var HackernewsNamespace = class {
2453
2453
  *
2454
2454
  * Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON.
2455
2455
  *
2456
- * Price: $0.00325 per request.
2456
+ * Price: $0.0015 per request.
2457
2457
  *
2458
2458
  * @example
2459
2459
  * const res = await client.hackernews.story({ id: "47340079" });
@@ -2466,7 +2466,7 @@ var HackernewsNamespace = class {
2466
2466
  *
2467
2467
  * List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON.
2468
2468
  *
2469
- * Price: $0.00325 per request.
2469
+ * Price: $0.0015 per request.
2470
2470
  *
2471
2471
  * @example
2472
2472
  * const res = await client.hackernews.storyComments({ id: "47340079" });
@@ -3203,9 +3203,9 @@ var MapsNamespace = class {
3203
3203
  /**
3204
3204
  * Google Maps Place Lookup
3205
3205
  *
3206
- * Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with full details - address, phone, website, rating, hours, and coordinates - as normalized JSON.
3206
+ * Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
3207
3207
  *
3208
- * Price: $0.003 per request plus $0.005 per result (maximum $0.009).
3208
+ * Price: $0.00297 per request.
3209
3209
  *
3210
3210
  * @example
3211
3211
  * const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
@@ -3231,7 +3231,7 @@ var MapsNamespace = class {
3231
3231
  *
3232
3232
  * Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
3233
3233
  *
3234
- * Price: $0.00005 per request plus $0.003 per result (maximum $0.06005).
3234
+ * Price: $0.00297 per request.
3235
3235
  *
3236
3236
  * @example
3237
3237
  * const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });