hashtags

HashTags API Endpoint: Automatically generate hashtags for posts based on the most relevant keywords. Takes into account real-time hashtag popularity.

Hashtag API Endpoints

Generate hashtags for TikTok, Instagram, Facebook, Twitter, LinkedIn, and YouTube.

Premium or Business Plan required.

Click the in the endpoint to view details.

Auto Hashtags

POST https://app.ayrshare.com/api/hashtags/auto

Automatically add hashtags to your post. Maximum post length is 1,000 characters. If over limit, hashtags will not be added.

Headers

NameTypeDescription

Authorization*

string

Format: Authorization: Bearer API _KEY. See Overview for more information.

Request Body

NameTypeDescription

post*

string

Post text to add the hashtags. Max length 1,000 characters.

position

string

Values: "auto" or "end". "end" hashtags at the end of the text, "auto" hashtags anywhere in the text or at the end. Default "auto".

max

number

Integer of max number of Hashtags to add. Max value range 1 to 5. Default 2.

{
    post: "Disney’s trouble with Oswald the #LuckyRabbit is a great lesson #ForStartups in a crisis"
}

Request Examples

curl \
-H "Authorization: Bearer API_Key" \
-d '{"post": "Today is a great day!", "max": 3, "position": "auto"}'
-X POST https://app.ayrshare.com/api/hashtags/auto

Recommend Hashtags

GET https://app.ayrshare.com/api/hashtags/recommend

Get suggestions for hashtags based on a keyword. Data and view counts are generated from TikTok.

Query Parameters

NameTypeDescription

keyword*

string

A single keyword to get recommended hashtags from TikTok. Spaces in the keyword will be removed.

Headers

NameTypeDescription

Authorization*

string

Format: Authorization: Bearer API _KEY. See Overview for more information.

{
    "keyword": "apple",
    "recommendations": [
        {
            "viewCount": 71950998550, // The number of views that the recommended hashtag has received.
            "name": "apple"           // Suggested hashtag
        },
        {
            "viewCount": 6318280101,
            "name": "applewatch"
        },
        {
            "viewCount": 2486358394,
            "name": "applepencil"
        },
        {
            "viewCount": 2142842131,
            "name": "applemusic"
        },
        {
            "viewCount": 1506224079,
            "name": "applesquad"
        },
        {
            "viewCount": 1307287255,
            "name": "apples"
        },
        {
            "viewCount": 1008293028,
            "name": "applepie"
        },
        {
            "viewCount": 788388838,
            "name": "applejuice"
        },
        {
            "viewCount": 1024901638,
            "name": "appletv"
        },
        {
            "viewCount": 679033194,
            "name": "applechallenge"
        }
    ]
}

Request Examples

curl \
-H "Authorization: Bearer API_KEY" \
-X GET https://app.ayrshare.com/api/hashtags/recommend?keyword=apple

Check Banned Hashtags

GET https://app.ayrshare.com/api/hashtags/banned

A banned hashtag checker to validate if the given hashtag has been banned by Instagram or other social networks.

Headers

NameValue

Content-Type

application/json

Authorization

Bearer API_KEY

Query

NameTypeDescription

*

string

The hashtag to validate. Format: "hashtag" or "#hashtag"

Response

{
    "hashtag": "#bikinibody",
    "banned": true
}

Request Examples

curl --location --request GET 'https://app.ayrshare.com/ayrshare/api/hashtags/banned?hashtag=%23bikinibody' \
--header 'Authorization: Bearer API_KEY'

Last updated