@hashtags-ai/hashtag-generator
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Hashtag Generator - NPM Package

An npm package to generate hashtags using https://hashtagsai.github.io/API-Docs/

Installation

npm i @hashtags-ai/hashtag-generator

Usage

import HashtagAPI from '@hashtags-ai/hashtag-generator';

const generator = new HashtagAPI({
    apiKey: 'Your API Key',
});

Methods

Top Hashtags

generator.getTop().then((tags) => {
    console.log(tags);
})

Related Hashtags

generator.getSimilar("insta").then((tags) => {
    console.log(tags);
})

Post count for a hashtag

generator.getPostCount("insta").then((count) => {
    console.log(count);
})

Trending Hashtags

generator.getTrending().then((tags) => {
    console.log(tags);
})

Trending Hashtags by Country

generator.getTrendingByCountry("India").then((tags) => {
    console.log(tags);
})

// get a list of countries from here
generator.getCountryList().then((tags) => {
    console.log(tags);
})

Categories

generator.getCategories().then((tags) => {
    console.log(tags);
})

HashTags by Category

generator.getHashtagsByCategory(1).then((tags) => {
    console.log(tags);
})

Hashtags based on Image

generator.generateHashtagsFromImage("base64Image").then((tags) => {
    console.log(tags);
})

Package Sidebar

Install

npm i @hashtags-ai/hashtag-generator

Weekly Downloads

0

Version

2.1.1

License

MIT

Unpacked Size

14.5 kB

Total Files

15

Last publish

Collaborators

  • mukeshsolanki