# Hashtag Generator API

> Hashtag Generator creates relevant hashtags from any plain text or post caption. Pass in a text snippet to receive an array of suggested social tags, with paid plans able to customize the tag count.

**Endpoint:** `POST https://api.apiverve.com/v1/hashtaggenerator`  
**Category:** Data Generation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/hashtaggenerator

## Overview

Hashtag Generator works by analyzing the text provided and generating hashtags. It uses advanced algorithms to generate hashtags based on the text and returns a list of hashtags.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/hashtaggenerator" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Adventure awaits 🌍✈️ Who'\''s ready to embark on a journey of a lifetime? Whether you'\''re exploring exotic landscapes, immersing yourself in vibrant cultures, or simply indulging in delicious cuisines, there'\''s something magical about travel that fills the soul with joy and wonder. Let'\''s wander together and create unforgettable memories! 🌟","count":5}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to generate hashtags from |
| `count` | number | No | Number of hashtags to generate. 1 to 10). default 5. Premium field |

## Response fields

- `count` — number · Total number of hashtags generated for social content · (premium)
- `hashtags` — array · Array of generated hashtag strings optimized for engagement
  - `topicHashtags.0.hashtag` — string · The hashtag in PascalCase, with acronyms kept as the text wrote them (#AIPoweredAPI) · (premium)
  - `topicHashtags.0.phrase` — string · The topic phrase from the text that the hashtag was built from, lowercased · (premium)
  - `topicHashtags.0.relevance` — number · How central the topic is to the whole text, from 0 to 1, scored by a sentence-embedding model · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 5,
    "hashtags": [
      "#adventure",
      "#awaits",
      "#ready",
      "#embark",
      "#journey"
    ],
    "topicHashtags": [
      {
        "hashtag": "#Adventure",
        "phrase": "adventure",
        "relevance": 0.579
      },
      {
        "hashtag": "#Travel",
        "phrase": "travel",
        "relevance": 0.567
      },
      {
        "hashtag": "#Journey",
        "phrase": "journey",
        "relevance": 0.48
      },
      {
        "hashtag": "#ExoticLandscapes",
        "phrase": "exotic landscapes",
        "relevance": 0.436
      },
      {
        "hashtag": "#VibrantCultures",
        "phrase": "vibrant cultures",
        "relevance": 0.314
      }
    ]
  }
}
```

## Use cases

- **Social Post Scheduling** — Publishing platforms scan scheduled captions and suggest matching hashtags to creators before posts go live.
- **Product Tag Generation** — To boost discoverability across social channels, e-commerce stores turn product descriptions into promotional hashtags automatically upon publishing.
- **Article Cross Posting** — When syndicating blog posts, marketing dashboards extract relevant tags from article summaries to include in auto-generated promotional tweets.
- **Creator Campaign Briefs** — Marketing agencies parse campaign creative briefs into a standardized list of social tags for participating influencers to copy.

## SDKs

- **npm** — `npm install @apiverve/hashtaggenerator` (https://www.npmjs.com/package/@apiverve/hashtaggenerator)
- **PyPI** — `pip install apiverve-hashtaggenerator` (https://pypi.org/project/apiverve-hashtaggenerator/)
- **NuGet** — `dotnet add package APIVerve.API.HashtagGenerator` (https://www.nuget.org/packages/APIVerve.API.HashtagGenerator)
- **Source** — https://github.com/apiverve/hashtaggenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/hashtaggenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
