/gfycat

Node JavaScript API wrapper written in TypeScript for Gfycat.com API

Primary LanguageTypeScriptMIT LicenseMIT

⚠️ This package is deprecated.

Gfycat is shutting down on September 1, 2023.

gfycat

npm GitHub Commitizen friendly CircleCI

Unofficial Node JavaScript API wrapper written in TypeScript for Gfycat.com API. Why an unofficial SDK? The official Gfycat JavaScript client is incomplete and lacks TypeScript support.

Table of Contents

Install

This package requires Node version 14 or higher.

Install with npm

npm i gfycat

or yarn

yarn add gfycat

Usage

See examples in the examples directory.

You will need a Gfycat API client id and client secret. Follow the steps in the Gfycat API documentation to obtain a client id and client secret.

You can enable logging by setting the DEBUG environment variable to gfycat, i.e. DEBUG=gfycat or DEBUG=*.

Features

This is a work-in-progress SDK. Not all APIs are implemented. The list of documented Gfycat API endpoints can be found in the Gfycat API documentation.

Authentication

Users

User Feeds

Collections

The collections APIs are undocumented.

  • Create a collection
  • Add to a collection
  • Remove from a collection
  • Delete a collection
  • Get a user's collections
  • Get gfycats in a collection

Gfycat

Trending Feeds

Search

Contributing

This project uses commitizen and semantic-release. When committing, please use npm run commit to let commitizen create your commit.