@scrapecreators/cli 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/api-config/apis.js +223 -0
  2. package/package.json +1 -1
@@ -173,6 +173,190 @@ export const apis = [
173
173
  },
174
174
  ],
175
175
  },
176
+ {
177
+ name: "Channel Playlists",
178
+ method: "GET",
179
+ description:
180
+ "Get playlists from a YouTube channel. Can pass channelId or handle.",
181
+ fullDescription:
182
+ "Fetches playlists from a YouTube channel's Playlists tab, including playlist ID, title, thumbnail, video count, channel info, playlist URL, and a continuationToken when YouTube has more results. Pass a handle or channelId for the first page, then pass continuationToken to page through more playlists.",
183
+ path: "/v1/youtube/channel/playlists",
184
+ paginationField: "continuationToken",
185
+ sampleResponse: {
186
+ success: true,
187
+ credits_remaining: 100,
188
+ playlists: [
189
+ {
190
+ type: "playlist",
191
+ id: "PLoSWVnSA9vG8hI-SUpAimvYJrPh-PRRvp",
192
+ title: "If You Survive, You Win",
193
+ thumbnail:
194
+ "https://i.ytimg.com/vi/tnTPaLOaHz8/hqdefault.jpg",
195
+ playlistUrl:
196
+ "https://www.youtube.com/playlist?list=PLoSWVnSA9vG8hI-SUpAimvYJrPh-PRRvp",
197
+ videoId: "tnTPaLOaHz8",
198
+ videoUrl: "https://www.youtube.com/watch?v=tnTPaLOaHz8",
199
+ videoCount: 4,
200
+ channel: {
201
+ id: "UCX6OQ3DkcsbYNE6H8uQQuVA",
202
+ title: "MrBeast",
203
+ handle: "MrBeast",
204
+ channelUrl: "https://www.youtube.com/@MrBeast",
205
+ },
206
+ },
207
+ ],
208
+ continuationToken: "4qmFsgLlFhIYV....",
209
+ },
210
+ params: [
211
+ {
212
+ name: "channelId",
213
+ type: "string",
214
+ description: "YouTube channel ID",
215
+ placeholder: "UCX6OQ3DkcsbYNE6H8uQQuVA",
216
+ },
217
+ {
218
+ name: "handle",
219
+ type: "string",
220
+ description: "YouTube channel handle",
221
+ placeholder: "MrBeast",
222
+ },
223
+ {
224
+ name: "continuationToken",
225
+ type: "string",
226
+ required: false,
227
+ description:
228
+ "Continuation token to get more playlists. Get 'continuationToken' from previous response.",
229
+ placeholder: "4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB",
230
+ },
231
+ ],
232
+ },
233
+ {
234
+ name: "Channel Lives",
235
+ method: "GET",
236
+ description:
237
+ "Get live streams and past streams from a YouTube channel. Can pass channelId or handle.",
238
+ fullDescription:
239
+ "Fetches live streams and past streams from a YouTube channel's Live tab, including title, URL, thumbnail, view count, publish time, duration, and a continuationToken when YouTube has more results. Pass a handle or channelId for the first page, then pass continuationToken to page through more lives.",
240
+ path: "/v1/youtube/channel/lives",
241
+ paginationField: "continuationToken",
242
+ sampleResponse: {
243
+ success: true,
244
+ credits_remaining: 100,
245
+ lives: [
246
+ {
247
+ type: "live",
248
+ id: "JpVtso3S9rM",
249
+ url: "https://www.youtube.com/watch?v=JpVtso3S9rM",
250
+ title: "IShowSpeed Live Stream",
251
+ thumbnail:
252
+ "https://i.ytimg.com/vi/JpVtso3S9rM/hqdefault.jpg",
253
+ channel: {
254
+ id: null,
255
+ title: null,
256
+ handle: null,
257
+ thumbnail: null,
258
+ },
259
+ viewCountText: "1.2M views",
260
+ viewCountInt: 1200000,
261
+ publishedTimeText: "Streamed 2 days ago",
262
+ lengthText: "2:14:52",
263
+ lengthSeconds: 8092,
264
+ badges: [],
265
+ },
266
+ ],
267
+ continuationToken: "4qmFsgLlFhIYV....",
268
+ },
269
+ params: [
270
+ {
271
+ name: "channelId",
272
+ type: "string",
273
+ description: "YouTube channel ID",
274
+ placeholder: "UCWsDFcIhY2DBi3GB5uykGXA",
275
+ },
276
+ {
277
+ name: "handle",
278
+ type: "string",
279
+ description: "YouTube channel handle",
280
+ placeholder: "IShowSpeed",
281
+ },
282
+ {
283
+ name: "continuationToken",
284
+ type: "string",
285
+ required: false,
286
+ description:
287
+ "Continuation token to get more lives. Get 'continuationToken' from previous response.",
288
+ placeholder: "4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB",
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ name: "Channel Community Posts",
294
+ method: "GET",
295
+ description:
296
+ "Get community posts from a YouTube channel. Can pass channelId or handle.",
297
+ fullDescription:
298
+ "Fetches community posts from a YouTube channel's Posts tab, including post ID, URL, content, images, attached video, like count, publish time, channel info, and a continuationToken when YouTube has more results. Pass a handle or channelId for the first page, then pass continuationToken to page through more posts.",
299
+ path: "/v1/youtube/channel/community-posts",
300
+ paginationField: "continuationToken",
301
+ sampleResponse: {
302
+ success: true,
303
+ credits_remaining: 100,
304
+ posts: [
305
+ {
306
+ id: "UgkxfMvMnSnV3Ww9HwAY2wFGmVevmhRaYAYO",
307
+ url: "https://www.youtube.com/post/UgkxfMvMnSnV3Ww9HwAY2wFGmVevmhRaYAYO",
308
+ channel: {
309
+ id: "UCX6OQ3DkcsbYNE6H8uQQuVA",
310
+ title: "MrBeast",
311
+ url: "https://www.youtube.com/@MrBeast",
312
+ handle: "MrBeast",
313
+ },
314
+ content: "New video is live",
315
+ image: "https://yt3.ggpht.com/example-image=s640-c-fcrop64",
316
+ images: ["https://yt3.ggpht.com/example-image=s640-c-fcrop64"],
317
+ likeCountText: "250K",
318
+ likeCount: 250000,
319
+ publishedTimeText: "2 days ago",
320
+ publishedTime: "2026-05-24T12:00:00.000Z",
321
+ video: {
322
+ id: "tnTPaLOaHz8",
323
+ title: "If You Survive, You Win",
324
+ thumbnail:
325
+ "https://i.ytimg.com/vi/tnTPaLOaHz8/hqdefault.jpg",
326
+ url: "https://www.youtube.com/watch?v=tnTPaLOaHz8",
327
+ viewCountText: "10M views",
328
+ viewCountInt: 10000000,
329
+ publishedTimeText: "2 days ago",
330
+ lengthText: "18:42",
331
+ lengthSeconds: 1122,
332
+ },
333
+ },
334
+ ],
335
+ continuationToken: "4qmFsgLlFhIYV....",
336
+ },
337
+ params: [
338
+ {
339
+ name: "channelId",
340
+ type: "string",
341
+ description: "YouTube channel ID",
342
+ placeholder: "UCX6OQ3DkcsbYNE6H8uQQuVA",
343
+ },
344
+ {
345
+ name: "handle",
346
+ type: "string",
347
+ description: "YouTube channel handle",
348
+ placeholder: "MrBeast",
349
+ },
350
+ {
351
+ name: "continuationToken",
352
+ type: "string",
353
+ required: false,
354
+ description:
355
+ "Continuation token to get more community posts. Get 'continuationToken' from previous response.",
356
+ placeholder: "4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB",
357
+ },
358
+ ],
359
+ },
176
360
  {
177
361
  name: "Channel Shorts",
178
362
  method: "GET",
@@ -9586,6 +9770,45 @@ export const apis = [
9586
9770
  // },
9587
9771
  // ],
9588
9772
  // },
9773
+ {
9774
+ name: "Post Transcript",
9775
+ method: "GET",
9776
+ description: "Get the transcript from a Reddit video post",
9777
+ fullDescription:
9778
+ "Gets the transcript from a Reddit video post or direct v.redd.it URL when Reddit exposes a VTT caption file. Returns the raw WebVTT in raw_vtt plus a parsed plain-text transcript. If Reddit does not expose captions for the video, transcript is null and transcriptNotAvailable is true.",
9779
+ path: "/v1/reddit/post/transcript",
9780
+ params: [
9781
+ {
9782
+ name: "url",
9783
+ type: "string",
9784
+ required: true,
9785
+ description: "Reddit post URL or direct v.redd.it video URL",
9786
+ placeholder:
9787
+ "https://www.reddit.com/r/youseeingthisshit/comments/1oiu9xm/football_nostalgiasaints_punter_head_coach_cant/",
9788
+ },
9789
+ {
9790
+ name: "language",
9791
+ type: "string",
9792
+ required: false,
9793
+ description: "2 letter language code. Defaults to en.",
9794
+ placeholder: "en",
9795
+ },
9796
+ ],
9797
+ sampleResponse: {
9798
+ success: true,
9799
+ credits_remaining: 100,
9800
+ url: "https://www.reddit.com/r/youseeingthisshit/comments/1oiu9xm/football_nostalgiasaints_punter_head_coach_cant/",
9801
+ post_id: "1oiu9xm",
9802
+ video_id: "eflpgc6r0zxf1",
9803
+ caption_url: "https://v.redd.it/eflpgc6r0zxf1/wh_ben_en.vtt",
9804
+ language: "en",
9805
+ raw_vtt:
9806
+ "WEBVTT\n\n00:00.000 --> 00:00.300\n<u>stop</u> on third down and now Barnhart I\nhanging\n\n00:00.300 --> 00:00.560\nstop <u>on</u> third down and now Barnhart I\nhanging",
9807
+ transcript:
9808
+ "stop on third down and now Barnhart I hanging spiraling punts touch back Barnhart could not pull it up short of the end zone...",
9809
+ transcriptNotAvailable: false,
9810
+ },
9811
+ },
9589
9812
  {
9590
9813
  name: "Search",
9591
9814
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrapecreators/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "CLI for the ScrapeCreators API — scrape 27+ social media platforms from the terminal",
5
5
  "type": "module",
6
6
  "bin": {