- Introdução
- Consumindo a API
- Características da API
- Mensagens de Erro
- Material de Apoio
- 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
- Invoice Extraction
- License Plate Recognition
- Liveness Detection
- Liveness Streaming
- MultiAddress Parsing
- MultiPage Content Extraction
- Payment Card Extraction
- Vio Extraction
Content Extraction Distance [application/json]
POST
https://mostqiapi.com/process-text/content-extraction-distance
comparação de conteúdosimilaridade
Last modified:2024-06-14 19:52:53
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
🟢200OK
application/json
Body
result
object
required
globalDistance
number <float> | null
optional
>= 0<= 1
maxLocalDistance
number <float> | null
optional
>= 0<= 1
fields
array [object {4}] | null
optional
tables
array [object {3}] | null
optional
requestId
string
required
elapsedMilliseconds
integer
required
status
object
required
message
string | null
required
code
string
required
errors
array [object {2}] | null
required
Example
{
"result": {
"globalDistance": 1,
"maxLocalDistance": 1,
"fields": [
{
"name": "nome",
"distance": 1,
"value1": "LORENZO RIBEIRO",
"value2": ""
},
{
"name": "data_primeira_habilitacao",
"distance": 0,
"value1": "2021-06-02",
"value2": "2021-06-02"
},
{
"name": "orgao_emissor",
"distance": 0,
"value1": "ORGAO DE TRANSITO",
"value2": "ORGAO DE TRANSITO"
},
{
"name": "data_nascimento",
"distance": 0,
"value1": "2001-03-08",
"value2": "2001-03-08"
},
{
"name": "local_nascimento",
"distance": 0,
"value1": "BELO HORIZONTE / MG",
"value2": "BELO HORIZONTE / MG"
},
{
"name": "data_emissao",
"distance": 0,
"value1": "2022-06-07",
"value2": "2022-06-07"
},
{
"name": "data_validade",
"distance": 0,
"value1": "2024-12-14",
"value2": "2024-12-14"
},
{
"name": "tipo_habilitacao",
"distance": 0,
"value1": "D",
"value2": "D"
},
{
"name": "numero_espelho_frente",
"distance": 0,
"value1": "4603413290",
"value2": "4603413290"
},
{
"name": "rg",
"distance": 0,
"value1": "MG15905255",
"value2": "MG15905255"
},
{
"name": "doc",
"distance": 0,
"value1": "MG15905255 SSP MG",
"value2": "MG15905255 SSP MG"
},
{
"name": "tipo_identidade",
"distance": 0,
"value1": "RG",
"value2": "RG"
},
{
"name": "numero_identidade",
"distance": 0,
"value1": "MG15905255",
"value2": "MG15905255"
},
{
"name": "orgao_emissor_identidade",
"distance": 0,
"value1": "SSP",
"value2": "SSP"
},
{
"name": "estado_emissao_identidade",
"distance": 0,
"value1": "MG",
"value2": "MG"
},
{
"name": "cpf",
"distance": 1,
"value1": "38663431082",
"value2": ""
},
{
"name": "registro",
"distance": 1,
"value1": "76719610303",
"value2": ""
},
{
"name": "cat_hab",
"distance": 0,
"value1": "B",
"value2": "B"
},
{
"name": "nacionalidade",
"distance": 0,
"value1": "BRASILEIRO",
"value2": "BRASILEIRO"
},
{
"name": "filiacao_2",
"distance": 0,
"value1": "SERGIO MIRANDA RIBEIRO",
"value2": "SERGIO MIRANDA RIBEIRO"
},
{
"name": "filiacao_1",
"distance": 0,
"value1": "LEIA RIBEIRO",
"value2": "LEIA RIBEIRO"
},
{
"name": "numero_espelho_verso",
"distance": 0,
"value1": "4603413290",
"value2": "4603413290"
},
{
"name": "observacoes",
"distance": 0,
"value1": null,
"value2": null
},
{
"name": "local_cidade",
"distance": 0,
"value1": null,
"value2": null
},
{
"name": "local_uf",
"distance": 0,
"value1": null,
"value2": null
},
{
"name": "renach",
"distance": 0,
"value1": null,
"value2": null
},
{
"name": "codigo_seguranca",
"distance": 0,
"value1": null,
"value2": null
},
{
"name": "estado_emissor",
"distance": 0,
"value1": null,
"value2": null
}
],
"tables": [
{
"name": "tabela_categorias",
"headers": [
{
"name": "categoria"
},
{
"name": "data_inicio"
},
{
"name": "data_fim"
},
{
"name": "restricoes"
}
],
"values": []
}
]
},
"requestId": "RaEyckn8IE2Y4AavyK3cK",
"elapsedMilliseconds": 15,
"status": {
"message": "Ok",
"code": "200",
"errors": null
}
}
🟠401R117 Invalid authorization data
🔴500E100 The request could not be processed
Modified at 2024-06-14 19:52:53