@getanyapi/sdk 0.11.1 → 0.12.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.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
  /**
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
  /**
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);