谷歌翻译API可以帮助用户在不同语言之间进行即时翻译,支持超过 200 种语言的互译功能。
接口亲测是可用,简单而且速度很快。专用跨境电商等业务。
接口文档:https://www.tanshuapi.com/market/detail-98
接口请求测试phthon示例:
import requests
url = "http://api.tanshuapi.com/api/translate/v1/index?key=key&type=deepl&from=&to=en&keywords="
payload={}
headers = {
'User-Agent': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
返回说明
{
"code": 1,
"msg": "操作成功",
"data": {
"text": "The data shows the annual number of foreign students in Japan from 1978 to 2021. In 2021, the total number of foreign students in Japan was 242,400, declining for two consecutive years. The statistical unit of data is: person. How many foreign students are there in Japan? In 2021, the total number of foreign students in Japan was 242,400, declining for two consecutive years; among them, the number of foreign students in higher education instit