Recuperar conteúdos de documentos
Last updated
Last updated
document_id
inteiro
Obrigatório. O ID do documento para o qual recuperar conteúdos.
start_chunk
inteiro
O índice do bloco inicial. O padrão é 0.
end_chunk
inteiro
O índice do bloco final. O padrão é start_chunk + 20.
404
Documento não encontrado
500
Erro interno do servidor
Para documentos grandes, o conteúdo é dividido em partes. Você pode recuperar o documento completo fazendo várias solicitações:
Faça uma solicitação inicial com start_chunk=0
Use o valor de end_chunk
retornado como start_chunk
para a próxima solicitação
Continue até ter recuperado todas as partes
Este endpoint retorna o conteúdo de texto bruto de um documento, permitindo que você acesse todas as informações para processamento ou análise detalhada.
Returns the content of the document with the specified ID, along with the index of the latest retrieved chunk. Each call fetches up to 20 chunks. To get more, use the end_chunk value from the response as the start_chunk for the next call.
The ID of the document to retrieve contents for.
Indicate the starting chunk that you want to retrieve. If not specified, the default value is 0.
Indicate the ending chunk that you want to retrieve. If not specified, the default value is start_chunk + 20.