Patent Data Search [P010]Image Search Get Image Url
[P010]Image Search Get Image UrlPublicV1
Obtain the url accessible to the public network by uploading an image.
Note: Support JPG and PNG, File size limit is 4MB .The path is valid for 9 hour and will be emptied after expiration.
Basic Information
Resource URL: /image-search/image-upload
Request Mode: post
Return Format: application/json
The API can only be called after logging in, click to log in
Try in Sandbox
Debug Here
API Description Document Download
Request Parameters
formData
Parameter | Type | Required | Description | Sample |
image | file | true | JPG,PNG | maximum 4096KB |
Request Sample
curl -X POST 'https://connect.patsnap.com/image-search/image-upload?apikey='\
-H "Authorization: Bearer {token}" \
-F 'image=@C:/Users/xxxx/Pictures/demo2.jpg'
Copy
Response Parameters
CommonResponse
Parameter | Type | Required | Description | Sample |
data | object | false | response data | no sample |
status | boolean | true | Status | false |
error_msg | string | false | Error Message | The request parameter format is incorrect! |
error_code | integer | true | Error Code | 0 |
FileUrlResponse
Parameter | Type | Required | Description | Sample |
url | string | false | url | https://img1.baidu.com/it/u=3787347995,722716643&fm=26&fmt=auto |
expire | integer | false | period of validity,Unit:second | 32400 |
Response Error Details
error_code | Description |
0 | Success |
68300004 | Invalid parameter! |
68300005 | Search api failure! |
68300006 | Analytic basic access error! |
68300007 | Bad request! |
68300008 | Service error, please try again later! |
68300010 | The file does not comply with upload specifications! |
67200001 | API call exceeds the total limit set by the platform! |
67200002 | Quota exceeds the limit! |
67200003 | Access token expired or authentication error! |
67200004 | No permission or API package quota has exceeded the limit! |
67200005 | Insufficient balance, call failed! |
67200006 | This client has expired and call failed! |
67200007 | Exceeded the call limit, call failed! |
Response Body
{
"data": {
"url": "https://img1.baidu.com/it/u=3787347995,722716643&fm=26&fmt=auto",
"expire": 32400
},
"status": true,
"error_code": 0
}
Copy
[P009]Image Search Similar Design Patent
[P009]Create Image Search Similar Design Patent V2