Wallgone API docs

How links open

What readers see, when a link opens another page instead, and how translated pages are counted.

Updated Four minutes to read

The reader gets the original page with its text translated in place and your bar on top. The page keeps its own layout, pictures and links.

What readers see

The bar on top shows:

  • on Pro and Premium, your logo and name after “Translated by” in the reader’s language, and on Free and Starter, Wallgone’s;
  • a switch between Original and the translation, which swaps the text on the page;
  • a menu to switch to the other languages in your dashboard settings, unless you turn it off there;
  • an Open original link to the page itself;
  • on Pro and Premium, your button, when you set one, and on Free and Starter, a Try Wallgone button.

If part of the page can’t be translated, the bar says so and that text stays in the original language. If a spending limit stops new text (a guard against abuse of public links: a day’s on Free, a month’s on paid plans), text already translated still shows, the bar offers the page in Google Translate in place of Open original, and the page isn’t counted.

When another page opens

The translator checks these cases in this order. Where the original page opens, the reader is sent there with a redirect, so the reader still gets the page:

CaseWhat opensCounted
A link with a link name, to an address the account made a link for and has since deleted.The original pageNo
A link with a link name: the address isn’t one the account ever made a link for, or no account has that name.A “This link doesn’t open a translated page” page (status 404) showing the address, with no redirect to itNo
A signed link: the signature is missing or wrong, or the signing key was rotated or revoked.The same page (status 404), with no redirectNo
The account is suspended or closed.The original pageNo
Google Safe Browsing lists the page as phishing, malware or unwanted software. This applies to every link, signed or with a link name.A “This page is blocked” page (status 403), with no redirect to the pageNo
The publisher asked us not to translate their site.The original pageNo
A domain rule says to open the original (Pro and Premium).The original pageNo
A domain rule says to use Google Translate (Pro and Premium).The page in Google Translate, in the link’s languageNo
This month’s translated pages are used up, and the page wasn’t counted today.The original pageNo
The page was already counted today in three languages other than its links’ own and your bar’s, and this is a fourth.The original pageNo
One reader’s address has opened 30 pages not yet counted today in the last minute.The original pageNo
The page can’t be loaded: an error status, a bot check, not an HTML page, larger than 3 MB, or too slow.The original pageNo
None of the above.The translated pageOnce a day

A page that wasn’t listed is checked again after a few hours, so a page that turns dangerous after you made the link is blocked on a later open. Domain rules apply to a host and its subdomains, the most specific rule wins, and a change reaches the translator within 30 seconds. A link that matches neither the link format with a name nor the signed one, or points at an address that is never loaded, answers 404 Not found.

Newsletter platforms add query parameters to every link, such as utm_source and click ids. In a link with a link name, up to 10 parameters added after the address the link was made for are ignored: the page opens and counts as that address. In a signed link, everything after sig is dropped.

Counting and limits

  • A translated page is one address in one reader language, counted once per day (UTC). Further views of it that day don’t count again, whoever opens it, on a phone or a desktop, through any country.
  • The same address in another language is another translated page.
  • On Pro and Premium, a link’s page is translated ahead right after you make it. That doesn’t count: the page counts when a reader opens it. Up to your plan’s pages a month are translated ahead (1,000 on Pro, 3,000 on Premium), all at once if you make the links at once; links made past that wait for their first reader. None are once the month’s pages are used up.
  • Views that end on the original page or in Google Translate, as in the table above, aren’t counted. Neither are calls to /v1/warm.
  • Free includes 30 translated pages a month, Starter 300, Pro 1,000 and Premium 3,000. A month is a calendar month in UTC.
  • The limit is checked when a reader opens a link. Once the month’s pages are used up, a page already counted today keeps opening translated until the day ends, and links to other pages open the original until the 1st.
  • We email the account when it reaches 80% and 100% of the month’s pages. GET /v1/usage and Dashboard → Usage show the count.

Rotating the signing key

Rotating the key stops your signed links

Rotating the link signing key in Dashboard → Developers revokes the old key. Links you signed with it in your own code stop working within 30 seconds, because the translator keeps keys in memory that long. After that, a reader sees a page with the original address and opens it from there: a leaked key can’t make wallgone.link send anyone anywhere.

Links made in the dashboard or with the API carry your link name instead of a signature, and rotating doesn’t affect them. Sign your own links again with the new key; Dashboard → Links lists the signed links it has seen with the new signature. Rotate the key only if the secret got out. When a paid plan ends, the account moves to the Free plan, and its links keep working within the Free plan’s 30 translated pages a month. When the account is closed, links made in the dashboard or with the API open the original pages, and links signed in your own code open the “This link doesn’t open a translated page” page.

Was this page useful?