QUICKSTART
GUIDEQuickstart
Translate an article from its source URL into your target language.
curl -X POST "https://api.eu.apyverse.com/namastesumalya/translate-article-content" \
-H 'apy-token: $APY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"url":"https://example.com/article","targetLanguage":"Spanish"}'What you'll get back
Returns a JSON object with a url string and a translated_content object. translated_content includes title, author, language, publicationName, and translated_body as strings.
{
"url": "https://example.com/article",
"translated_content": {
"title": "El futuro de la inteligencia artificial",
"author": "John Doe",
"language": "Spanish",
"publicationName": "Tech Blog",
"translated_body": "Este artículo explora cómo la inteligencia artificial está transformando los sistemas de contenido..."
}
}Loading your default key…About this endpoint
What it does
Translates the content of an article from a web page into the requested target language. The request takes the source article URL and the target language, and the response returns the original URL plus a translated_content object with the translated article details.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | The URL of the article to translate. |
| targetLanguage | String | Yes | The language to translate the article content into. |
Response
Returns a JSON object with a url string field and a translated_content object field. The translated_content object contains the translated article metadata and body text.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | The source article URL. |
| translated_content | Object | No | The translated article content object. |
| translated_content.title | String | No | The translated article title. |
| translated_content.author | String | No | The translated article author. |
| translated_content.language | String | No | The language of the translated content. |
| translated_content.publicationName | String | No | The publication name. |
| translated_content.translated_body | String | No | The translated article body text. |