@getanyapi/sdk 0.11.1 → 0.12.1

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
@@ -9191,41 +9191,43 @@ interface InstagramSearchProfilesData {
9191
9191
  */
9192
9192
  interface InstagramStoriesFullInput {
9193
9193
  /**
9194
- * Instagram usernames/handles (without the @). A flat run fee is shared across the batch, so request several at once to lower the cost per account. Up to 100 usernames per request.
9194
+ * Instagram username or handle without the @.
9195
9195
  */
9196
- usernames: string[];
9196
+ username: string;
9197
9197
  }
9198
9198
  interface InstagramStoriesFullItem {
9199
9199
  /**
9200
- * Story caption text, when present.
9201
- */
9202
- caption?: string;
9203
- /**
9204
- * Instagram media shortcode.
9200
+ * Instagram media shortcode. Populated whenever the provider has data for the entity.
9201
+ * Present whenever the upstream returns this record.
9205
9202
  */
9206
9203
  code?: string;
9207
9204
  /**
9208
- * Posting time (Unix seconds).
9205
+ * UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
9206
+ * Present whenever the upstream returns this record.
9209
9207
  */
9210
9208
  createdUtc?: number;
9211
9209
  /**
9212
- * Expiry time, 24h after posting (Unix seconds).
9210
+ * Expiry UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
9211
+ * Present whenever the upstream returns this record.
9213
9212
  */
9214
- expiresAt?: number;
9213
+ expiresUtc?: number;
9215
9214
  /**
9216
- * Media pixel height.
9215
+ * Media pixel height. Populated whenever the provider has data for the entity.
9216
+ * Present whenever the upstream returns this record.
9217
9217
  */
9218
9218
  height?: number;
9219
9219
  /**
9220
- * Story identifier.
9220
+ * Story identifier. Populated whenever the provider has data for the entity.
9221
9221
  */
9222
9222
  id: string;
9223
9223
  /**
9224
- * Direct URL to the story image (highest resolution).
9224
+ * Direct URL to the story image (highest resolution). Populated whenever the provider has data for the entity.
9225
+ * Present whenever the upstream returns this record.
9225
9226
  */
9226
- imageUrl?: string;
9227
+ image?: string;
9227
9228
  /**
9228
- * Media type: 1 = image, 2 = video.
9229
+ * Media type: 1 = image, 2 = video. Populated whenever the provider has data for the entity.
9230
+ * Present whenever the upstream returns this record.
9229
9231
  */
9230
9232
  mediaType?: number;
9231
9233
  /**
@@ -9234,11 +9236,13 @@ interface InstagramStoriesFullItem {
9234
9236
  */
9235
9237
  username?: string;
9236
9238
  /**
9237
- * Direct URL to the story video, when the story is a video.
9239
+ * Direct URL to the story video, when the story is a video. Populated whenever the provider has data for the entity.
9240
+ * Present whenever the upstream returns this record.
9238
9241
  */
9239
9242
  videoUrl?: string;
9240
9243
  /**
9241
- * Media pixel width.
9244
+ * Media pixel width. Populated whenever the provider has data for the entity.
9245
+ * Present whenever the upstream returns this record.
9242
9246
  */
9243
9247
  width?: number;
9244
9248
  [extra: string]: unknown;
@@ -9248,7 +9252,7 @@ interface InstagramStoriesFullItem {
9248
9252
  */
9249
9253
  interface InstagramStoriesFullData {
9250
9254
  /**
9251
- * Story records across the requested accounts, each with full media, type, dimensions, posting + expiry time, and caption. Populated whenever the provider has data for the entity.
9255
+ * Currently live story records for the requested account, with media, type, dimensions, posting time, and expiry. Populated whenever the provider has data for the entity.
9252
9256
  */
9253
9257
  items: InstagramStoriesFullItem[];
9254
9258
  }
@@ -9681,12 +9685,12 @@ declare class InstagramNamespace {
9681
9685
  /**
9682
9686
  * Instagram Stories (full)
9683
9687
  *
9684
- * Fetch public Instagram accounts' currently live stories with the full record - media (image and video), type, dimensions, posting time, 24h expiry, and caption. Up to 100 usernames per request.
9688
+ * Fetch a public Instagram account's currently live stories with media, type, dimensions, posting time, and 24-hour expiry by username.
9685
9689
  *
9686
- * Price: $0.099 per request plus $0.003 per username (maximum $0.102).
9690
+ * Price: $0.002 per request.
9687
9691
  *
9688
9692
  * @example
9689
- * const res = await client.instagram.storiesFull({ usernames: ["natgeo"] });
9693
+ * const res = await client.instagram.storiesFull({ username: "natgeo" });
9690
9694
  */
9691
9695
  storiesFull(input: InstagramStoriesFullInput, options?: RequestOptions): Promise<RunResult<InstagramStoriesFullData>>;
9692
9696
  /**
@@ -12401,7 +12405,7 @@ interface MapsPlaceHour {
12401
12405
  */
12402
12406
  interface MapsPlaceData {
12403
12407
  /**
12404
- * 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.
12405
12409
  */
12406
12410
  items: MapsPlaceItem[];
12407
12411
  }
@@ -12529,7 +12533,7 @@ interface MapsSearchInput {
12529
12533
  */
12530
12534
  language?: string;
12531
12535
  /**
12532
- * 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.
12533
12537
  * Range: minimum 1, maximum 20.
12534
12538
  */
12535
12539
  limit?: number;
@@ -12665,9 +12669,9 @@ declare class MapsNamespace {
12665
12669
  /**
12666
12670
  * Google Maps Place Lookup
12667
12671
  *
12668
- * 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.
12669
12673
  *
12670
- * Price: $0.003 per request plus $0.005 per result (maximum $0.009).
12674
+ * Price: $0.00297 per request.
12671
12675
  *
12672
12676
  * @example
12673
12677
  * const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
@@ -12689,7 +12693,7 @@ declare class MapsNamespace {
12689
12693
  *
12690
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.
12691
12695
  *
12692
- * Price: $0.00005 per request plus $0.003 per result (maximum $0.06005).
12696
+ * Price: $0.00297 per request.
12693
12697
  *
12694
12698
  * @example
12695
12699
  * const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
@@ -21079,7 +21083,7 @@ interface WebScrapeInput {
21079
21083
  */
21080
21084
  excludeTags?: string[];
21081
21085
  /**
21082
- * 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.
21083
21087
  */
21084
21088
  formats?: ("markdown" | "html" | "rawHtml")[];
21085
21089
  /**
@@ -21091,8 +21095,8 @@ interface WebScrapeInput {
21091
21095
  */
21092
21096
  mobile?: boolean;
21093
21097
  /**
21094
- * When true (default) return only the main article content, stripping navigation, headers, footers, and other boilerplate. Set false to capture the full page.
21095
- * 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.
21096
21100
  */
21097
21101
  onlyMainContent?: boolean;
21098
21102
  /**
package/dist/index.d.ts CHANGED
@@ -9191,41 +9191,43 @@ interface InstagramSearchProfilesData {
9191
9191
  */
9192
9192
  interface InstagramStoriesFullInput {
9193
9193
  /**
9194
- * Instagram usernames/handles (without the @). A flat run fee is shared across the batch, so request several at once to lower the cost per account. Up to 100 usernames per request.
9194
+ * Instagram username or handle without the @.
9195
9195
  */
9196
- usernames: string[];
9196
+ username: string;
9197
9197
  }
9198
9198
  interface InstagramStoriesFullItem {
9199
9199
  /**
9200
- * Story caption text, when present.
9201
- */
9202
- caption?: string;
9203
- /**
9204
- * Instagram media shortcode.
9200
+ * Instagram media shortcode. Populated whenever the provider has data for the entity.
9201
+ * Present whenever the upstream returns this record.
9205
9202
  */
9206
9203
  code?: string;
9207
9204
  /**
9208
- * Posting time (Unix seconds).
9205
+ * UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
9206
+ * Present whenever the upstream returns this record.
9209
9207
  */
9210
9208
  createdUtc?: number;
9211
9209
  /**
9212
- * Expiry time, 24h after posting (Unix seconds).
9210
+ * Expiry UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
9211
+ * Present whenever the upstream returns this record.
9213
9212
  */
9214
- expiresAt?: number;
9213
+ expiresUtc?: number;
9215
9214
  /**
9216
- * Media pixel height.
9215
+ * Media pixel height. Populated whenever the provider has data for the entity.
9216
+ * Present whenever the upstream returns this record.
9217
9217
  */
9218
9218
  height?: number;
9219
9219
  /**
9220
- * Story identifier.
9220
+ * Story identifier. Populated whenever the provider has data for the entity.
9221
9221
  */
9222
9222
  id: string;
9223
9223
  /**
9224
- * Direct URL to the story image (highest resolution).
9224
+ * Direct URL to the story image (highest resolution). Populated whenever the provider has data for the entity.
9225
+ * Present whenever the upstream returns this record.
9225
9226
  */
9226
- imageUrl?: string;
9227
+ image?: string;
9227
9228
  /**
9228
- * Media type: 1 = image, 2 = video.
9229
+ * Media type: 1 = image, 2 = video. Populated whenever the provider has data for the entity.
9230
+ * Present whenever the upstream returns this record.
9229
9231
  */
9230
9232
  mediaType?: number;
9231
9233
  /**
@@ -9234,11 +9236,13 @@ interface InstagramStoriesFullItem {
9234
9236
  */
9235
9237
  username?: string;
9236
9238
  /**
9237
- * Direct URL to the story video, when the story is a video.
9239
+ * Direct URL to the story video, when the story is a video. Populated whenever the provider has data for the entity.
9240
+ * Present whenever the upstream returns this record.
9238
9241
  */
9239
9242
  videoUrl?: string;
9240
9243
  /**
9241
- * Media pixel width.
9244
+ * Media pixel width. Populated whenever the provider has data for the entity.
9245
+ * Present whenever the upstream returns this record.
9242
9246
  */
9243
9247
  width?: number;
9244
9248
  [extra: string]: unknown;
@@ -9248,7 +9252,7 @@ interface InstagramStoriesFullItem {
9248
9252
  */
9249
9253
  interface InstagramStoriesFullData {
9250
9254
  /**
9251
- * Story records across the requested accounts, each with full media, type, dimensions, posting + expiry time, and caption. Populated whenever the provider has data for the entity.
9255
+ * Currently live story records for the requested account, with media, type, dimensions, posting time, and expiry. Populated whenever the provider has data for the entity.
9252
9256
  */
9253
9257
  items: InstagramStoriesFullItem[];
9254
9258
  }
@@ -9681,12 +9685,12 @@ declare class InstagramNamespace {
9681
9685
  /**
9682
9686
  * Instagram Stories (full)
9683
9687
  *
9684
- * Fetch public Instagram accounts' currently live stories with the full record - media (image and video), type, dimensions, posting time, 24h expiry, and caption. Up to 100 usernames per request.
9688
+ * Fetch a public Instagram account's currently live stories with media, type, dimensions, posting time, and 24-hour expiry by username.
9685
9689
  *
9686
- * Price: $0.099 per request plus $0.003 per username (maximum $0.102).
9690
+ * Price: $0.002 per request.
9687
9691
  *
9688
9692
  * @example
9689
- * const res = await client.instagram.storiesFull({ usernames: ["natgeo"] });
9693
+ * const res = await client.instagram.storiesFull({ username: "natgeo" });
9690
9694
  */
9691
9695
  storiesFull(input: InstagramStoriesFullInput, options?: RequestOptions): Promise<RunResult<InstagramStoriesFullData>>;
9692
9696
  /**
@@ -12401,7 +12405,7 @@ interface MapsPlaceHour {
12401
12405
  */
12402
12406
  interface MapsPlaceData {
12403
12407
  /**
12404
- * 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.
12405
12409
  */
12406
12410
  items: MapsPlaceItem[];
12407
12411
  }
@@ -12529,7 +12533,7 @@ interface MapsSearchInput {
12529
12533
  */
12530
12534
  language?: string;
12531
12535
  /**
12532
- * 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.
12533
12537
  * Range: minimum 1, maximum 20.
12534
12538
  */
12535
12539
  limit?: number;
@@ -12665,9 +12669,9 @@ declare class MapsNamespace {
12665
12669
  /**
12666
12670
  * Google Maps Place Lookup
12667
12671
  *
12668
- * 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.
12669
12673
  *
12670
- * Price: $0.003 per request plus $0.005 per result (maximum $0.009).
12674
+ * Price: $0.00297 per request.
12671
12675
  *
12672
12676
  * @example
12673
12677
  * const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
@@ -12689,7 +12693,7 @@ declare class MapsNamespace {
12689
12693
  *
12690
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.
12691
12695
  *
12692
- * Price: $0.00005 per request plus $0.003 per result (maximum $0.06005).
12696
+ * Price: $0.00297 per request.
12693
12697
  *
12694
12698
  * @example
12695
12699
  * const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
@@ -21079,7 +21083,7 @@ interface WebScrapeInput {
21079
21083
  */
21080
21084
  excludeTags?: string[];
21081
21085
  /**
21082
- * 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.
21083
21087
  */
21084
21088
  formats?: ("markdown" | "html" | "rawHtml")[];
21085
21089
  /**
@@ -21091,8 +21095,8 @@ interface WebScrapeInput {
21091
21095
  */
21092
21096
  mobile?: boolean;
21093
21097
  /**
21094
- * When true (default) return only the main article content, stripping navigation, headers, footers, and other boilerplate. Set false to capture the full page.
21095
- * 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.
21096
21100
  */
21097
21101
  onlyMainContent?: boolean;
21098
21102
  /**
package/dist/index.js CHANGED
@@ -2778,12 +2778,12 @@ var InstagramNamespace = class {
2778
2778
  /**
2779
2779
  * Instagram Stories (full)
2780
2780
  *
2781
- * Fetch public Instagram accounts' currently live stories with the full record - media (image and video), type, dimensions, posting time, 24h expiry, and caption. Up to 100 usernames per request.
2781
+ * Fetch a public Instagram account's currently live stories with media, type, dimensions, posting time, and 24-hour expiry by username.
2782
2782
  *
2783
- * Price: $0.099 per request plus $0.003 per username (maximum $0.102).
2783
+ * Price: $0.002 per request.
2784
2784
  *
2785
2785
  * @example
2786
- * const res = await client.instagram.storiesFull({ usernames: ["natgeo"] });
2786
+ * const res = await client.instagram.storiesFull({ username: "natgeo" });
2787
2787
  */
2788
2788
  storiesFull(input, options) {
2789
2789
  return this._core.run("instagram.stories_full", input, options);
@@ -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" });