Reverse Text Tool

FREE

Reverse Text API Documentation

Introduction

Our Reverse Text API allows developers to integrate text reversal functionality directly into their applications. The API is simple to use, fast, and supports multiple reversal methods.

API Endpoint

POST https://api.1jiz.site/v1/reverse

Authentication

All API requests require an API key for authentication. Include your API key in the request header:

Authorization: Bearer YOUR_API_KEY

You can get your API key by contacting us at contact@1jiz.site.

Request Parameters

Parameter Type Required Description
text string Yes The text to be reversed
mode string No "chars" for character reversal (default), "words" for word order reversal
preserve_case boolean No Whether to preserve the original casing (default: false)

Example Requests

cURL

curl -X POST \
  https://api.1jiz.site/v1/reverse \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "text": "Hello World",
    "mode": "chars"
  }'

JavaScript (Fetch)

fetch('https://api.1jiz.site/v1/reverse', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    text: 'Hello World',
    mode: 'chars'
  })
})
.then(response => response.json())
.then(data => console.log(data));

Python (Requests)

import requests

url = "https://api.1jiz.site/v1/reverse"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
data = {
    "text": "Hello World",
    "mode": "chars"
}

response = requests.post(url, headers=headers, json=data)
print(response.json())

Response Format

Successful responses will return a JSON object with the following structure:

{
  "success": true,
  "result": "dlroW olleH",
  "original": "Hello World",
  "mode": "chars",
  "length": 11,
  "processing_time": 2.34
}

Rate Limits

The API is currently limited to 100 requests per hour per API key. If you need higher limits, please contact us.

Error Responses

HTTP Status Code Description
400 missing_text No text parameter provided
401 invalid_key Invalid or missing API key
429 rate_limit Rate limit exceeded
500 server_error Internal server error

Example Use Cases

Chat Application

Add a "reverse message" feature to your chat app that lets users send reversed messages for fun.

// When user clicks "Reverse" button
const reversed = await reverseTextApi(message);
sendChatMessage(reversed);

Word Puzzle Game

Create a game where players need to guess the original word from its reversed version.

// Generate puzzle
const puzzleWord = await reverseTextApi(solution);
displayPuzzle(puzzleWord);

Ready to Get Started?

Contact us at contact@1jiz.site to request your API key and start integrating text reversal into your applications today!

Request API Key