VRTAPI文档

2022.7.12更新

 

IP类

GetIP

https://api.vrt.app/ip/getip/

返回Demo

127.0.0.1

Translate类

返回多个结果

https://api.vrt.app/translate/all/?word=[需要翻译的字符]
https://api.vrt.app/translate/all/?word=你今天过得好吗

返回Demo

{"status": 1, "content": {"request": "你今天过得好吗", "result": {"king": "Are you live today", "caiyun": "How Was Your Day", "youdao": "Did you have a good day today", "google": "how are you today"}}, "errmsg": "success"}

单个结果返回

https://api.vrt.app/translate/king/?word=[需要翻译的字符]
https://api.vrt.app/translate/youdao/?word=[需要翻译的字符]
https://api.vrt.app/translate/google/?word=[需要翻译的字符]
https://api.vrt.app/translate/caiyun/?word=[需要翻译的字符]

Bing类

跳转每日图片

https://api.vrt.app/bing/

返回Demo

https://s.cn.bing.net/th?id=OHR.SpiralHill_ZH-CN3829252235_1920x1080.jpg

Json形式返回

https://api.vrt.app/bing/?result=json

返回Demo

{"status": 1, "content": {"title": "悉尼奥林匹克公园里的湾标瞭望台,澳大利亚", "url": "https://s.cn.bing.net/th?id=OHR.SpiralHill_ZH-CN3829252235_1920x1080.jpg", "date": "2022-07-12"}, "errmsg": "success"}

Video类

DY Json返回

https://api.vrt.app/video/douyin/?share=[19位视频分享链接]&result=json
https://api.vrt.app/video/douyin/?share=7119324501048839431&result=json

返回Demo

{"status": 1, "content": {"title": "人民日报-这幕看得紧张也心疼!电力工人高空作业间隙“悬空”休息。网友:他们的脚下是我们的万家灯火,辛苦了!-7119324501048839431", "video_url": "https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fg10000cb6enkbc77u63s4hlil0&ratio=720p&line=0"}, "errmsg": "success"}

DY直接返回视频

https://api.vrt.app/video/douyin/?share=[19位视频分享链接]
https://api.vrt.app/video/douyin/?share=7119324501048839431

返回Demo

https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fg10000cb6enkbc77u63s4hlil0&ratio=720p&line=0

Other类

二维码生成

https://api.vrt.app/other/qrcode/?word=[需要生成二维码的字符]
https://api.vrt.app/other/qrcode/?word=你今天过得好吗

返回Demo

点赞
  1. aa说道:

    翻译api可以支持post模式吗 翻译几百字现有方式不方便

    1. YinHe YinHe说道:

      可以,放在下一期
      计划就是post请求,后来考虑到部分人使用的便捷性才用的get

    2. YinHe YinHe说道:

      已支持

  2. 意面说道:

    请问访问频率这块咋解决呢

  3. 小丑说道:

    大佬,你这个翻译api真是骚,有字数和请求限制么,最好备注下

    1. YinHe YinHe说道:

      字数为各接口官方最大字数,服务器抗得了就没请求限制

回复 YinHe 取消回复

电子邮件地址不会被公开。必填项已用 * 标注