接口地址:https://api.uomg.com/api/image.lofter
返回格式:json/text
请求方式:get/post
请求示例:https://api.uomg.com/api/image.lofter?format=text

请求参数说明:

名称 必填 类型 说明
  format string 输出方式[json|text|images]默认为json

返回参数说明:

名称 类型 说明
  code string 返回的状态码
  data string 解析的图片信息
  msg string 返回错误提示信息!

返回示例:

{
	"code":1,
	"data":[
		"https:\/\/imglf4.nosdn.127.net\/img\/YjNkVUhieFJnMFRRelV5aFhld1NYZG1BZHpiMDNUc3ZVOHZvNm1zemJWN3RIaHF0YTE1WTNBPT0.jpg?imageView&thumbnail=1920y1280&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf3.nosdn.127.net\/img\/Mm9KQTVTN2NLSmxOdXp0Q3pRMTYycm1IakVPcERLOTNPVjRTcEJrZ2M5ZUpuMk1WMXJGNEhBPT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg",
		"https:\/\/img0.ph.126.net\/UQhSl0NAkp9wsn0keF-rLA==\/3084402794814350820.jpg",
		"https:\/\/imglf5.nosdn.127.net\/img\/VG9aM2NaMjdrT1BVQW1HbnE2bUhIUlpWYW9jZG43cEY3cWFGUlRVZ0pZVmlxaTBZdThZWTVRPT0.jpg?imageView&thumbnail=2000y1335&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf5.nosdn.127.net\/img\/MW9uQWcrU0tCTXF2MkRPRG1VcTNOVVZ0NWRRS01OY3Y3TUl0NCtwUTBiS0JVd3RUdythd0VBPT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg",
		"https:\/\/img0.ph.126.net\/UZkXTzO-A7jPMNzqA9ZAzA==\/6632491633259813254.jpg",
		"https:\/\/imglf5.nosdn.127.net\/img\/MmU4dzhkalUyS3ZaWXY3YzJxejdZNjF5c2t4UFRXTkwxRXNXbUNwdzFSYWpoM3NuSEZxbTF3PT0.jpg?imageView&thumbnail=2664y2000&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf6.nosdn.127.net\/img\/d0lIKy8yVTQvWlZta1ZLaUIzRFJUMmFQVUI3K1pIamFyOUtya2RHR0Q2eHpSKzZ6bnQySWdBPT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf3.nosdn.127.net\/img\/WGp4cXJtSnN1OFhDWUU5by91Qjh4bjBlajg3NjkrWjh2WGpsOHhYcU9NNm5EQUdIWW50OXZRPT0.jpg?imageView&thumbnail=2999y2000&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf6.nosdn.127.net\/img\/Q21GcE9CTGZVMHlRSFkyNEs5YTdmVEIzRmxWUmVqOU5DMEdCdkdnaGU1VUZsam42NzdkVEZ3PT0.jpg?imageView&thumbnail=1800y1200&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf6.nosdn.127.net\/img\/VUJCSHhudG5US3owSTJWaXFXdWpxQVhKaXpBYThHWVJkV2tlbnBnTXBOZkZ1ZmxCNWRGUXhnPT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf4.nosdn.127.net\/img\/KzNuMlRKSFVENitYYjJBYnU5Q2cwQjRjd0ljSURUWmxZeGxvWVlOYnhHZWRReFBoUVJWUXFRPT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf6.nosdn.127.net\/img\/ZWl4dnBUa0VLMzhXRThRbnV3UWlQelY1dGNPeUdQMUhib2IwOEVvTEhvUTRISnUwNmkwekV3PT0.jpg?imageView&thumbnail=3000y2000&type=jpg&quality=96&stripmeta=0&type=jpg%7Cwatermark&type=2&text=wqkgeHVlc2h1wrdBcnRvbW8gLyA3NzQzNzQ2NTUubG9mdGVyLmNvbQ==&font=bXN5aA==&gravity=southwest&dissolve=30&fontsize=680&dx=32&dy=36&stripmeta=0",
		"https:\/\/imglf5.nosdn.127.net\/img\/K0FrVGtpUSszZU1kODV6SzZUSFZaNFhGaEliU29uSmJzL3lXdUpoK3ZLdjMyNWp1OWJTRnB3PT0.jpg?imageView&thumbnail=3000y1687&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf6.nosdn.127.net\/img\/SS9DS2FDc2VlcnBaMVNoZ3Z1MGxaUEgvZ0tDVTJ1cjFBMUVSb2s3cUJtUkRBR1B1ZzJEUVpnPT0.jpg?imageView&thumbnail=3000y1487&type=jpg&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf.nosdn.127.net\/img\/NVc1cHVseFhyWFcwdHhpdjJydFRvcWJSa0NNbGlRbGN2TXNOS3NwQVdET042YmpmemdjUm5RPT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg",
		"https:\/\/imglf3.nosdn.127.net\/img\/M0VBOWp1RHZXaUttWXdJc2t2anVEMVpmMGFIalc0VTBOMWphQVluSVVEUEE5S1ZCRm45TnhnPT0.jpg?imageView&thumbnail=3000y1356&type=jpg&quality=96&stripmeta=0&type=jpg"
	]
}

服务级错误码参照(error_code):

  错误码 说明
  204201 LOFTER获取失败!

系统级错误码参照:

  错误码 说明 旧版本(resultcode)
  10001 错误的请求KEY 101
  10002 该KEY无请求权限 102
  10003 KEY过期 103
  10004 错误的OPENID 104
  10005 应用未审核超时,请提交认证 105
  10007 未知的请求源 107
  10008 被禁止的IP 108
  10009 被禁止的KEY 109
  10011 当前IP请求超过限制 111
  10012 请求超过次数限制 112
  10013 测试KEY超过请求限制 113
  10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) 114
  10020 接口异常 120
  10021 接口停用 121

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

PHP演示:


<?php
header
("Content-Type:text/html;charset=UTF-8");
date_default_timezone_set("PRC");
$result file_get_contents("https://api.uomg.com/api/image.lofter?format=text");
$arr=json_decode($result,true);
if (
$arr['code'] == 1) {
    
print_r($arr['data']);
} else {
    echo 
$arr['msg'];
}
?>