---
title: "Extract, remove, generate or format hashtags"
method: POST
path: "/hashtag-tools.php"
tags: ["text"]
---

# Extract, remove, generate or format hashtags

`POST /hashtag-tools.php`

## Request

- Base URL: `https://mate.tools/api/v1`
- URL: `https://mate.tools/api/v1/hashtag-tools.php`
- Auth: none declared

Four modes for hashtag manipulation: extract (pull existing #tags from text with offsets), remove (strip all #tags), generate (suggest hashtags from text via stop-word-filtered word frequency), format (normalise an array of hashtag strings into camel/snake/lower style). Unicode-aware regex.

## Request body

- object
  - `mode` 'extract' | 'remove' | 'generate' | 'format', required

## Response `200`

Success

## Other responses

- `400`: Malformed request
- `413`: Request body or text exceeds 1 MB
- `429`: Rate limit exceeded (60/min, 600/hour per IP). Includes Retry-After header.

---

[API](https://skmtc.dev/mate/apis/mate-tools-api.md) · [All operations](https://skmtc.dev/mate/apis/mate-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mate/apis/mate-tools-api/revisions/874670b78962?raw)
