分享一篇关于谷歌翻译免费调用的技巧吧
https://linux.do/t/topic/1381413

[✨AI 摘要] 由于使用谷歌翻译v2接口费用过高,作者分享了调用谷歌翻译免费接口的技巧。该方法通过curl命令实现,用户需开启国外代理。文章提供了curl命令示例,并说明了如何从返回的数组类型数据中提取翻译结果。由于该接口需国外代理,作者建议使用vercel进行域名转发。此外,作者还分享了自己开发的vscode翻译插件,方便用户进行翻译。

curl --location --request GET 'https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=en&dt=t&q = 你好 ' \
--header 'pragma: no-cache' \
--header 'priority: u=1, i' \
--header 'x-browser-channel: stable'

评论 0 条

暂无评论,来种下第一颗种子。