{"id":44742005,"url":"https://github.com/usualtool/ut-api","last_synced_at":"2026-02-15T21:10:46.747Z","repository":{"id":62549341,"uuid":"484954538","full_name":"usualtool/ut-api","owner":"usualtool","description":"Unified API extension of UT framework.","archived":false,"fork":false,"pushed_at":"2026-01-25T04:36:55.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-25T18:58:52.403Z","etag":null,"topics":["calendar","deqrcode","imgbin","ipaddress","nsfw","ocr","openapi","telephone","utsw","voice","whois"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usualtool.png","metadata":{"files":{"readme":"README.me","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T07:17:14.000Z","updated_at":"2026-01-25T04:36:58.000Z","dependencies_parsed_at":"2022-11-03T01:15:34.706Z","dependency_job_id":null,"html_url":"https://github.com/usualtool/ut-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/usualtool/ut-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usualtool%2Fut-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usualtool%2Fut-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usualtool%2Fut-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usualtool%2Fut-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usualtool","download_url":"https://codeload.github.com/usualtool/ut-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usualtool%2Fut-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29489567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","deqrcode","imgbin","ipaddress","nsfw","ocr","openapi","telephone","utsw","voice","whois"],"created_at":"2026-02-15T21:10:46.249Z","updated_at":"2026-02-15T21:10:46.741Z","avatar_url":"https://github.com/usualtool.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c?php\nrequire_once dirname(__FILE__).'/'.'autoload.php';\nuse usualtool\\Api\\Api;\n$api=new Api();\n/**\n * 敏感词图识别\n * 参数：text\n * 说明：html文本\n * 分别返回敏感词汇及敏感图地址\n */\n//echo $api-\u003eRun(\"nsfw\",\"text=\");\n/**\n * 图片文字识别\n * 参数：image\n * 说明：url地址/base64字符串。该参数传入时可为URL地址，也可以使用urlencode编码后的base64编码\n * 返回图片上文字的数组\n */\n//echo $api-\u003eRun(\"ocr\",\"image=http://frame.usualtool.com/assets/logo.png\");\n/**\n * 文字转语音\n * 参数：sex\n * 说明：性别。0为女生，1为男生\n * 参数：text\n * 说明：转译文本，限4800字内\n * 生成一个临时MP3文件，请及时储存\n */\n//echo $api-\u003eRun(\"voice\",\"sex=0\u0026text=您好\");\n/**\n * 电话号码归属地\n * 参数：phone\n * 说明：固定号码或手机号码\n * 返回地址、区号、运营商、邮编\n */\n//echo $api-\u003eRun(\"telephone\",\"phone=13800000000\");\n/**\n * 域名Whois\n * 参数：domain\n * 说明：域名\n * 返回Whois信息\n */\n//echo $api-\u003eRun(\"whois\",\"domain=baidu.com\");\n/**\n * 图片二值化\n * 参数：image\n * 说明：base64图片编码，base64编码需进行urlencode编码传递\n * 返回二值化的base64图片编码\n */\n//echo $api-\u003eRun(\"imgbin\",\"image=\".urlencode(library\\UsualToolInc\\UTInc::ImgToBase64(\"http://frame.usualtool.com/assets/logo.png\")));\n/**\n * 域名/IP地址归属\n * 参数：domain\n * 说明：域名/IP\n * 返回固定两组对比数据，物理位置、运营商、经纬度（粗略定位），择优选用\n */\n//echo $api-\u003eRun(\"ipaddress\",\"domain=aliyun.com\");\n//......不一一例举，参看官方手册\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusualtool%2Fut-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusualtool%2Fut-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusualtool%2Fut-api/lists"}