Wallgone API docs

Load a page ahead of time

Load a page before readers arrive, so the first of them doesn’t wait for a slow site. Pro and Premium.

POST /v1/warmUpdated One minute to read

Loads a page into the translator’s store before readers arrive, so the first of them doesn’t wait for a slow site. Call it when you send a newsletter issue or publish a post. It answers at once and loads the page afterwards.

Links you make in the dashboard or with POST /v1/links need none of this on Pro and Premium: right after a link is made, its page is loaded and its text translated into the link’s language, so the first reader gets the translation at once. Use /v1/warm for links you sign in your own code, and to load a page again before a send.

At a glance

Method
POST
URL
https://wallgone.com/v1/warm
Plan
Pro and Premium
Answer
202 with {"queued":true}

What warming does

The translator loads both the phone and the desktop version of the page and keeps them for 24 hours. Readers who open a link to that address within that time get the stored page, translated into their language when they open it. Warming counts no translated pages, and it doesn’t report whether the load worked. An account warms up to its plan’s pages a month (1,000 on Pro, 3,000 on Premium), all on one day if it likes, and none once the month’s pages are used up. Pages of new links are translated ahead up to the same number a month, and count only when a reader opens them.

Request body

FieldRequiredValue
urlYesThe page’s full address, as for /v1/links.
countryNoTwo letters, as for /v1/links: the same country as in your links, if they carry one.

Response

Status 202:

Response
{"queued":true}

Errors

StatusCodeWhen
401unauthorizedThe API key is missing, mistyped or revoked.
403inactiveThe account is suspended.
403not_in_planThe plan doesn’t include loading pages ahead of time. Both plan checks come before the body is read.
400bad_urlurl is missing or isn’t a full address, the body wasn’t read, or the address is one the translator never loads.
400bad_countrycountry is set but isn’t two letters.
403blockedThe publisher asked not to be translated.
403over_quotaThis month’s translated pages are used up, so links open the original until the 1st.
429warm_limitThe account warmed as many pages as its plan has a month. Loading ahead starts again on the 1st.
409plan_changingThe plan started or changed in the last 30 seconds, and the translator still has the old one. Try again in 30 seconds.
502translatorThe translator couldn’t be reached or refused the request for another reason. Try again in a minute.

Example

curl
curl https://wallgone.com/v1/warm \
  -H "Authorization: Bearer wg_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://www.example.jp/news/4821",
    "country": "jp"
  }'
Was this page useful?