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- Authentication
- API key in the Authorization header
- Plan
- Pro and Premium
- Answer
202with{"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
| Field | Required | Value |
|---|---|---|
url | Yes | The page’s full address, as for /v1/links. |
country | No | Two letters, as for /v1/links: the same country as in your links, if they carry one. |
Response
Status 202:
{"queued":true}
Errors
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | The API key is missing, mistyped or revoked. |
| 403 | inactive | The account is suspended. |
| 403 | not_in_plan | The plan doesn’t include loading pages ahead of time. Both plan checks come before the body is read. |
| 400 | bad_url | url is missing or isn’t a full address, the body wasn’t read, or the address is one the translator never loads. |
| 400 | bad_country | country is set but isn’t two letters. |
| 403 | blocked | The publisher asked not to be translated. |
| 403 | over_quota | This month’s translated pages are used up, so links open the original until the 1st. |
| 429 | warm_limit | The account warmed as many pages as its plan has a month. Loading ahead starts again on the 1st. |
| 409 | plan_changing | The plan started or changed in the last 30 seconds, and the translator still has the old one. Try again in 30 seconds. |
| 502 | translator | The translator couldn’t be reached or refused the request for another reason. Try again in a minute. |
Example
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"
}'