Business license recognition
Extract registered fields from a Chinese business license image, along with available confidence scores and image coordinates.
/v1/business-licenses/recognizeRequest
- Chinese
- US$0.04
- Other languages
- US$0.05
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer YOUR_API_KEY |
Content-Type | Yes | application/jsonor application/octet-stream |
JSON body
| Field | Type | Required | Description |
|---|---|---|---|
image_url | string | No | Publicly accessible image URL. Use this or a binary body, not both. |
language | string | No | Response language. Default zh-CN.Supported languages (22)
|
Send a public image URL in JSON, or send the image as the binary body. Use PNG, JPG, JPEG, BMP, GIF, TIFF or WebP, up to 10 MB. For a binary request, put language in the query string.
Example
curl -X POST 'https://api.chinavalidate.com/v1/business-licenses/recognize' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{"image_url":"https://example.com/business-license.jpg","language":"en"}'Response
A response with code 0 means the request completed. Read data for the result. Record order is preserved. When a company search has no result and returns no records or totals, data is null.
Recognized values appear under fields. Field confidence and image positions appear under field_details when available.
| Field | Type | Required | Description |
|---|---|---|---|
data | object | Yes | Original result. Use the Chinese legal company name from data in subsequent requests that require it. |
translation | object | No | Complete copy of data in the requested language, with the same fields, types and list order. Values that need no translation are copied as-is. Present for non-Chinese requests with a result. |
Data fields
| Field | Description |
|---|---|
algorithm_version | Algorithm version. Original value is preserved. |
angle | Angle. Original value is preserved. |
fields | Values recognized on the business license. |
fields.title | Title. Original value is preserved. |
fields.company_name | The company’s registered name. |
fields.unified_social_credit_code | The company’s Unified Social Credit Code, returned as a string. |
fields.company_type | Company type. |
fields.business_address | Business address. |
fields.legal_representative | The company’s recorded legal representative. |
fields.business_scope | The company’s registered scope of business. |
fields.registered_capital | The stated registered capital. |
fields.registration_date | The recorded registration date. |
fields.validity_period | Validity period. |
fields.valid_from_date | Valid from date. |
fields.valid_to_date | Valid to date. |
fields.issue_date | Issue date. |
fields.company_form | Company form. |
field_details | Available recognition confidence and positions for individual fields. |
field_details.[].field_name | Field name. |
field_details.[].value | Value. |
field_details.[].field_name_confidence | Recognition confidence for the field name. |
field_details.[].value_confidence | Recognition confidence for the field value. |
field_details.[].value_positions | Image coordinates for the recognized field value. |
field_details.[].value_positions.[].x | X. |
field_details.[].value_positions.[].y | Y. |
document_bounds | Document bounds. Original value is preserved. |
document_bounds.x0 | X0. Original value is preserved. |
document_bounds.y0 | Y0. Original value is preserved. |
document_bounds.x1 | X1. Original value is preserved. |
document_bounds.y1 | Y1. Original value is preserved. |
document_bounds.x2 | X2. Original value is preserved. |
document_bounds.y2 | Y2. Original value is preserved. |
document_bounds.x3 | X3. Original value is preserved. |
document_bounds.y3 | Y3. Original value is preserved. |
copy_type | Copy type. Original value is preserved. |
height | The image height in pixels. |
width | The image width in pixels. |
original_height | Original height. Original value is preserved. |
original_width | Original width. Original value is preserved. |
figures | Figures. Original value is preserved. |
figures.[].type | Type. Original value is preserved. |
figures.[].x | X. Original value is preserved. |
figures.[].y | Y. Original value is preserved. |
figures.[].width | Width. Original value is preserved. |
figures.[].height | Height. Original value is preserved. |
figures.[].box | Box. Original value is preserved. |
figures.[].box.x | X. Original value is preserved. |
figures.[].box.y | Y. Original value is preserved. |
figures.[].box.width | Width. Original value is preserved. |
figures.[].box.height | Height. Original value is preserved. |
figures.[].box.angle | Angle. Original value is preserved. |
figures.[].points | Points. Original value is preserved. |
figures.[].points.[].x | X. Original value is preserved. |
figures.[].points.[].y | Y. Original value is preserved. |
{
"code": 0,
"msg": "ok",
"data": {
"algorithm_version": "1.0.0",
"angle": 0,
"fields": {
"title": "营业执照",
"company_name": "苏州示例精密制造有限公司",
"unified_social_credit_code": "91320505MA00000005",
"company_type": "有限责任公司",
"business_address": "江苏省苏州市高新区启明路88号",
"legal_representative": "陈晓禾",
"business_scope": "机械零部件加工及工业设备销售。",
"registered_capital": "伍佰万元整",
"registration_date": "2019-05-21",
"validity_period": "长期",
"valid_from_date": "2019-05-21",
"valid_to_date": "",
"issue_date": "2025-01-08",
"company_form": "企业法人"
},
"field_details": [
{
"field_name": "company_name",
"value": "苏州示例精密制造有限公司",
"field_name_confidence": 99,
"value_confidence": 98,
"value_positions": [
{
"x": 258,
"y": 302
},
{
"x": 538,
"y": 302
},
{
"x": 538,
"y": 331
},
{
"x": 258,
"y": 331
}
]
}
],
"document_bounds": {
"x0": 0,
"y0": 0,
"x1": 1279,
"y1": 0,
"x2": 1279,
"y2": 905,
"x3": 0,
"y3": 905
},
"copy_type": 0,
"height": 906,
"width": 1280,
"original_height": 906,
"original_width": 1280,
"figures": [
{
"type": "blicense_title",
"x": 458,
"y": 183,
"width": 369,
"height": 78,
"box": {
"x": 458,
"y": 183,
"width": 369,
"height": 78,
"angle": 0
},
"points": [
{
"x": 458,
"y": 183
},
{
"x": 827,
"y": 183
},
{
"x": 827,
"y": 261
},
{
"x": 458,
"y": 261
}
]
}
]
},
"translation": {
"algorithm_version": "1.0.0",
"angle": 0,
"fields": {
"title": "Business license",
"company_name": "Suzhou Example Precision Manufacturing Co., Ltd.",
"unified_social_credit_code": "91320505MA00000005",
"company_type": "Limited liability company",
"business_address": "No. 88 Qiming Road, High-Tech Zone, Suzhou City, Jiangsu Province",
"legal_representative": "Chen Xiaohe",
"business_scope": "Machining of mechanical components and sales of industrial equipment.",
"registered_capital": "伍佰万元整",
"registration_date": "2019-05-21",
"validity_period": "Long-term",
"valid_from_date": "2019-05-21",
"valid_to_date": "",
"issue_date": "2025-01-08",
"company_form": "Enterprise legal person"
},
"field_details": [
{
"field_name": "company_name",
"value": "Suzhou Example Precision Manufacturing Co., Ltd.",
"field_name_confidence": 99,
"value_confidence": 98,
"value_positions": [
{
"x": 258,
"y": 302
},
{
"x": 538,
"y": 302
},
{
"x": 538,
"y": 331
},
{
"x": 258,
"y": 331
}
]
}
],
"document_bounds": {
"x0": 0,
"y0": 0,
"x1": 1279,
"y1": 0,
"x2": 1279,
"y2": 905,
"x3": 0,
"y3": 905
},
"copy_type": 0,
"height": 906,
"width": 1280,
"original_height": 906,
"original_width": 1280,
"figures": [
{
"type": "blicense_title",
"x": 458,
"y": 183,
"width": 369,
"height": 78,
"box": {
"x": 458,
"y": 183,
"width": 369,
"height": 78,
"angle": 0
},
"points": [
{
"x": 458,
"y": 183
},
{
"x": 827,
"y": 183
},
{
"x": 827,
"y": 261
},
{
"x": 458,
"y": 261
}
]
}
]
}
}Errors and billing
Completed requests use API credits, including normal no-result responses and invoice mismatches. Input errors and service failures are free. Each completed request is charged separately, including a repeated request. Requests that return no results or contain no text to translate use the Chinese rate.
| HTTP | Action |
|---|---|
| 400 / 413 / 415 / 422 | Correct the input, format or size before resending the request. |
| 401 / 403 | Check the API key, its expiration date and your account status. |
| 402 | Add API credits, then retry the request. |
| 429 | Wait for the time specified in Retry-After before retrying. |
| 500 / 502 / 503 / 504 | Retry if the service becomes available. |
Up to 120 requests per minute per account.