Text Toolkit API

Text Toolkit API documentation

Slugify, clean, count and summarise text

Base URL & authentication

https://text-toolkit.p.rapidapi.com

Requests are authenticated by RapidAPI. Subscribe to a plan, then send these headers with every request:

X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
X-RapidAPI-Host: text-toolkit.p.rapidapi.com
GET/v1/slugify

Convert text into a URL-safe slug.

ParameterInTypeDescription
text*querystringText to convert.

Example request

curl --request GET \
  --url 'https://text-toolkit.p.rapidapi.com/v1/slugify' \
  --header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
  --header 'X-RapidAPI-Host: text-toolkit.p.rapidapi.com'

Example response

{ "slug": "hello-world" }
POST/v1/stats

Count words and characters and estimate reading time.

ParameterInTypeDescription
text*bodystringText to analyse.

Example request

curl --request POST \
  --url 'https://text-toolkit.p.rapidapi.com/v1/stats' \
  --header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
  --header 'X-RapidAPI-Host: text-toolkit.p.rapidapi.com' \
  --header 'Content-Type: application/json' \
  --data '{ "text": ... }'

Example response

{ "words": 245, "characters": 1432, "readingTimeMinutes": 2 }