- Introduction
- Consuming the API
- Characteristics
- Error Messages
- Support Material
- Authentication
- Address Parsing
- Billing/DailySummary
- Content Classification
- Content Compare
- Content Extraction
- Content Extraction Async
- Content Extraction Distance
- Content Fullreader
- Enrichment
- Facematch
- Generative Content Extraction
- Image Properties
- Image Reporting - Continuous Improvement
- License Plate Recognition
- Liveness Detection
- Liveness Streaming
- MultiAddress Parsing
- MultiPage Content Extraction
- Vio Extraction
Content Extraction Distance [application/json]
POST
https://mostqiapi.com/process-text/content-extraction-distance
en-US
Last modified:2024-06-28 12:57:07
Description of the requisition body#
Name | Type | Mandatory | Description |
---|---|---|---|
document1 | Object | Yes | Object whose type is the same as the list items result in the result of the Content Extraction route |
document2 | Object | Yes | Object whose type is the same as the list items result in the result of the Content Extraction route |
Request
Header Params
Authorization
string
required
Example:
Bearer {{bearer_token}}
Body Params application/json
document1
object
required
document2
object
required
Example
{
"document1": {},
"document2": {}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mostqiapi.com/process-text/content-extraction-distance' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"document1": {
},
"document2": {
}
}'
Responses
🟢200200 Ok Response
application/json
Body
result
object
required
globalDistance
integer
required
maxLocalDistance
integer
required
fields
array [object {4}]
required
tables
array
required
queryId
string
required
elapsedMilliseconds
integer
required
status
object
required
code
integer
required
message
string
required
Example
{
"result": {
"globalDistance": 0,
"maxLocalDistance": 0,
"fields": [
{
"name": "orgao_estado_emissor",
"distance": 0,
"value1": "PC - POLICIA CIVIL, MINAS GERAIS",
"value2": "PC - POLICIA CIVIL, MINAS GERAIS"
},
{
"name": "orgao_emissor",
"distance": 0,
"value1": "POLICIA CIVIL",
"value2": "POLICIA CIVIL"
},
{
"name": "estado_emissor",
"distance": 0,
"value1": "MG",
"value2": "MG"
},
{
"name": "analfabeto",
"distance": 0,
"value1": "UNKNOWN",
"value2": "UNKNOWN"
}
],
"tables": []
},
"queryId": "5l3vaAc1I0eNMlzATDRIP",
"elapsedMilliseconds": 36,
"status": {
"code": 200,
"message": "Ok"
}
}
🔴500500 Error Response