Skip to main content

Hashtag group builder API

Paste hashtags or plain keywords in any shape. The builder adds the missing #, cuts tags at punctuation, drops duplicates and number-only tags, checks how many hashtags the network allows and splits the list into groups you can copy in one click.

  • Endpoint: POST https://postboost.co/app/api/tools/hashtag-group-builder (operationId buildHashtagGroups)
  • Web tool: postboost.co/tools/hashtag-group-builder
  • Token: optional (limits)
  • MCP: tool build-hashtag-groups on https://postboost.co/mcp/tools

Request​

FieldTypeDefaultDescription
textstringHashtags or words, separated by spaces, commas or new lines. A missing # is added.
networkstring: instagram, facebook, tiktok, linkedin, x, threads, bluesky, mastodon, youtube"instagram"Network whose hashtag cap applies.
group_sizeintegerHashtags per group. Default: the network's cap, or 5 when it has no hard cap.
casestring: keep, lower"keep"keep the first spelling of each hashtag, or lower-case all of them.
formatstring: inline, first_comment"inline"inline: one line of tags. first_comment: five "." lines, then the tags.

Call it​

curl -X POST https://postboost.co/app/api/tools/hashtag-group-builder \
-H 'Content-Type: application/json' \
-d '{"text":"travel, #Travel #travel_tips 2026 #photo!graphy"}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"hashtags": [
"#travel",
"#travel_tips",
"#photo"
],
"removed": [
{
"input": "#Travel",
"reason": "duplicate"
},
{
"input": "2026",
"reason": "digits_only"
}
],
"cap": 5,
"group_size": 5,
"groups": [
{
"tags": [
"#travel",
"#travel_tips",
"#photo"
],
"text": "#travel #travel_tips #photo",
"characters": 27
}
],
"over_cap": false
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Clean, dedupe and split hashtags into groups that fit a network's hashtag cap with the PostBoost build-hashtag-groups tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.