apyhub

Extract and Translate Article Content from Web Page API

What it does

Article Translator takes a web page URL and a target language, then returns the translated article content in a structured response. Use it when you need to turn a published article into another language without rebuilding the page yourself.

Send the article URL in url and the destination language in targetLanguage. The response includes the original url plus a translated_content object with the article title, author, language, publicationName, and translated_body. That makes it straightforward to store the translated version, render it in your app, or pass it into a content workflow.

This is useful for news aggregators, multilingual publishing tools, internal knowledge bases, and reader apps that surface articles in the user's preferred language. You can translate a single article for display, cache translations for later use, or feed the translated text into downstream review and summarisation steps.

Article Translator is a good fit when the source is a public article page and you want structured translated output rather than a raw text blob.

POST
Translate article content from a web page
https://api.eu.apyverse.com/namastesumalya/translate-article-content

QUICKSTART

GUIDE

Quickstart

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..."
  }
}
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 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

ParameterTypeMandatoryDescription
urlStringYesThe URL of the article to translate.
targetLanguageStringYesThe 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.

ParameterTypeMandatoryDescription
urlStringNoThe source article URL.
translated_contentObjectNoThe translated article content object.
translated_content.titleStringNoThe translated article title.
translated_content.authorStringNoThe translated 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.