问题
What is the meaning of all Google Translate query params?
client:t
sl:auto
tl:sk
hl:sk //language of the interface (default:en, you can try xx-bork or xx-hacker)
dt:bd
dt:ex
dt:ld
dt:md
dt:qc
dt:rw
dt:rm
dt:ss
dt:t
dt:at
dt:sw
ie:UTF-8 // encoding of the input (default: utf-8)
oe:UTF-8 // encoding of the output, the results (default: utf-8)
otf:1
srcrom:1
ssel:3
tsel:0
q:translate // query, what you type in the search box
I already discovered some of them.
回答1:
I'm developing an online translator app, and this is what I found out empirically:
sl- source language code (autofor autodetection)tl- translation languageq- source text / wordie- input encoding (a guess)oe- output encoding (a guess)dt- may be included more than once and specifies what to return in the reply.
Here are some values for dt. If the value is set, the following data will be returned:
t- translation of source textat- alternate translationsrm- transcription / transliteration of source and translated textsbd- dictionary, in case source text is one word (you get translations with articles, reverse translations, etc.)md- definitions of source text, if it's one wordss- synonyms of source text, if it's one wordex- examplesrw- See also list.dj- Json response with names. (dj=1)
回答2:
Here are a few more:
clienttprobably represents the standalone google translate web app (as opposed to a mobile app, or the widget that pops up if you google search "translate")slis source languagetlis translate language (the language you want to translate into)srcromseems to be present when the source text has no spelling suggestions
来源:https://stackoverflow.com/questions/26714426/what-is-the-meaning-of-google-translate-query-params