New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kick.com-api

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kick.com-api

An advanced kick.com API wrapper that allows via CLI or directly via API

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by6.67%
Maintainers
0
Weekly downloads
 
Created
Source

kick.com-api

kick.com-api is a Node.js module offering an advanced interface for interacting with Kick's API using Puppeteer. It includes extensive customization options and supports various API endpoints.

For detailed documentation on advanced usage and customization options, visit https://kickcom-api.vercel.app/.

Installation

npm install kick.com-api

Key Features

  • Comprehensive interface for multiple Kick.com API endpoints.
  • Customizable Puppeteer options for browser automation.
  • Selective field retrieval and different API version support.
  • Detailed logging for efficient debugging and error handling.

Basic Usage

First, import the KickApiWrapper and create an instance:

import { KickApiWrapper } from 'kick.com-api';

const kickApi = new KickApiWrapper();

Custom User Agent

First, import the KickApiWrapper and create an instance:

const kickApi = new KickApiWrapper({
  userAgent: 'Your Custom User Agent'
});
kickApi.fetchChannelData('username')
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Channel Data With V1

kickApi.fetchChannelData('username', 'v1', ['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Leaderboards

kickApi.fetchLeaderboards('username', ['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Live Stream Details

kickApi.fetchLiveStreamDetails('username', ['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Chatroom Settings

kickApi.fetchChatroomSettings('username', ['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Categories

kickApi.fetchCategories(['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Subcategories

kickApi.fetchSubcategories(['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

Fetching Top Categories

kickApi.fetchTopCategories(['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));
kickApi.fetchFeaturedLivestreams('en', ['field1', 'field2'])
  .then(data => console.log(data))
  .catch(error => console.error(error));

CLI Usage

CLI Usage

The kick-fetch CLI tool provides a command-line interface for interacting with the Kick.com API. Use different commands for various endpoints:

  • Fetch channel data: kick-fetch channel <username> [options]
  • Fetch leaderboards: kick-fetch leaderboards <username> [options]
  • Fetch live stream details: kick-fetch livestream <username> [options]
  • Fetch chatroom settings: kick-fetch chatroom <username> [options]
  • Fetch categories: kick-fetch categories [options]
  • Fetch subcategories: kick-fetch subcategories [options]
  • Fetch top categories: kick-fetch topcategories [options]
  • Fetch featured livestreams: kick-fetch featured [region] [options]

For CLI usage and options, refer to the tool's help:

kick-fetch --help

For detailed documentation on advanced usage and customization options, visit our online documentation.

Support

If you need help or want to report an issue, please open an issue on the project's GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc