---
description: API Endpoints that deal with Hashtags
---

# Hashtags

### Get Similar Hashtags

## Gets relevant hashtags based on the keyword provided as input

<mark style="color:blue;">`GET`</mark> `https://hashtag5.p.rapidapi.com/api/v2.1/tag/predict`

#### Query Parameters

| Name                                      | Type  | Description                                                |
| ----------------------------------------- | ----- | ---------------------------------------------------------- |
| keyword<mark style="color:red;">\*</mark> | insta | The keyword to use as a base to generate relavant hashtags |

#### Headers

| Name                                              | Type                    | Description                   |
| ------------------------------------------------- | ----------------------- | ----------------------------- |
| X-RapidAPI-Host<mark style="color:red;">\*</mark> | hashtag5.p.rapidapi.com | Should always be the host url |
| X-RapidAPI-Key<mark style="color:red;">\*</mark>  | YOUR\_API\_KEY          | Your API key                  |

{% tabs %}
{% tab title="200: OK Gets a list of similar hashtags" %}
```
{
    "tags": [
        "insta",
        "instagram",
        "instagood",
        "love",
        "instadaily",
        "follow",
        "like",
        "instalike",
        "photography",
        "photo",
        "likeforlikes",
        "photooftheday",
        "nature",
        "happy",
        "style",
        "likes",
        "life",
        "picoftheday",
        "art",
        "followforfollowback",
        "instamood",
        "model",
        "fashion",
        "india",
        "music",
        "beauty",
        "instapic",
        "cute",
        "viral",
        "selfie"
    ]
}
```
{% endtab %}
{% endtabs %}

Take a look at how you might call this method using our official libraries, or via `curl`:

{% tabs %}
{% tab title="Curl" %}
```bash
curl --request GET \
--url 'https://hashtag5.p.rapidapi.com/api/v2.1/tag/predict?keyword=insta' \
--header 'X-RapidAPI-Host: hashtag5.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_API_KEY'
```
{% endtab %}
{% endtabs %}

### Get Trending Hashtags

## Gets a list of trending hashtags

<mark style="color:blue;">`GET`</mark> `https://hashtag5.p.rapidapi.com/api/v2.1/tag/trending`

#### Headers

| Name                                              | Type                    | Description                   |
| ------------------------------------------------- | ----------------------- | ----------------------------- |
| X-RapidAPI-Host<mark style="color:red;">\*</mark> | hashtag5.p.rapidapi.com | Should always be the host url |
| X-RapidAPI-Key<mark style="color:red;">\*</mark>  | YOUR\_API\_KEY          | Your API key                  |

{% tabs %}
{% tab title="200: OK a list of trending hashtags" %}
```json
{
    "tags": [
        "love",
        "followback",
        "instagramers",
        "envywear",
        "PleaseForgiveMe",
        "tweegram",
        "photooftheday",
        "20likes",
        "amazing",
        "smile",
        "follow4follow",
        "like4like",
        "look",
        "instalike",
        "igers",
        "picoftheday",
        "food",
        "instadaily",
        "instafollow",
        "followme",
        "girl",
        "instagood",
        "bestoftheday",
        "instacool",
        "envywearco",
        "follow",
        "colorful",
        "style",
        "swag",
        "fun",
        "model",
        "pretty",
        "nature",
        "lol",
        "dog",
        "hair",
        "sunset",
        "throwbackthursday",
        "beach",
        "friends",
        "hot",
        "funny",
        "blue",
        "life",
        "art",
        "photo",
        "cool",
        "clouds",
        "fitness",
        "all_shots",
        "textgram",
        "family",
        "instago",
        "igaddict",
        "awesome",
        "girls",
        "my",
        "bored",
        "baby",
        "music",
        "red",
        "green",
        "water",
        "black",
        "party",
        "white",
        "yum",
        "flower",
        "night",
        "instalove"
    ]
}
```
{% endtab %}
{% endtabs %}

Take a look at how you might call this method using our official libraries, or via `curl`:

{% tabs %}
{% tab title="Curl" %}
```bash
curl --request GET \
--url https://hashtag5.p.rapidapi.com/api/v2.1/tag/trending \
--header 'X-RapidAPI-Host: hashtag5.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_API_KEY'
```
{% endtab %}
{% endtabs %}

### Getting Top Hashtags

## Gets Top Hashtags

<mark style="color:blue;">`GET`</mark> `https://hashtag5.p.rapidapi.com/api/v2.1/tag/top`

#### Headers

| Name                                              | Type                    | Description                   |
| ------------------------------------------------- | ----------------------- | ----------------------------- |
| X-RapidAPI-Host<mark style="color:red;">\*</mark> | hashtag5.p.rapidapi.com | Should always be the host url |
| X-RapidAPI-Key<mark style="color:red;">\*</mark>  | YOUR\_API\_KEY          | Your API key                  |

{% tabs %}
{% tab title="200: OK Top hashtags fetched successfully" %}
```json
{
    "tags": [
        "love",
        "instagood",
        "photooftheday",
        "fashion",
        "beautiful",
        "happy",
        "cute",
        "tbt",
        "like4like",
        "followme",
        "picoftheday",
        "follow",
        "me",
        "selfie",
        "summer",
        "art",
        "instadaily",
        "friends",
        "repost",
        "nature",
        "girl",
        "fun",
        "style",
        "smile",
        "food",
        "instalike",
        "family",
        "travel",
        "likeforlike",
        "fitness",
        "follow4follow",
        "igers",
        "tagsforlikes",
        "nofilter",
        "life",
        "beauty",
        "amazing",
        "instagram",
        "photography",
        "photo",
        "vscocam",
        "sun",
        "music",
        "followforfollow",
        "beach",
        "ootd",
        "bestoftheday",
        "sunset",
        "dog",
        "sky",
        "vsco",
        "l4l",
        "makeup",
        "foodporn",
        "f4f",
        "hair",
        "pretty",
        "cat",
        "model",
        "swag",
        "motivation",
        "girls",
        "party",
        "baby",
        "cool",
        "gym",
        "lol",
        "design",
        "instapic",
        "funny",
        "healthy",
        "christmas",
        "night",
        "lifestyle",
        "yummy",
        "flowers",
        "tflers",
        "hot",
        "handmade",
        "instafood",
        "wedding",
        "fit",
        "black",
        "일상",
        "pink",
        "blue",
        "workout",
        "work",
        "blackandwhite",
        "drawing",
        "inspiration",
        "holiday",
        "home",
        "london",
        "nyc",
        "sea",
        "instacool",
        "winter",
        "goodmorning",
        "blessed"
    ]
}
```
{% endtab %}
{% endtabs %}

Take a look at how you might call this method using our official libraries, or via `curl`:

{% tabs %}
{% tab title="Curl" %}
```bash
curl --request GET \
--url https://hashtag5.p.rapidapi.com/api/v2.1/tag/top \
--header 'X-RapidAPI-Host: hashtag5.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_API_KEY'
```
{% endtab %}
{% endtabs %}

### Getting Post Count

## Gets a count of how many post are present on Instagram (Not realtime)

<mark style="color:blue;">`GET`</mark> `https://hashtag5.p.rapidapi.com/api/v2.1/tag/count`

#### Query Parameters

| Name                                  | Type  | Description                    |
| ------------------------------------- | ----- | ------------------------------ |
| tag<mark style="color:red;">\*</mark> | insta | The hashtag whos count we need |

#### Headers

| Name                                              | Type                    | Description                   |
| ------------------------------------------------- | ----------------------- | ----------------------------- |
| X-RapidAPI-Host<mark style="color:red;">\*</mark> | hashtag5.p.rapidapi.com | Should always be the host url |
| X-RapidAPI-Key<mark style="color:red;">\*</mark>  | YOUR\_API\_KEY          | Your API key                  |

{% tabs %}
{% tab title="200: OK The count fetched from Instagram" %}
```json
{
    "count": 149866852
}
```
{% endtab %}
{% endtabs %}

Take a look at how you might call this method using our official libraries, or via `curl`:

{% tabs %}
{% tab title="Curl" %}
```bash
curl --request GET \
--url 'https://hashtag5.p.rapidapi.com/api/v2.1/tag/top/count?tag=insta' \
--header 'X-RapidAPI-Host: hashtag5.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_API_KEY'
```
{% endtab %}
{% endtabs %}
