[P010]Image Search Get Image Url

post
https://connect.patsnap.com/image-search/image-upload
Try in Sandbox

Obtain the url accessible to the public network by uploading an image.

Support JPG and PNG, File size limit is 4MB .The path is valid for 9 hour and will be emptied after expiration.

Response Schema

Structure of the API response data

Field NameTypeExampleDescription
data
object-
response data
url
stringhttps://img1.baidu.com/it/u=3787347995,722716643&fm=26&fmt=auto
url
expire
integer<int32>32400
period of validity,Unit:second
status
Required
booleanfalse
Status
error_msg
stringThe request parameter format is incorrect!
Error Message
error_code
Required
integer0
Error Code

Success Response Example

Example of a successful API response

JSON
{
  "data": {
    "url": "https://img1.baidu.com/it/u=3787347995,722716643&fm=26&fmt=auto",
    "expire": 32400
  },
  "status": true,
  "error_code": 0
}

Error Codes

List of possible error codes returned by this endpoint

Business Errors

Error CodeDescription
68300004Invalid parameter!
68300005Search api failure!
68300006Analytic basic access error!
68300007Bad request!
68300008Service error, please try again later!
68300010The file does not comply with upload specifications!

Platform Errors

Error CodeDescription
67200001API call exceeds the total limit set by the platform!
67200002Quota exceeds the limit!
67200003Access token expired or authentication error!
67200004No permission or API package quota has exceeded the limit!
67200005Insufficient balance, call failed!
67200006This client has expired and call failed!
67200007Exceeded the call limit, call failed!

HTTP Status Codes

Status CodeDescription
0Success