{ "openapi": "3.1.0", "info": { "title": "Interzoid Translate to Any Language API", "description": "This API translates a given text into a specified target language using advanced algorithms and natural language processing models.\nTo use this API, you need an API key. Register for an API key at [Interzoid Registration](https://www.interzoid.com/register-api-account).\nFor more information about this API, visit the [Interzoid Translate to Any Language API Documentation](https://www.interzoid.com/apis/translate-to-any).\n", "version": "1.0.0", "contact": { "name": "Interzoid Support", "url": "https://www.interzoid.com", "email": "support@interzoid.com" } }, "externalDocs": { "description": "API home page and documentation", "url": "https://www.interzoid.com/apis/translate-to-any" }, "servers": [ { "url": "https://api.interzoid.com", "description": "Production server" } ], "tags": [ { "name": "Translation", "description": "Translates text into a specified target language." } ], "paths": { "/translatetoany": { "get": { "tags": [ "Translation" ], "summary": "Translate to Any Language", "description": "This method translates a given text into the specified target language.\n**Note**: You must include your API key as the `license` parameter in the request. If you do not have an API key, you can register for one at [Interzoid Registration](https://www.interzoid.com/register-api-account).\n", "parameters": [ { "name": "license", "in": "query", "required": true, "description": "Your API license key. Register for an API key at [Interzoid Registration](https://www.interzoid.com/register-api-account).\n", "schema": { "type": "string" }, "examples": { "license": { "summary": "API Key Example", "value": "r2d7df664a7c4ef6h8k" } } }, { "name": "text", "in": "query", "required": true, "description": "The text to translate.", "schema": { "type": "string" }, "examples": { "text": { "summary": "Text Example", "value": "Hello, how are you?" } } }, { "name": "to", "in": "query", "required": true, "description": "The target language to translate into.\n", "schema": { "type": "string" }, "examples": { "target": { "summary": "Target Language Example", "value": "Spanish" } } } ], "responses": { "200": { "description": "Successful response containing the translated text.", "content": { "application/json": { "schema": { "type": "object", "properties": { "TranslatedText": { "type": "string", "description": "The translated text in the target language." }, "Credits": { "type": "integer", "description": "Remaining credits for your API license." }, "Code": { "type": "string", "description": "Execution status message." } }, "examples": [ { "summary": "Successful response example", "value": { "TranslatedText": "Hola, ¿cómo estás?", "Credits": 4999, "Code": "Success" } } ] } } } }, "400": { "description": "Bad request (e.g., missing or invalid parameters).", "content": { "application/json": { "schema": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } }, "examples": [ { "summary": "Missing or invalid parameters", "value": { "Code": 400, "Message": "Invalid license key, text, or target parameter missing." } } ] } } } }, "402": { "description": "API key not found.", "content": { "application/json": { "schema": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } }, "examples": [ { "summary": "API key not found", "value": { "Code": 402, "Message": "API key not found." } } ] } } } }, "403": { "description": "Insufficient API credits remaining.", "content": { "application/json": { "schema": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } }, "examples": [ { "summary": "Insufficient credits", "value": { "Code": 403, "Message": "Insufficient API credits remaining." } } ] } } } }, "405": { "description": "Method not allowed.", "content": { "application/json": { "schema": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } }, "examples": [ { "summary": "Wrong HTTP method", "value": { "Code": 405, "Message": "Method not allowed." } } ] } } } }, "429": { "description": "Rate limits reached.", "content": { "application/json": { "schema": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } }, "examples": [ { "summary": "Rate limit reached", "value": { "Code": 429, "Message": "Rate limits reached." } } ] } } } }, "500": { "description": "Internal server error.", "content": { "application/json": { "schema": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } }, "examples": [ { "summary": "Server error", "value": { "Code": 500, "Message": "Internal server error." } } ] } } } } } } } }, "components": { "securitySchemes": { "apiKeyAuth": { "type": "apiKey", "name": "license", "in": "query" } }, "schemas": { "ResponseError": { "type": "object", "properties": { "Code": { "type": "integer", "description": "Response code." }, "Message": { "type": "string", "description": "Error message." } } } } }, "security": [ { "apiKeyAuth": [] } ] }