scrapebadger 0.63.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.d.cts +60 -128
- package/dist/index.d.ts +60 -128
- package/dist/index.js +70 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -129
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1035,6 +1035,33 @@ declare class ReferenceClient$f {
|
|
|
1035
1035
|
market?: string;
|
|
1036
1036
|
per_page?: number;
|
|
1037
1037
|
}): Promise<BrandsResponse>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Get Vinted's A-Z directory of popular brands.
|
|
1040
|
+
*
|
|
1041
|
+
* Returns about 240 of the most popular brands whose name starts with
|
|
1042
|
+
* `letter`, with ID, slug and item count. Loop `letter` over A-Z and "0"
|
|
1043
|
+
* (digits) for a reference list of roughly 6,000 brand IDs. `brands()`
|
|
1044
|
+
* stops at 10 matches per keyword. 1 credit per call.
|
|
1045
|
+
*
|
|
1046
|
+
* @param options - Optional parameters.
|
|
1047
|
+
* @param options.letter - First letter of the brand name, "A"-"Z", or "0"
|
|
1048
|
+
* for digits. Omit for the most popular brands overall.
|
|
1049
|
+
* @param options.market - Market code (default: "fr").
|
|
1050
|
+
* @returns Brands for that letter (no pagination; one page per letter).
|
|
1051
|
+
*
|
|
1052
|
+
* @example
|
|
1053
|
+
* ```typescript
|
|
1054
|
+
* const ids = new Map<string, number>();
|
|
1055
|
+
* for (const letter of [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ", "0"]) {
|
|
1056
|
+
* const { brands } = await client.vinted.reference.popularBrands({ letter, market: "uk" });
|
|
1057
|
+
* for (const brand of brands) ids.set(brand.title, brand.id);
|
|
1058
|
+
* }
|
|
1059
|
+
* ```
|
|
1060
|
+
*/
|
|
1061
|
+
popularBrands(options?: {
|
|
1062
|
+
letter?: string;
|
|
1063
|
+
market?: string;
|
|
1064
|
+
}): Promise<BrandsResponse>;
|
|
1038
1065
|
/**
|
|
1039
1066
|
* Get available colors for a market.
|
|
1040
1067
|
*
|
|
@@ -4650,15 +4677,9 @@ declare class UsersClient$1 {
|
|
|
4650
4677
|
constructor(client: BaseClient);
|
|
4651
4678
|
/** Get a user's full profile. */
|
|
4652
4679
|
get(username: string): Promise<User>;
|
|
4653
|
-
/**
|
|
4654
|
-
* Get "About this account" metadata for a user.
|
|
4655
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4656
|
-
*/
|
|
4680
|
+
/** Get "About this account" metadata for a user. */
|
|
4657
4681
|
about(username: string): Promise<UserAbout>;
|
|
4658
|
-
/**
|
|
4659
|
-
* Get accounts related/suggested for a user.
|
|
4660
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4661
|
-
*/
|
|
4682
|
+
/** Get accounts related/suggested for a user. */
|
|
4662
4683
|
related(username: string): Promise<Paginated<UserShort>>;
|
|
4663
4684
|
/** Get a user's timeline posts. */
|
|
4664
4685
|
posts(username: string, options?: {
|
|
@@ -4666,37 +4687,26 @@ declare class UsersClient$1 {
|
|
|
4666
4687
|
cursor?: string;
|
|
4667
4688
|
}): Promise<Paginated<Media>>;
|
|
4668
4689
|
/**
|
|
4669
|
-
* Get a user's video posts
|
|
4670
|
-
*
|
|
4690
|
+
* Get a user's video posts from their feed. A page may hold slightly more than
|
|
4691
|
+
* `amount` items; pass `next_cursor` back as `cursor` to continue the feed.
|
|
4671
4692
|
*/
|
|
4672
4693
|
videos(username: string, options?: {
|
|
4673
4694
|
amount?: number;
|
|
4674
4695
|
cursor?: string;
|
|
4675
4696
|
}): Promise<Paginated<Media>>;
|
|
4676
|
-
/**
|
|
4677
|
-
* Get a user's reels.
|
|
4678
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4679
|
-
*/
|
|
4697
|
+
/** Get a user's reels. */
|
|
4680
4698
|
reels(username: string, options?: {
|
|
4681
4699
|
amount?: number;
|
|
4682
4700
|
cursor?: string;
|
|
4683
4701
|
}): Promise<Paginated<Media>>;
|
|
4684
|
-
/**
|
|
4685
|
-
* Get media a user is tagged in.
|
|
4686
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4687
|
-
*/
|
|
4702
|
+
/** Get media a user is tagged in. */
|
|
4688
4703
|
tagged(username: string, options?: {
|
|
4689
4704
|
amount?: number;
|
|
4690
4705
|
cursor?: string;
|
|
4691
4706
|
}): Promise<Paginated<Media>>;
|
|
4692
|
-
/**
|
|
4693
|
-
* Get a user's pinned posts.
|
|
4694
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4695
|
-
*/
|
|
4707
|
+
/** Get a user's pinned posts. */
|
|
4696
4708
|
pinned(username: string): Promise<Paginated<Media>>;
|
|
4697
4709
|
/**
|
|
4698
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4699
|
-
*
|
|
4700
4710
|
* Get a user's followers.
|
|
4701
4711
|
*
|
|
4702
4712
|
* @param username - Instagram username.
|
|
@@ -4709,31 +4719,19 @@ declare class UsersClient$1 {
|
|
|
4709
4719
|
cursor?: string;
|
|
4710
4720
|
order?: string;
|
|
4711
4721
|
}): Promise<Paginated<UserShort>>;
|
|
4712
|
-
/**
|
|
4713
|
-
* Get the accounts a user follows.
|
|
4714
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4715
|
-
*/
|
|
4722
|
+
/** Get the accounts a user follows. */
|
|
4716
4723
|
following(username: string, options?: {
|
|
4717
4724
|
amount?: number;
|
|
4718
4725
|
cursor?: string;
|
|
4719
4726
|
}): Promise<Paginated<UserShort>>;
|
|
4720
|
-
/**
|
|
4721
|
-
* Search within a user's followers by name/username.
|
|
4722
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4723
|
-
*/
|
|
4727
|
+
/** Search within a user's followers by name/username. */
|
|
4724
4728
|
searchFollowers(username: string, query: string, options?: {
|
|
4725
4729
|
amount?: number;
|
|
4726
4730
|
cursor?: string;
|
|
4727
4731
|
}): Promise<Paginated<UserShort>>;
|
|
4728
|
-
/**
|
|
4729
|
-
* Get a user's currently-live stories.
|
|
4730
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4731
|
-
*/
|
|
4732
|
+
/** Get a user's currently-live stories. */
|
|
4732
4733
|
stories(username: string): Promise<Paginated<Media>>;
|
|
4733
|
-
/**
|
|
4734
|
-
* Get a user's story highlights.
|
|
4735
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4736
|
-
*/
|
|
4734
|
+
/** Get a user's story highlights. */
|
|
4737
4735
|
highlights(username: string): Promise<Paginated<Highlight>>;
|
|
4738
4736
|
private media;
|
|
4739
4737
|
}
|
|
@@ -4770,33 +4768,21 @@ declare class MediaClient$3 {
|
|
|
4770
4768
|
* @param code - The media shortcode (from the `/p/<code>/` URL).
|
|
4771
4769
|
*/
|
|
4772
4770
|
get(code: string): Promise<Media>;
|
|
4773
|
-
/**
|
|
4774
|
-
* Get oEmbed metadata for a media permalink.
|
|
4775
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4776
|
-
*/
|
|
4771
|
+
/** Get oEmbed metadata for a media permalink. */
|
|
4777
4772
|
oembed(code: string): Promise<Oembed>;
|
|
4778
4773
|
/** Get top-level comments on a media. */
|
|
4779
4774
|
comments(code: string, options?: {
|
|
4780
4775
|
amount?: number;
|
|
4781
4776
|
cursor?: string;
|
|
4782
4777
|
}): Promise<Paginated<Comment$1>>;
|
|
4783
|
-
/**
|
|
4784
|
-
* Get the users who liked a media.
|
|
4785
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4786
|
-
*/
|
|
4778
|
+
/** Get the users who liked a media. */
|
|
4787
4779
|
likers(code: string): Promise<Paginated<UserShort>>;
|
|
4788
|
-
/**
|
|
4789
|
-
* Get replies to a comment.
|
|
4790
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4791
|
-
*/
|
|
4780
|
+
/** Get replies to a comment. */
|
|
4792
4781
|
replies(code: string, commentId: string, options?: {
|
|
4793
4782
|
amount?: number;
|
|
4794
4783
|
cursor?: string;
|
|
4795
4784
|
}): Promise<Paginated<Comment$1>>;
|
|
4796
|
-
/**
|
|
4797
|
-
* Get the users who liked a comment.
|
|
4798
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4799
|
-
*/
|
|
4785
|
+
/** Get the users who liked a comment. */
|
|
4800
4786
|
commentLikers(code: string, commentId: string): Promise<Paginated<UserShort>>;
|
|
4801
4787
|
}
|
|
4802
4788
|
|
|
@@ -4825,40 +4811,19 @@ declare class MediaClient$3 {
|
|
|
4825
4811
|
declare class SearchClient$f {
|
|
4826
4812
|
private readonly client;
|
|
4827
4813
|
constructor(client: BaseClient);
|
|
4828
|
-
/**
|
|
4829
|
-
* Search accounts by name/username.
|
|
4830
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4831
|
-
*/
|
|
4814
|
+
/** Search accounts by name/username. */
|
|
4832
4815
|
users(query: string): Promise<Paginated<UserShort>>;
|
|
4833
|
-
/**
|
|
4834
|
-
* Search hashtags.
|
|
4835
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4836
|
-
*/
|
|
4816
|
+
/** Search hashtags. */
|
|
4837
4817
|
hashtags(query: string): Promise<Paginated<Hashtag>>;
|
|
4838
|
-
/**
|
|
4839
|
-
* Search places/locations.
|
|
4840
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4841
|
-
*/
|
|
4818
|
+
/** Search places/locations (global ranking). */
|
|
4842
4819
|
places(query: string): Promise<Paginated<Location$2>>;
|
|
4843
|
-
/**
|
|
4844
|
-
* Search reels.
|
|
4845
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4846
|
-
*/
|
|
4820
|
+
/** Search reels. */
|
|
4847
4821
|
reels(query: string): Promise<Paginated<Media>>;
|
|
4848
|
-
/**
|
|
4849
|
-
* Search music/audio tracks.
|
|
4850
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4851
|
-
*/
|
|
4822
|
+
/** Search music/audio tracks. */
|
|
4852
4823
|
music(query: string): Promise<Paginated<Audio>>;
|
|
4853
|
-
/**
|
|
4854
|
-
* Get blended "top" results (users, hashtags, and places).
|
|
4855
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4856
|
-
*/
|
|
4824
|
+
/** Get blended "top" results (users, hashtags, and places). */
|
|
4857
4825
|
top(query: string): Promise<SearchTopResponse>;
|
|
4858
|
-
/**
|
|
4859
|
-
* Get typeahead/autocomplete suggestions (mixed entity types).
|
|
4860
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4861
|
-
*/
|
|
4826
|
+
/** Get typeahead/autocomplete suggestions (mixed entity types). */
|
|
4862
4827
|
autocomplete(query: string): Promise<SearchTopResponse>;
|
|
4863
4828
|
}
|
|
4864
4829
|
|
|
@@ -4873,31 +4838,19 @@ declare class SearchClient$f {
|
|
|
4873
4838
|
declare class HashtagsClient$1 {
|
|
4874
4839
|
private readonly client;
|
|
4875
4840
|
constructor(client: BaseClient);
|
|
4876
|
-
/**
|
|
4877
|
-
* Get a hashtag's info (media count, cover).
|
|
4878
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4879
|
-
*/
|
|
4841
|
+
/** Get a hashtag's info (media count, cover). */
|
|
4880
4842
|
get(tag: string): Promise<Hashtag>;
|
|
4881
|
-
/**
|
|
4882
|
-
* Get the top/popular media for a hashtag.
|
|
4883
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4884
|
-
*/
|
|
4843
|
+
/** Get the top/popular media for a hashtag. */
|
|
4885
4844
|
top(tag: string, options?: {
|
|
4886
4845
|
amount?: number;
|
|
4887
4846
|
cursor?: string;
|
|
4888
4847
|
}): Promise<Paginated<Media>>;
|
|
4889
|
-
/**
|
|
4890
|
-
* Get the most recent media for a hashtag.
|
|
4891
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4892
|
-
*/
|
|
4848
|
+
/** Get the most recent media for a hashtag. */
|
|
4893
4849
|
recent(tag: string, options?: {
|
|
4894
4850
|
amount?: number;
|
|
4895
4851
|
cursor?: string;
|
|
4896
4852
|
}): Promise<Paginated<Media>>;
|
|
4897
|
-
/**
|
|
4898
|
-
* Get reels for a hashtag.
|
|
4899
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4900
|
-
*/
|
|
4853
|
+
/** Get reels for a hashtag. */
|
|
4901
4854
|
reels(tag: string, options?: {
|
|
4902
4855
|
amount?: number;
|
|
4903
4856
|
cursor?: string;
|
|
@@ -4907,54 +4860,33 @@ declare class HashtagsClient$1 {
|
|
|
4907
4860
|
declare class LocationsClient {
|
|
4908
4861
|
private readonly client;
|
|
4909
4862
|
constructor(client: BaseClient);
|
|
4910
|
-
/**
|
|
4911
|
-
* Get a location's info.
|
|
4912
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4913
|
-
*/
|
|
4863
|
+
/** Get a location's info. */
|
|
4914
4864
|
get(pk: string): Promise<Location$2>;
|
|
4915
|
-
/**
|
|
4916
|
-
* Get the top/popular media for a location.
|
|
4917
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4918
|
-
*/
|
|
4865
|
+
/** Get the top/popular media for a location. */
|
|
4919
4866
|
top(pk: string, options?: {
|
|
4920
4867
|
amount?: number;
|
|
4921
4868
|
cursor?: string;
|
|
4922
4869
|
}): Promise<Paginated<Media>>;
|
|
4923
|
-
/**
|
|
4924
|
-
* Get the most recent media for a location.
|
|
4925
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4926
|
-
*/
|
|
4870
|
+
/** Get the most recent media for a location. */
|
|
4927
4871
|
recent(pk: string, options?: {
|
|
4928
4872
|
amount?: number;
|
|
4929
4873
|
cursor?: string;
|
|
4930
4874
|
}): Promise<Paginated<Media>>;
|
|
4931
|
-
/**
|
|
4932
|
-
* Search locations by name.
|
|
4933
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4934
|
-
*/
|
|
4875
|
+
/** Search locations by name. */
|
|
4935
4876
|
search(query: string): Promise<Paginated<Location$2>>;
|
|
4936
4877
|
}
|
|
4937
4878
|
/** Client for Instagram audio/music endpoints. */
|
|
4938
4879
|
declare class AudioClient {
|
|
4939
4880
|
private readonly client;
|
|
4940
4881
|
constructor(client: BaseClient);
|
|
4941
|
-
/**
|
|
4942
|
-
* Get an audio track's info.
|
|
4943
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4944
|
-
*/
|
|
4882
|
+
/** Get an audio track's info. */
|
|
4945
4883
|
get(audioId: string): Promise<Audio>;
|
|
4946
|
-
/**
|
|
4947
|
-
* Get media that use an audio track.
|
|
4948
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4949
|
-
*/
|
|
4884
|
+
/** Get media that use an audio track. */
|
|
4950
4885
|
media(audioId: string, options?: {
|
|
4951
4886
|
amount?: number;
|
|
4952
4887
|
cursor?: string;
|
|
4953
4888
|
}): Promise<Paginated<Media>>;
|
|
4954
|
-
/**
|
|
4955
|
-
* Get currently-trending audio tracks.
|
|
4956
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4957
|
-
*/
|
|
4889
|
+
/** Get currently-trending audio tracks. */
|
|
4958
4890
|
trending(): Promise<Paginated<Audio>>;
|
|
4959
4891
|
}
|
|
4960
4892
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1035,6 +1035,33 @@ declare class ReferenceClient$f {
|
|
|
1035
1035
|
market?: string;
|
|
1036
1036
|
per_page?: number;
|
|
1037
1037
|
}): Promise<BrandsResponse>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Get Vinted's A-Z directory of popular brands.
|
|
1040
|
+
*
|
|
1041
|
+
* Returns about 240 of the most popular brands whose name starts with
|
|
1042
|
+
* `letter`, with ID, slug and item count. Loop `letter` over A-Z and "0"
|
|
1043
|
+
* (digits) for a reference list of roughly 6,000 brand IDs. `brands()`
|
|
1044
|
+
* stops at 10 matches per keyword. 1 credit per call.
|
|
1045
|
+
*
|
|
1046
|
+
* @param options - Optional parameters.
|
|
1047
|
+
* @param options.letter - First letter of the brand name, "A"-"Z", or "0"
|
|
1048
|
+
* for digits. Omit for the most popular brands overall.
|
|
1049
|
+
* @param options.market - Market code (default: "fr").
|
|
1050
|
+
* @returns Brands for that letter (no pagination; one page per letter).
|
|
1051
|
+
*
|
|
1052
|
+
* @example
|
|
1053
|
+
* ```typescript
|
|
1054
|
+
* const ids = new Map<string, number>();
|
|
1055
|
+
* for (const letter of [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ", "0"]) {
|
|
1056
|
+
* const { brands } = await client.vinted.reference.popularBrands({ letter, market: "uk" });
|
|
1057
|
+
* for (const brand of brands) ids.set(brand.title, brand.id);
|
|
1058
|
+
* }
|
|
1059
|
+
* ```
|
|
1060
|
+
*/
|
|
1061
|
+
popularBrands(options?: {
|
|
1062
|
+
letter?: string;
|
|
1063
|
+
market?: string;
|
|
1064
|
+
}): Promise<BrandsResponse>;
|
|
1038
1065
|
/**
|
|
1039
1066
|
* Get available colors for a market.
|
|
1040
1067
|
*
|
|
@@ -4650,15 +4677,9 @@ declare class UsersClient$1 {
|
|
|
4650
4677
|
constructor(client: BaseClient);
|
|
4651
4678
|
/** Get a user's full profile. */
|
|
4652
4679
|
get(username: string): Promise<User>;
|
|
4653
|
-
/**
|
|
4654
|
-
* Get "About this account" metadata for a user.
|
|
4655
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4656
|
-
*/
|
|
4680
|
+
/** Get "About this account" metadata for a user. */
|
|
4657
4681
|
about(username: string): Promise<UserAbout>;
|
|
4658
|
-
/**
|
|
4659
|
-
* Get accounts related/suggested for a user.
|
|
4660
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4661
|
-
*/
|
|
4682
|
+
/** Get accounts related/suggested for a user. */
|
|
4662
4683
|
related(username: string): Promise<Paginated<UserShort>>;
|
|
4663
4684
|
/** Get a user's timeline posts. */
|
|
4664
4685
|
posts(username: string, options?: {
|
|
@@ -4666,37 +4687,26 @@ declare class UsersClient$1 {
|
|
|
4666
4687
|
cursor?: string;
|
|
4667
4688
|
}): Promise<Paginated<Media>>;
|
|
4668
4689
|
/**
|
|
4669
|
-
* Get a user's video posts
|
|
4670
|
-
*
|
|
4690
|
+
* Get a user's video posts from their feed. A page may hold slightly more than
|
|
4691
|
+
* `amount` items; pass `next_cursor` back as `cursor` to continue the feed.
|
|
4671
4692
|
*/
|
|
4672
4693
|
videos(username: string, options?: {
|
|
4673
4694
|
amount?: number;
|
|
4674
4695
|
cursor?: string;
|
|
4675
4696
|
}): Promise<Paginated<Media>>;
|
|
4676
|
-
/**
|
|
4677
|
-
* Get a user's reels.
|
|
4678
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4679
|
-
*/
|
|
4697
|
+
/** Get a user's reels. */
|
|
4680
4698
|
reels(username: string, options?: {
|
|
4681
4699
|
amount?: number;
|
|
4682
4700
|
cursor?: string;
|
|
4683
4701
|
}): Promise<Paginated<Media>>;
|
|
4684
|
-
/**
|
|
4685
|
-
* Get media a user is tagged in.
|
|
4686
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4687
|
-
*/
|
|
4702
|
+
/** Get media a user is tagged in. */
|
|
4688
4703
|
tagged(username: string, options?: {
|
|
4689
4704
|
amount?: number;
|
|
4690
4705
|
cursor?: string;
|
|
4691
4706
|
}): Promise<Paginated<Media>>;
|
|
4692
|
-
/**
|
|
4693
|
-
* Get a user's pinned posts.
|
|
4694
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4695
|
-
*/
|
|
4707
|
+
/** Get a user's pinned posts. */
|
|
4696
4708
|
pinned(username: string): Promise<Paginated<Media>>;
|
|
4697
4709
|
/**
|
|
4698
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4699
|
-
*
|
|
4700
4710
|
* Get a user's followers.
|
|
4701
4711
|
*
|
|
4702
4712
|
* @param username - Instagram username.
|
|
@@ -4709,31 +4719,19 @@ declare class UsersClient$1 {
|
|
|
4709
4719
|
cursor?: string;
|
|
4710
4720
|
order?: string;
|
|
4711
4721
|
}): Promise<Paginated<UserShort>>;
|
|
4712
|
-
/**
|
|
4713
|
-
* Get the accounts a user follows.
|
|
4714
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4715
|
-
*/
|
|
4722
|
+
/** Get the accounts a user follows. */
|
|
4716
4723
|
following(username: string, options?: {
|
|
4717
4724
|
amount?: number;
|
|
4718
4725
|
cursor?: string;
|
|
4719
4726
|
}): Promise<Paginated<UserShort>>;
|
|
4720
|
-
/**
|
|
4721
|
-
* Search within a user's followers by name/username.
|
|
4722
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4723
|
-
*/
|
|
4727
|
+
/** Search within a user's followers by name/username. */
|
|
4724
4728
|
searchFollowers(username: string, query: string, options?: {
|
|
4725
4729
|
amount?: number;
|
|
4726
4730
|
cursor?: string;
|
|
4727
4731
|
}): Promise<Paginated<UserShort>>;
|
|
4728
|
-
/**
|
|
4729
|
-
* Get a user's currently-live stories.
|
|
4730
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4731
|
-
*/
|
|
4732
|
+
/** Get a user's currently-live stories. */
|
|
4732
4733
|
stories(username: string): Promise<Paginated<Media>>;
|
|
4733
|
-
/**
|
|
4734
|
-
* Get a user's story highlights.
|
|
4735
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4736
|
-
*/
|
|
4734
|
+
/** Get a user's story highlights. */
|
|
4737
4735
|
highlights(username: string): Promise<Paginated<Highlight>>;
|
|
4738
4736
|
private media;
|
|
4739
4737
|
}
|
|
@@ -4770,33 +4768,21 @@ declare class MediaClient$3 {
|
|
|
4770
4768
|
* @param code - The media shortcode (from the `/p/<code>/` URL).
|
|
4771
4769
|
*/
|
|
4772
4770
|
get(code: string): Promise<Media>;
|
|
4773
|
-
/**
|
|
4774
|
-
* Get oEmbed metadata for a media permalink.
|
|
4775
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4776
|
-
*/
|
|
4771
|
+
/** Get oEmbed metadata for a media permalink. */
|
|
4777
4772
|
oembed(code: string): Promise<Oembed>;
|
|
4778
4773
|
/** Get top-level comments on a media. */
|
|
4779
4774
|
comments(code: string, options?: {
|
|
4780
4775
|
amount?: number;
|
|
4781
4776
|
cursor?: string;
|
|
4782
4777
|
}): Promise<Paginated<Comment$1>>;
|
|
4783
|
-
/**
|
|
4784
|
-
* Get the users who liked a media.
|
|
4785
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4786
|
-
*/
|
|
4778
|
+
/** Get the users who liked a media. */
|
|
4787
4779
|
likers(code: string): Promise<Paginated<UserShort>>;
|
|
4788
|
-
/**
|
|
4789
|
-
* Get replies to a comment.
|
|
4790
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4791
|
-
*/
|
|
4780
|
+
/** Get replies to a comment. */
|
|
4792
4781
|
replies(code: string, commentId: string, options?: {
|
|
4793
4782
|
amount?: number;
|
|
4794
4783
|
cursor?: string;
|
|
4795
4784
|
}): Promise<Paginated<Comment$1>>;
|
|
4796
|
-
/**
|
|
4797
|
-
* Get the users who liked a comment.
|
|
4798
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4799
|
-
*/
|
|
4785
|
+
/** Get the users who liked a comment. */
|
|
4800
4786
|
commentLikers(code: string, commentId: string): Promise<Paginated<UserShort>>;
|
|
4801
4787
|
}
|
|
4802
4788
|
|
|
@@ -4825,40 +4811,19 @@ declare class MediaClient$3 {
|
|
|
4825
4811
|
declare class SearchClient$f {
|
|
4826
4812
|
private readonly client;
|
|
4827
4813
|
constructor(client: BaseClient);
|
|
4828
|
-
/**
|
|
4829
|
-
* Search accounts by name/username.
|
|
4830
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4831
|
-
*/
|
|
4814
|
+
/** Search accounts by name/username. */
|
|
4832
4815
|
users(query: string): Promise<Paginated<UserShort>>;
|
|
4833
|
-
/**
|
|
4834
|
-
* Search hashtags.
|
|
4835
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4836
|
-
*/
|
|
4816
|
+
/** Search hashtags. */
|
|
4837
4817
|
hashtags(query: string): Promise<Paginated<Hashtag>>;
|
|
4838
|
-
/**
|
|
4839
|
-
* Search places/locations.
|
|
4840
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4841
|
-
*/
|
|
4818
|
+
/** Search places/locations (global ranking). */
|
|
4842
4819
|
places(query: string): Promise<Paginated<Location$2>>;
|
|
4843
|
-
/**
|
|
4844
|
-
* Search reels.
|
|
4845
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4846
|
-
*/
|
|
4820
|
+
/** Search reels. */
|
|
4847
4821
|
reels(query: string): Promise<Paginated<Media>>;
|
|
4848
|
-
/**
|
|
4849
|
-
* Search music/audio tracks.
|
|
4850
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4851
|
-
*/
|
|
4822
|
+
/** Search music/audio tracks. */
|
|
4852
4823
|
music(query: string): Promise<Paginated<Audio>>;
|
|
4853
|
-
/**
|
|
4854
|
-
* Get blended "top" results (users, hashtags, and places).
|
|
4855
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4856
|
-
*/
|
|
4824
|
+
/** Get blended "top" results (users, hashtags, and places). */
|
|
4857
4825
|
top(query: string): Promise<SearchTopResponse>;
|
|
4858
|
-
/**
|
|
4859
|
-
* Get typeahead/autocomplete suggestions (mixed entity types).
|
|
4860
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4861
|
-
*/
|
|
4826
|
+
/** Get typeahead/autocomplete suggestions (mixed entity types). */
|
|
4862
4827
|
autocomplete(query: string): Promise<SearchTopResponse>;
|
|
4863
4828
|
}
|
|
4864
4829
|
|
|
@@ -4873,31 +4838,19 @@ declare class SearchClient$f {
|
|
|
4873
4838
|
declare class HashtagsClient$1 {
|
|
4874
4839
|
private readonly client;
|
|
4875
4840
|
constructor(client: BaseClient);
|
|
4876
|
-
/**
|
|
4877
|
-
* Get a hashtag's info (media count, cover).
|
|
4878
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4879
|
-
*/
|
|
4841
|
+
/** Get a hashtag's info (media count, cover). */
|
|
4880
4842
|
get(tag: string): Promise<Hashtag>;
|
|
4881
|
-
/**
|
|
4882
|
-
* Get the top/popular media for a hashtag.
|
|
4883
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4884
|
-
*/
|
|
4843
|
+
/** Get the top/popular media for a hashtag. */
|
|
4885
4844
|
top(tag: string, options?: {
|
|
4886
4845
|
amount?: number;
|
|
4887
4846
|
cursor?: string;
|
|
4888
4847
|
}): Promise<Paginated<Media>>;
|
|
4889
|
-
/**
|
|
4890
|
-
* Get the most recent media for a hashtag.
|
|
4891
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4892
|
-
*/
|
|
4848
|
+
/** Get the most recent media for a hashtag. */
|
|
4893
4849
|
recent(tag: string, options?: {
|
|
4894
4850
|
amount?: number;
|
|
4895
4851
|
cursor?: string;
|
|
4896
4852
|
}): Promise<Paginated<Media>>;
|
|
4897
|
-
/**
|
|
4898
|
-
* Get reels for a hashtag.
|
|
4899
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4900
|
-
*/
|
|
4853
|
+
/** Get reels for a hashtag. */
|
|
4901
4854
|
reels(tag: string, options?: {
|
|
4902
4855
|
amount?: number;
|
|
4903
4856
|
cursor?: string;
|
|
@@ -4907,54 +4860,33 @@ declare class HashtagsClient$1 {
|
|
|
4907
4860
|
declare class LocationsClient {
|
|
4908
4861
|
private readonly client;
|
|
4909
4862
|
constructor(client: BaseClient);
|
|
4910
|
-
/**
|
|
4911
|
-
* Get a location's info.
|
|
4912
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4913
|
-
*/
|
|
4863
|
+
/** Get a location's info. */
|
|
4914
4864
|
get(pk: string): Promise<Location$2>;
|
|
4915
|
-
/**
|
|
4916
|
-
* Get the top/popular media for a location.
|
|
4917
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4918
|
-
*/
|
|
4865
|
+
/** Get the top/popular media for a location. */
|
|
4919
4866
|
top(pk: string, options?: {
|
|
4920
4867
|
amount?: number;
|
|
4921
4868
|
cursor?: string;
|
|
4922
4869
|
}): Promise<Paginated<Media>>;
|
|
4923
|
-
/**
|
|
4924
|
-
* Get the most recent media for a location.
|
|
4925
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4926
|
-
*/
|
|
4870
|
+
/** Get the most recent media for a location. */
|
|
4927
4871
|
recent(pk: string, options?: {
|
|
4928
4872
|
amount?: number;
|
|
4929
4873
|
cursor?: string;
|
|
4930
4874
|
}): Promise<Paginated<Media>>;
|
|
4931
|
-
/**
|
|
4932
|
-
* Search locations by name.
|
|
4933
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4934
|
-
*/
|
|
4875
|
+
/** Search locations by name. */
|
|
4935
4876
|
search(query: string): Promise<Paginated<Location$2>>;
|
|
4936
4877
|
}
|
|
4937
4878
|
/** Client for Instagram audio/music endpoints. */
|
|
4938
4879
|
declare class AudioClient {
|
|
4939
4880
|
private readonly client;
|
|
4940
4881
|
constructor(client: BaseClient);
|
|
4941
|
-
/**
|
|
4942
|
-
* Get an audio track's info.
|
|
4943
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4944
|
-
*/
|
|
4882
|
+
/** Get an audio track's info. */
|
|
4945
4883
|
get(audioId: string): Promise<Audio>;
|
|
4946
|
-
/**
|
|
4947
|
-
* Get media that use an audio track.
|
|
4948
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4949
|
-
*/
|
|
4884
|
+
/** Get media that use an audio track. */
|
|
4950
4885
|
media(audioId: string, options?: {
|
|
4951
4886
|
amount?: number;
|
|
4952
4887
|
cursor?: string;
|
|
4953
4888
|
}): Promise<Paginated<Media>>;
|
|
4954
|
-
/**
|
|
4955
|
-
* Get currently-trending audio tracks.
|
|
4956
|
-
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4957
|
-
*/
|
|
4889
|
+
/** Get currently-trending audio tracks. */
|
|
4958
4890
|
trending(): Promise<Paginated<Audio>>;
|
|
4959
4891
|
}
|
|
4960
4892
|
|