Sajad Troy

Nov 13, 2024 • 3 min read

Enhance Your Workflow with the Text Utility API Suite

The Text Utility API Suite provides developers, content creators, and marketers with a powerful set of text processing tools, including summarization, paragraph generation, title suggestions, and

Enhance Your Workflow with the Text Utility API Suite

The Text Utility API Suite is a comprehensive set of tools designed for efficient text processing, including summarization, paragraph generation, title suggestions, and social media caption creation. With its user-friendly interface, this API suite is perfect for developers, content creators, marketers, and anyone looking to streamline their text-based tasks.

Base URL

https://text-utility-api-suite.p.rapidapi.com/v1/

Endpoints Overview

1. Ping API

Endpoint: /ping
Method: GET
Description: This simple API call checks the server's availability by returning a "Hello world" message with the server status and timestamp.

Example Request

fetch("https://text-utility-api-suite.p.rapidapi.com/ping", { method: "GET", headers: { "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY", "X-RapidAPI-Host": "text-utility-api-suite.p.rapidapi.com" } })

Example Response

{ "message": "Hello world", "status": "OK", "timestamp": "2024-01-01T00:00:00Z" }


2. Paragraph Summarizer API

Endpoint: /api/paragraph/summary
Method: POST
Description: This endpoint condenses lengthy paragraphs into concise summaries. You can also adjust the tone and length of the summary according to your needs.

Parameters

  • content (string, required): The paragraph to be summarized.

  • tone (string, optional): Adjust the summary style. Options include "short", "medium", "long", "brief", or "concise". Defaults to "concise".

Example Request

fetch("https://text-utility-api-suite.p.rapidapi.com/v1/api/paragraph/summary", { method: "POST", headers: { "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY", "X-RapidAPI-Host": "text-utility-api-suite.p.rapidapi.com", "Content-Type": "application/json" }, body: JSON.stringify({ content: "Artificial intelligence (AI) refers to systems or machines that mimic human intelligence to perform tasks and can iteratively improve themselves based on the information they collect...", tone: "medium" }) })

Example Response

{ "response": "AI systems mimic human intelligence to perform tasks and improve through data collection, with applications in customer service, image recognition, and content recommendations." }


3. Paragraph Generator API

Endpoint: /api/paragraph/generate
Method: POST
Description: Generate well-structured paragraphs based on provided content, with optional customization for tone and style.

Parameters

  • content (string, required): The text to expand into a paragraph.

  • tone (string, optional): Defines the tone, such as "short", "medium", "long", "brief", "concise". Default is "concise".

  • style (string, optional): Specifies the style of the paragraph, like "formal", "friendly", "lovely", or "neutral". Default is "neutral".

Example Request

fetch("https://text-utility-api-suite.p.rapidapi.com/v1/api/paragraph/generate", { method: "POST", headers: { "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY", "X-RapidAPI-Host": "text-utility-api-suite.p.rapidapi.com", "Content-Type": "application/json" }, body: JSON.stringify({ content: "Topic or text to expand upon...", tone: "medium", // Optional tone style: "formal" // Optional style }) })

Example Response

{ "response": "Generated paragraph based on the input text." }


4. Title Generator API

Endpoint: /api/title/generate
Method: POST
Description: Generate four unique title suggestions based on your content, with customization options for tone, style, and context (such as articles, blogs, or videos).

Parameters

  • content (string, required): The main idea or topic to generate titles for.

  • tone (string, optional): The desired tone of the titles, like "informative", "casual", "motivational", etc.

  • style (string, optional): The approach of the titles, such as "catchy", "thought-provoking", "conversational", etc.

  • context (string, optional): The context for the titles (e.g., "article", "YouTube", "blog", "story").

Example Request

fetch("https://text-utility-api-suite.p.rapidapi.com/v1/api/title/generate", { method: "POST", headers: { "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY", "X-RapidAPI-Host": "text-utility-api-suite.p.rapidapi.com", "Content-Type": "application/json" }, body: JSON.stringify({ content: "The Importance of Cybersecurity in Today's Digital World", tone: "informative", style: "thought-provoking", context: "article" }) })

Example Response

{ "response": [ "Safeguarding Our Future: Why Cybersecurity Matters More Than Ever", "Cybersecurity in the Digital Age: A Necessity for All", "Protecting the Digital World: The Role of Cybersecurity Today", "Beyond Firewalls: The Growing Importance of Cybersecurity Awareness" ] }


5. Caption Generator API

Endpoint: /api/caption/generate
Method: POST
Description: Generate engaging social media captions tailored for different platforms like Instagram, LinkedIn, or Twitter.

Parameters

  • content (string, required): The main text or idea for generating the caption.

  • style (string, optional): The desired style of the caption, such as "engaging", "motivational", "funny", etc. Default is "engaging".

  • context (string, optional): The platform for the caption, such as "Instagram", "LinkedIn", "Twitter", or "Facebook". Default is "Instagram".

Example Request

fetch("https://text-utility-api-suite.p.rapidapi.com/v1/api/caption/generate", { method: "POST", headers: { "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY", "X-RapidAPI-Host": "text-utility-api-suite.p.rapidapi.com", "Content-Type": "application/json" }, body: JSON.stringify({ content: "The importance of teamwork in achieving success in any project.", style: "motivational", context: "LinkedIn" }) })

Example Response

{ "response": "Great things are never achieved alone. Teamwork is the key to success! #Teamwork #Success #Leadership" }


Error Handling

Each endpoint returns structured error responses for missing parameters or processing issues:

  • 400 Bad Request: Missing or invalid content in the request body.

  • 500 Internal Server Error: General server error or failure in content generation.


Quick Start

  1. Get an API Key: Sign up on RapidAPI to get your X-RapidAPI-Key.

  2. Use the Endpoints: Integrate the endpoints into your application by including the API key in the request headers, as demonstrated in the examples above.


Support

If you have questions or need support, visit the API documentation or contact the support team via RapidAPI.

Join Sajad on Peerlist!

Join amazing folks like Sajad and thousands of other people in tech.

Create Profile

Join with Sajad’s personal invite link.

0

3

0