Package Exports
- @hashtags-ai/hashtag-generator
- @hashtags-ai/hashtag-generator/dist/index.js
- @hashtags-ai/hashtag-generator/dist/index.m.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hashtags-ai/hashtag-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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);
})