@hashtags-ai/hashtag-generator
v2.1.1
Published
An npm package to generate hashtags for you based on the text or image you provide.
Downloads
8
Maintainers
Readme
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);
})