ChinaValidate
On this pageRequestExampleResponseErrors and billing

Business license recognition

Extract registered fields from a Chinese business license image, along with available confidence scores and image coordinates.

POST/v1/business-licenses/recognize
Get API key

Request

Per call · USD
Chinese
US$0.04
Other languages
US$0.05

Headers

NameRequiredDescription
AuthorizationYesBearer YOUR_API_KEY
Content-TypeYesapplication/jsonor application/octet-stream

JSON body

FieldTypeRequiredDescription
image_urlstringNoPublicly accessible image URL. Use this or a binary body, not both.
languagestringNoResponse language. Default zh-CN.
Supported languages (22)
  • Englishen
  • Españoles
  • Português (Brasil)pt-BR
  • 日本語ja
  • 한국어ko
  • Русскийru
  • Deutschde
  • Françaisfr
  • Tiếng Việtvi
  • Bahasa Indonesiaid
  • ไทยth
  • हिन्दीhi
  • Polskipl
  • Українськаuk
  • Italianoit
  • Türkçetr
  • Bahasa Melayums
  • 简体中文zh-CN
  • العربيةar
  • Češtinacs
  • Nederlandsnl
  • 繁體中文zh-TW
Responses in other languages may take slightly longer.

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
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.

FieldTypeRequiredDescription
dataobjectYesOriginal result. Use the Chinese legal company name from data in subsequent requests that require it.
translationobjectNoComplete 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
FieldDescription
algorithm_versionAlgorithm version. Original value is preserved.
angleAngle. Original value is preserved.
fieldsValues recognized on the business license.
fields.titleTitle. Original value is preserved.
fields.company_nameThe company’s registered name.
fields.unified_social_credit_codeThe company’s Unified Social Credit Code, returned as a string.
fields.company_typeCompany type.
fields.business_addressBusiness address.
fields.legal_representativeThe company’s recorded legal representative.
fields.business_scopeThe company’s registered scope of business.
fields.registered_capitalThe stated registered capital.
fields.registration_dateThe recorded registration date.
fields.validity_periodValidity period.
fields.valid_from_dateValid from date.
fields.valid_to_dateValid to date.
fields.issue_dateIssue date.
fields.company_formCompany form.
field_detailsAvailable recognition confidence and positions for individual fields.
field_details.[].field_nameField name.
field_details.[].valueValue.
field_details.[].field_name_confidenceRecognition confidence for the field name.
field_details.[].value_confidenceRecognition confidence for the field value.
field_details.[].value_positionsImage coordinates for the recognized field value.
field_details.[].value_positions.[].xX.
field_details.[].value_positions.[].yY.
document_boundsDocument bounds. Original value is preserved.
document_bounds.x0X0. Original value is preserved.
document_bounds.y0Y0. Original value is preserved.
document_bounds.x1X1. Original value is preserved.
document_bounds.y1Y1. Original value is preserved.
document_bounds.x2X2. Original value is preserved.
document_bounds.y2Y2. Original value is preserved.
document_bounds.x3X3. Original value is preserved.
document_bounds.y3Y3. Original value is preserved.
copy_typeCopy type. Original value is preserved.
heightThe image height in pixels.
widthThe image width in pixels.
original_heightOriginal height. Original value is preserved.
original_widthOriginal width. Original value is preserved.
figuresFigures. Original value is preserved.
figures.[].typeType. Original value is preserved.
figures.[].xX. Original value is preserved.
figures.[].yY. Original value is preserved.
figures.[].widthWidth. Original value is preserved.
figures.[].heightHeight. Original value is preserved.
figures.[].boxBox. Original value is preserved.
figures.[].box.xX. Original value is preserved.
figures.[].box.yY. Original value is preserved.
figures.[].box.widthWidth. Original value is preserved.
figures.[].box.heightHeight. Original value is preserved.
figures.[].box.angleAngle. Original value is preserved.
figures.[].pointsPoints. Original value is preserved.
figures.[].points.[].xX. Original value is preserved.
figures.[].points.[].yY. Original value is preserved.
Sample response · en · 200 OK
{
  "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.

HTTPAction
400 / 413 / 415 / 422Correct the input, format or size before resending the request.
401 / 403Check the API key, its expiration date and your account status.
402Add API credits, then retry the request.
429Wait for the time specified in Retry-After before retrying.
500 / 502 / 503 / 504Retry if the service becomes available.

Up to 120 requests per minute per account.