auto-hashtag
Auto-HashTag API Endpoint: Automatically generate hashtags for posts based on the most relevant keywords. Takes into account real-time hashtag popularity.
Generate hashtags for TikTok, Instagram, Twitter, LinkedIn, and YouTube.
Premium or Business Plan required.
❗Click the › in the endpoint to view details.
post
https://app.ayrshare.com/api
/auto-hashtag
Auto Hashtags
cURL
Node.js
Python
PHP
curl \
-H "Authorization: Bearer API_Key" \
-d '{"post": "Today is a great day!", "max": 3, "position": "auto"}
-X POST https://app.ayrshare.com/api/auto-hashtag
const fetch = require("node-fetch");
const API_KEY = "API_KEY";
fetch(`https://app.ayrshare.com/api/auto-hashtag?post=${post}`, {
method: "POST",
headers: {
"Authorization": `Bearer ${API_KEY}`
},
body: JSON.stringify({
post: "Today is a great day!", // required
max: 3, // optional, range 1-5
position: "auto" // optional, "auto" or "end"
})
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {
'post': 'Today is a great day!',
'max': 3, # optional, range 1-5
'position': 'auto' # optional, 'auto' or 'end'
}
headers = {'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'}
r = requests.post('https://app.ayrshare.com/api/auto-hashtag',
json=payload,
headers=headers)
print(r.json())
<?php
require 'vendor/autoload.php';// Composer auto-loader using Guzzle. See https://docs.guzzlephp.org/en/stable/overview.html
$client = new GuzzleHttp\Client();
$res = $client->request(
'POST',
'https://app.ayrshare.com/api/auto-hashtag',
[
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer API_KEY'
],
'json' => [
'post' => 'Today is a great day!',
'max' => 3,
'position' => 'auto'
]
]
);
echo json_encode(json_decode($res->getBody()), JSON_PRETTY_PRINT);
Best Hashtags
Last modified 3mo ago