scrapebadger 0.64.0 → 0.64.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.js CHANGED
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
10
10
 
11
11
  // src/internal/version.ts
12
- var SDK_VERSION = "0.64.0";
12
+ var SDK_VERSION = "0.64.1";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -4591,17 +4591,11 @@ var UsersClient4 = class {
4591
4591
  async get(username) {
4592
4592
  return this.client.request(`/v1/instagram/users/${username}`);
4593
4593
  }
4594
- /**
4595
- * Get "About this account" metadata for a user.
4596
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4597
- */
4594
+ /** Get "About this account" metadata for a user. */
4598
4595
  async about(username) {
4599
4596
  return this.client.request(`/v1/instagram/users/${username}/about`);
4600
4597
  }
4601
- /**
4602
- * Get accounts related/suggested for a user.
4603
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4604
- */
4598
+ /** Get accounts related/suggested for a user. */
4605
4599
  async related(username) {
4606
4600
  return this.client.request(`/v1/instagram/users/${username}/related`);
4607
4601
  }
@@ -4610,36 +4604,25 @@ var UsersClient4 = class {
4610
4604
  return this.media(`/v1/instagram/users/${username}/posts`, options);
4611
4605
  }
4612
4606
  /**
4613
- * Get a user's video posts (IGTV/feed videos).
4614
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4607
+ * Get a user's video posts from their feed. A page may hold slightly more than
4608
+ * `amount` items; pass `next_cursor` back as `cursor` to continue the feed.
4615
4609
  */
4616
4610
  async videos(username, options = {}) {
4617
4611
  return this.media(`/v1/instagram/users/${username}/videos`, options);
4618
4612
  }
4619
- /**
4620
- * Get a user's reels.
4621
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4622
- */
4613
+ /** Get a user's reels. */
4623
4614
  async reels(username, options = {}) {
4624
4615
  return this.media(`/v1/instagram/users/${username}/reels`, options);
4625
4616
  }
4626
- /**
4627
- * Get media a user is tagged in.
4628
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4629
- */
4617
+ /** Get media a user is tagged in. */
4630
4618
  async tagged(username, options = {}) {
4631
4619
  return this.media(`/v1/instagram/users/${username}/tagged`, options);
4632
4620
  }
4633
- /**
4634
- * Get a user's pinned posts.
4635
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4636
- */
4621
+ /** Get a user's pinned posts. */
4637
4622
  async pinned(username) {
4638
4623
  return this.client.request(`/v1/instagram/users/${username}/pinned`);
4639
4624
  }
4640
4625
  /**
4641
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4642
- *
4643
4626
  * Get a user's followers.
4644
4627
  *
4645
4628
  * @param username - Instagram username.
@@ -4656,19 +4639,13 @@ var UsersClient4 = class {
4656
4639
  }
4657
4640
  });
4658
4641
  }
4659
- /**
4660
- * Get the accounts a user follows.
4661
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4662
- */
4642
+ /** Get the accounts a user follows. */
4663
4643
  async following(username, options = {}) {
4664
4644
  return this.client.request(`/v1/instagram/users/${username}/following`, {
4665
4645
  params: { amount: options.amount, cursor: options.cursor }
4666
4646
  });
4667
4647
  }
4668
- /**
4669
- * Search within a user's followers by name/username.
4670
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4671
- */
4648
+ /** Search within a user's followers by name/username. */
4672
4649
  async searchFollowers(username, query, options = {}) {
4673
4650
  return this.client.request(
4674
4651
  `/v1/instagram/users/${username}/followers/search`,
@@ -4677,17 +4654,11 @@ var UsersClient4 = class {
4677
4654
  }
4678
4655
  );
4679
4656
  }
4680
- /**
4681
- * Get a user's currently-live stories.
4682
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4683
- */
4657
+ /** Get a user's currently-live stories. */
4684
4658
  async stories(username) {
4685
4659
  return this.client.request(`/v1/instagram/users/${username}/stories`);
4686
4660
  }
4687
- /**
4688
- * Get a user's story highlights.
4689
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4690
- */
4661
+ /** Get a user's story highlights. */
4691
4662
  async highlights(username) {
4692
4663
  return this.client.request(`/v1/instagram/users/${username}/highlights`);
4693
4664
  }
@@ -4712,10 +4683,7 @@ var MediaClient = class {
4712
4683
  async get(code) {
4713
4684
  return this.client.request(`/v1/instagram/media/${code}`);
4714
4685
  }
4715
- /**
4716
- * Get oEmbed metadata for a media permalink.
4717
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4718
- */
4686
+ /** Get oEmbed metadata for a media permalink. */
4719
4687
  async oembed(code) {
4720
4688
  return this.client.request(`/v1/instagram/media/${code}/oembed`);
4721
4689
  }
@@ -4725,27 +4693,18 @@ var MediaClient = class {
4725
4693
  params: { amount: options.amount, cursor: options.cursor }
4726
4694
  });
4727
4695
  }
4728
- /**
4729
- * Get the users who liked a media.
4730
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4731
- */
4696
+ /** Get the users who liked a media. */
4732
4697
  async likers(code) {
4733
4698
  return this.client.request(`/v1/instagram/media/${code}/likers`);
4734
4699
  }
4735
- /**
4736
- * Get replies to a comment.
4737
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4738
- */
4700
+ /** Get replies to a comment. */
4739
4701
  async replies(code, commentId, options = {}) {
4740
4702
  return this.client.request(
4741
4703
  `/v1/instagram/media/${code}/comments/${commentId}/replies`,
4742
4704
  { params: { amount: options.amount, cursor: options.cursor } }
4743
4705
  );
4744
4706
  }
4745
- /**
4746
- * Get the users who liked a comment.
4747
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4748
- */
4707
+ /** Get the users who liked a comment. */
4749
4708
  async commentLikers(code, commentId) {
4750
4709
  return this.client.request(
4751
4710
  `/v1/instagram/media/${code}/comments/${commentId}/likers`
@@ -4759,64 +4718,43 @@ var SearchClient4 = class {
4759
4718
  constructor(client) {
4760
4719
  this.client = client;
4761
4720
  }
4762
- /**
4763
- * Search accounts by name/username.
4764
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4765
- */
4721
+ /** Search accounts by name/username. */
4766
4722
  async users(query) {
4767
4723
  return this.client.request("/v1/instagram/search/users", {
4768
4724
  params: { query }
4769
4725
  });
4770
4726
  }
4771
- /**
4772
- * Search hashtags.
4773
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4774
- */
4727
+ /** Search hashtags. */
4775
4728
  async hashtags(query) {
4776
4729
  return this.client.request("/v1/instagram/search/hashtags", {
4777
4730
  params: { query }
4778
4731
  });
4779
4732
  }
4780
- /**
4781
- * Search places/locations.
4782
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4783
- */
4733
+ /** Search places/locations (global ranking). */
4784
4734
  async places(query) {
4785
4735
  return this.client.request("/v1/instagram/search/places", {
4786
4736
  params: { query }
4787
4737
  });
4788
4738
  }
4789
- /**
4790
- * Search reels.
4791
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4792
- */
4739
+ /** Search reels. */
4793
4740
  async reels(query) {
4794
4741
  return this.client.request("/v1/instagram/search/reels", {
4795
4742
  params: { query }
4796
4743
  });
4797
4744
  }
4798
- /**
4799
- * Search music/audio tracks.
4800
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4801
- */
4745
+ /** Search music/audio tracks. */
4802
4746
  async music(query) {
4803
4747
  return this.client.request("/v1/instagram/search/music", {
4804
4748
  params: { query }
4805
4749
  });
4806
4750
  }
4807
- /**
4808
- * Get blended "top" results (users, hashtags, and places).
4809
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4810
- */
4751
+ /** Get blended "top" results (users, hashtags, and places). */
4811
4752
  async top(query) {
4812
4753
  return this.client.request("/v1/instagram/search/top", {
4813
4754
  params: { query }
4814
4755
  });
4815
4756
  }
4816
- /**
4817
- * Get typeahead/autocomplete suggestions (mixed entity types).
4818
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4819
- */
4757
+ /** Get typeahead/autocomplete suggestions (mixed entity types). */
4820
4758
  async autocomplete(query) {
4821
4759
  return this.client.request("/v1/instagram/search/autocomplete", {
4822
4760
  params: { query }
@@ -4835,31 +4773,19 @@ var HashtagsClient = class {
4835
4773
  constructor(client) {
4836
4774
  this.client = client;
4837
4775
  }
4838
- /**
4839
- * Get a hashtag's info (media count, cover).
4840
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4841
- */
4776
+ /** Get a hashtag's info (media count, cover). */
4842
4777
  async get(tag) {
4843
4778
  return this.client.request(`/v1/instagram/hashtags/${tag}`);
4844
4779
  }
4845
- /**
4846
- * Get the top/popular media for a hashtag.
4847
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4848
- */
4780
+ /** Get the top/popular media for a hashtag. */
4849
4781
  async top(tag, options = {}) {
4850
4782
  return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/top`, options);
4851
4783
  }
4852
- /**
4853
- * Get the most recent media for a hashtag.
4854
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4855
- */
4784
+ /** Get the most recent media for a hashtag. */
4856
4785
  async recent(tag, options = {}) {
4857
4786
  return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/recent`, options);
4858
4787
  }
4859
- /**
4860
- * Get reels for a hashtag.
4861
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4862
- */
4788
+ /** Get reels for a hashtag. */
4863
4789
  async reels(tag, options = {}) {
4864
4790
  return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/reels`, options);
4865
4791
  }
@@ -4869,31 +4795,19 @@ var LocationsClient = class {
4869
4795
  constructor(client) {
4870
4796
  this.client = client;
4871
4797
  }
4872
- /**
4873
- * Get a location's info.
4874
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4875
- */
4798
+ /** Get a location's info. */
4876
4799
  async get(pk) {
4877
4800
  return this.client.request(`/v1/instagram/locations/${pk}`);
4878
4801
  }
4879
- /**
4880
- * Get the top/popular media for a location.
4881
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4882
- */
4802
+ /** Get the top/popular media for a location. */
4883
4803
  async top(pk, options = {}) {
4884
4804
  return mediaFeed(this.client, `/v1/instagram/locations/${pk}/top`, options);
4885
4805
  }
4886
- /**
4887
- * Get the most recent media for a location.
4888
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4889
- */
4806
+ /** Get the most recent media for a location. */
4890
4807
  async recent(pk, options = {}) {
4891
4808
  return mediaFeed(this.client, `/v1/instagram/locations/${pk}/recent`, options);
4892
4809
  }
4893
- /**
4894
- * Search locations by name.
4895
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4896
- */
4810
+ /** Search locations by name. */
4897
4811
  async search(query) {
4898
4812
  return this.client.request("/v1/instagram/locations/search", {
4899
4813
  params: { query }
@@ -4905,24 +4819,15 @@ var AudioClient = class {
4905
4819
  constructor(client) {
4906
4820
  this.client = client;
4907
4821
  }
4908
- /**
4909
- * Get an audio track's info.
4910
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4911
- */
4822
+ /** Get an audio track's info. */
4912
4823
  async get(audioId) {
4913
4824
  return this.client.request(`/v1/instagram/audio/${audioId}`);
4914
4825
  }
4915
- /**
4916
- * Get media that use an audio track.
4917
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4918
- */
4826
+ /** Get media that use an audio track. */
4919
4827
  async media(audioId, options = {}) {
4920
4828
  return mediaFeed(this.client, `/v1/instagram/audio/${audioId}/media`, options);
4921
4829
  }
4922
- /**
4923
- * Get currently-trending audio tracks.
4924
- * @deprecated Temporarily unavailable — authenticated data is temporarily offline.
4925
- */
4830
+ /** Get currently-trending audio tracks. */
4926
4831
  async trending() {
4927
4832
  return this.client.request("/v1/instagram/audio/trending");
4928
4833
  }