Text
Endpoints for various text manipulation functions.
Base URL
https://api.kyle.so/text/reverse
Reverses the input text (x)
GET /reverse?text=xExample:
GET /text/reverse?text=hello
Response:
{
"reversed": string,
"original": string
}Errors:
400: No text provided
/length
Returns the length of the input text (x)
GET /length?text=xExample:
GET /text/length?text=hello
Response:
{
"length": {
"characters": number,
"words": number
},
"text": string
}Errors:
400: No text provided
/uppercase
Converts the input text (x) to uppercase
GET /uppercase?text=xExample:
GET /text/uppercase?text=hello
Response:
{
"uppercase": string,
"original": string
}Errors:
400: No text provided
/lowercase
Converts the input text (x) to lowercase
GET /lowercase?text=xExample:
GET /text/lowercase?text=HELLO
Response:
{
"lowercase": string,
"original": string
}Errors:
400: No text provided
/replace
Replaces all occurrences of search with replace in the input text (x)
GET /replace?text=x&search=y&replace=zExample:
GET /text/replace?text=hello&search=he&replace=no
Response:
{
"replaced": string,
"original": string
}Errors:
400: No text provided
/lorem
Generates x words of lorem ipsum text
GET /lorem?length=xExample:
GET /text/lorem?length=10
Response:
{
"lorem": string,
"length": number
}Constraints:
0 <
x< 2000
Errors:
400: Invalid parameter
Last updated
Was this helpful?