Base URL & authentication
https://text-toolkit.p.rapidapi.comRequests 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.comGET
/v1/slugifyConvert text into a URL-safe slug.
| Parameter | In | Type | Description |
|---|---|---|---|
| text* | query | string | Text 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/statsCount words and characters and estimate reading time.
| Parameter | In | Type | Description |
|---|---|---|---|
| text* | body | string | Text 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 }