AI Content Translator API
API Endpoint Specifications
- Endpoint Path: /api/3/content-translator
- Type of Data: JSON & 2/minute
- Data Source: BUYFROMLO
- Request Limit: 500 request/month
- Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
AI Content Translator API Endpoint Basic Info
API Endpoint Path
required
AI Content Translator API
api/3/content-translator
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on translated content
Available API Arguments & Parameters
token
required
BUYFROMLO API token. Free and paid subscription API are available: /api/1/content-translator, and accessible to on-site APP on /app/1/content-translator as well
originalContent
required
Submit the original English content with html elements in string
title
required
Input the content title in string
description
required
Enter a short description of content in string
language
required
Input the target language in string. Current available options: japanese, russian, chinese, french
AI Content Translator API
api/3/content-translator
Code Integration and Response
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/3/content-translator"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
originalContent = ""
title = ""
description = ""
## Optional ##
language = "language"
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"originalContent":originalContent,
"title": title,
"description": description,
"language": language
}, headers=headers
)
print(response.status_code)
print(response.json())
JSON Response Sample
{
["Translated Content in List data type"],
[{
"Description Translated by BFL AI":"",
"Headline Translated by BFL AI": ""
}]
}