apyhub
SEO · SMART GENERATION

Extract and Translate Article Content from Web Page API

What it does

Article Translator takes a web article URL and translates the article content into a target language. Send the source url and the desired targetLanguage, and it returns the original url alongside a translated_content object.

The translated payload includes the article title, author, language, publicationName, and translated_body. That makes it useful when you need to localize news, blog posts, or knowledge-base articles while keeping the article metadata attached to the translated text.

Use Article Translator when you need to present the same article to readers in another language, feed translated content into a publishing workflow, or build a multilingual content library without manually copying text between tools.

Because the response is structured, you can store the translated body, show the translated title in your UI, and keep the publication details associated with the source article.

POST
Translate article content from a web page
http://localhost:8080/namastesumalya/translate-article-content
QUICKSTARTGUIDE

Quickstart

Translate an article by sending its URL and your target language.

curl -X POST "http://localhost:8080/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. The translated_content object includes title, author, language, publicationName, and translated_body fields.

{
  "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..."
  }
}
TRY ITLIVE · 1000 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Translates the content of an article from a web page into a target language. The request sends the article URL and the desired target language, and the response returns the source URL plus a translated article content object.

Request Body

ParameterTypeMandatoryDescription
urlStringYesThe URL of the article web page to translate.
targetLanguageStringYesThe target language for the translated content.

Response

Returns a JSON object with a url string field and a translated_content object field. The translated_content object contains translated article metadata and body content.

ParameterTypeMandatoryDescription
urlStringNoThe source article URL.
translated_contentObjectNoThe translated article content object.
translated_content.titleStringNoThe translated article title.
translated_content.authorStringNoThe article author.
translated_content.languageStringNoThe language of the translated content.
translated_content.publicationNameStringNoThe publication name.
translated_content.translated_bodyStringNoThe translated article body text.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.