POST /translator/translate/markdown

Translate Markdown

Translate Markdown content while preserving formatting, links, code blocks, and structure.

Translation API

Translate Markdown content while preserving all formatting syntax including headings, bold, italic, links, code blocks, lists, and tables. Only the readable text is translated.

HTTP Request

1
POST /translator/translate/markdown

Parameters

ParameterTypeRequiredDefaultDescription
sourcestringNo"auto"Source language code. Use auto for automatic detection
targetstringYesTarget language code

Request Body

Send the Markdown content as the raw request body with Content-Type: text/plain.

1
2
3
4
5
6
7
8
9
# Getting Started

Welcome to the **API documentation**. Follow these steps:

1. Create an account
2. Generate your API key
3. Make your first request

> Note: All endpoints require authentication.

Response

1
2
3
4
5
6
7
8
{
  "status": true,
  "data": {
    "translated_markdown": "# Primeros Pasos\n\nBienvenido a la **documentacion de la API**. Siga estos pasos:\n\n1. Cree una cuenta\n2. Genere su clave API\n3. Realice su primera solicitud\n\n> Nota: Todos los endpoints requieren autenticacion.",
    "source_language": "en",
    "source_language_name": "English"
  }
}

Response Fields

FieldTypeDescription
statusbooleanWhether the request was successful
data.translated_markdownstringThe translated Markdown with formatting preserved
data.source_languagestringDetected or specified source language code
data.source_language_namestringHuman-readable name of the source language

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import requests

url = "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translator/translate/markdown"

querystring = {
    "source": "auto",
    "target": "de"
}

payload = """# Getting Started

Welcome to the **API documentation**. Follow these steps:

1. Create an account
2. Generate your API key
3. Make your first request"""

headers = {
    "Content-Type": "text/plain",
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "multi-format-ai-translator-the-most-complete.p.rapidapi.com"
}

response = requests.post(url, headers=headers, params=querystring, data=payload)
data = response.json()

print(data["data"]["translated_markdown"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const url = "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translator/translate/markdown";

const params = new URLSearchParams({
  source: "auto",
  target: "de",
});

const markdown = `# Getting Started

Welcome to the **API documentation**. Follow these steps:

1. Create an account
2. Generate your API key
3. Make your first request`;

const response = await fetch(`${url}?${params}`, {
  method: "POST",
  headers: {
    "Content-Type": "text/plain",
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "multi-format-ai-translator-the-most-complete.p.rapidapi.com",
  },
  body: markdown,
});

const data = await response.json();
console.log(data.data.translated_markdown);
1
2
3
4
5
6
7
curl -X POST "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translator/translate/markdown?source=auto&target=de" \
  -H "Content-Type: text/plain" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: multi-format-ai-translator-the-most-complete.p.rapidapi.com" \
  -d '# Getting Started

Welcome to the **API documentation**.'
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI