@scrapecreators/cli 1.0.19 → 1.0.20

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.
@@ -2,11 +2,13 @@ import { tiktokBaseApis } from "./tiktok-apis.js";
2
2
  import { tiktokShopApis } from "./tiktok-shop-apis.js";
3
3
  import { instagramBaseApis } from "./instagram-apis.js";
4
4
  import { githubApis } from "./github-apis.js";
5
+ import { kwaiApis } from "./kwai-apis.js";
5
6
 
6
7
  export const apis = [
7
8
  tiktokBaseApis,
8
9
  tiktokShopApis,
9
10
  instagramBaseApis,
11
+ kwaiApis,
10
12
  {
11
13
  id: "youtube",
12
14
  name: "YouTube",
@@ -0,0 +1,182 @@
1
+ export const kwaiApis = {
2
+ id: "kwai",
3
+ name: "Kwai",
4
+ description: "Scrape Kwai profiles, posts, and user feeds",
5
+ endpoints: [
6
+ {
7
+ name: "Profile",
8
+ method: "GET",
9
+ description: "Get public Kwai profile info from a handle or profile URL.",
10
+ fullDescription:
11
+ "Fetches public Kwai profile data including username, bio, avatar, verification status, gender, and public counts. Uses Kwai's public web API endpoint, not HTML scraping.",
12
+ path: "/v1/kwai/profile",
13
+ sampleResponse: {
14
+ success: true,
15
+ credits_remaining: 100,
16
+ data: {
17
+ id: 558843093,
18
+ eid: "3xyutri4afq3qks",
19
+ handle: "KwaiBrasilOficial",
20
+ username: "Kwai Brasil Oficial",
21
+ bio: "Aqui, Geral Brilha ✨",
22
+ url: "https://www.kwai.com/@KwaiBrasilOficial",
23
+ avatar_url:
24
+ "https://ak-br-pic.kwai.net/bs2/overseaHead/20260430040305_BNTU4ODQzMDkz_s.jpg",
25
+ verified: true,
26
+ verified_description: "Conta Oficial",
27
+ verified_number: null,
28
+ gender: null,
29
+ follower_count: 1,
30
+ following_count: 1,
31
+ like_count: 17467236,
32
+ public_post_count: 3261,
33
+ private_post_count: 0,
34
+ is_private: false,
35
+ },
36
+ },
37
+ params: [
38
+ {
39
+ name: "handle",
40
+ type: "string",
41
+ description: "Kwai profile handle. Use this or url.",
42
+ placeholder: "KwaiBrasilOficial",
43
+ },
44
+ {
45
+ name: "url",
46
+ type: "string",
47
+ description: "Kwai profile URL. Use this or handle.",
48
+ placeholder: "https://www.kwai.com/@KwaiBrasilOficial",
49
+ },
50
+ ],
51
+ },
52
+ {
53
+ name: "User Posts",
54
+ method: "GET",
55
+ description: "Get public posts from a Kwai handle or profile URL.",
56
+ fullDescription:
57
+ "Fetches a paginated list of public Kwai posts for a user, including captions, media URLs, covers, counts, author info, and the next cursor when more results are available. Uses Kwai's public web API endpoint, not HTML scraping.",
58
+ path: "/v1/kwai/user/posts",
59
+ paginationField: "cursor",
60
+ sampleResponse: {
61
+ success: true,
62
+ credits_remaining: 100,
63
+ data: {
64
+ posts: [
65
+ {
66
+ id: "5193363430624671876",
67
+ photo_id: 5193363430624672000,
68
+ url: "https://www.kwai.com/@KwaiBrasilOficial/photo/5193363430624671876",
69
+ caption:
70
+ "O Marquinhos entrou em campo e realizou o maior sonho da vida da sua avó...",
71
+ created_at: "2026-06-07T03:00:00.028Z",
72
+ created_at_text: "2026-06-07 03:00:00",
73
+ video_url: "https://ak-br-cdn.kwai.net/upic/example.mp4",
74
+ cover_url: "https://ak-br-pic.kwai.net/upic/example.webp",
75
+ view_count: 12345,
76
+ like_count: 678,
77
+ comment_count: 9,
78
+ forward_count: 10,
79
+ author: {
80
+ id: 558843093,
81
+ handle: "KwaiBrasilOficial",
82
+ username: "Kwai Brasil Oficial",
83
+ avatar_url:
84
+ "https://ak-br-pic.kwai.net/bs2/overseaHead/20260430040305_BNTU4ODQzMDkz_s.jpg",
85
+ verified: true,
86
+ verified_description: "Conta Oficial",
87
+ },
88
+ music: {
89
+ id: 13337080415,
90
+ name: "",
91
+ artist: "Kwai Brasil Oficial",
92
+ url: "https://ak-br-pic.kwai.net/bs2/ost/example.m4a",
93
+ },
94
+ tags: [],
95
+ },
96
+ ],
97
+ albums: [],
98
+ cursor: "1780704000032",
99
+ has_more: true,
100
+ },
101
+ },
102
+ params: [
103
+ {
104
+ name: "handle",
105
+ type: "string",
106
+ description: "Kwai profile handle. Use this or url.",
107
+ placeholder: "KwaiBrasilOficial",
108
+ },
109
+ {
110
+ name: "url",
111
+ type: "string",
112
+ description: "Kwai profile URL. Use this or handle.",
113
+ placeholder: "https://www.kwai.com/@KwaiBrasilOficial",
114
+ },
115
+ {
116
+ name: "cursor",
117
+ type: "string",
118
+ description: "Cursor from the previous response for the next page",
119
+ placeholder: "1780704000032",
120
+ },
121
+ {
122
+ name: "count",
123
+ type: "number",
124
+ description: "Number of posts to return, max 50",
125
+ placeholder: "20",
126
+ },
127
+ ],
128
+ },
129
+ {
130
+ name: "Post",
131
+ method: "GET",
132
+ description: "Get public Kwai post details from a post URL.",
133
+ fullDescription:
134
+ "Fetches public Kwai post details including caption, media URLs, cover images, counts, author info, and music metadata. Uses Kwai's public web API endpoint, not HTML scraping.",
135
+ path: "/v1/kwai/post",
136
+ sampleResponse: {
137
+ success: true,
138
+ credits_remaining: 100,
139
+ data: {
140
+ id: "5193363430624671876",
141
+ photo_id: 5193363430624672000,
142
+ url: "https://www.kwai.com/@KwaiBrasilOficial/photo/5193363430624671876",
143
+ caption:
144
+ "O Marquinhos entrou em campo e realizou o maior sonho da vida da sua avó...",
145
+ created_at: "2026-06-07T03:00:00.028Z",
146
+ created_at_text: "2026-06-07 03:00:00",
147
+ video_url: "https://ak-br-cdn.kwai.net/upic/example.mp4",
148
+ cover_url: "https://ak-br-pic.kwai.net/upic/example.webp",
149
+ view_count: 12345,
150
+ like_count: 678,
151
+ comment_count: 9,
152
+ forward_count: 10,
153
+ author: {
154
+ id: 558843093,
155
+ handle: "KwaiBrasilOficial",
156
+ username: "Kwai Brasil Oficial",
157
+ avatar_url:
158
+ "https://ak-br-pic.kwai.net/bs2/overseaHead/20260430040305_BNTU4ODQzMDkz_s.jpg",
159
+ verified: true,
160
+ verified_description: "Conta Oficial",
161
+ },
162
+ music: {
163
+ id: 13337080415,
164
+ name: "",
165
+ artist: "Kwai Brasil Oficial",
166
+ url: "https://ak-br-pic.kwai.net/bs2/ost/example.m4a",
167
+ },
168
+ tags: [],
169
+ },
170
+ },
171
+ params: [
172
+ {
173
+ name: "url",
174
+ type: "string",
175
+ description: "Kwai post URL",
176
+ placeholder:
177
+ "https://www.kwai.com/@KwaiBrasilOficial/photo/5193363430624671876",
178
+ },
179
+ ],
180
+ },
181
+ ],
182
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrapecreators/cli",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "CLI for the ScrapeCreators API — scrape 27+ social media platforms from the terminal",
5
5
  "type": "module",
6
6
  "bin": {