Skip to main content

์ฝœ๋กฌ๋น„์•„ ๊ฒ€์ฐฐ์ด์žฅ ์ง•๊ณ„ ๊ธฐ๋ก

API ๋ ˆํผ๋Ÿฐ์Šคโ€‹

์—”๋“œํฌ์ธํŠธโ€‹

https://api.verifik.co/v2/co/procuraduria/antecedentes

๋ณธ ์„œ๋น„์Šค๋Š” ์ฝœ๋กฌ๋น„์•„ ๊ฒ€์ฐฐ์ด์žฅ(Procuradurรญa)์— ๋“ฑ๋ก๋œ ๊ฐœ์ธ์˜ ์ง•๊ณ„ ๊ธฐ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. ๋ฌธ์„œ ์ข…๋ฅ˜์™€ ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ƒ์ž์˜ ์ด๋ฆ„๊ณผ ์ง•๊ณ„ ๊ธฐ๋ก ๋ณด์œ  ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์‘๋‹ต์—๋Š” ์ œ์žฌ(sanciones), ์‹ฌ๊ธ‰(instancias), ๋ฒ”์ฃ„(delitos), ์ž๊ฒฉ ๊ฒฐ๊ฒฉ(inhabilidades)์— ๋Œ€ํ•œ ์ƒ์„ธ ์ •๋ณด๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

ํ—ค๋”(Headers)โ€‹

์ด๋ฆ„๊ฐ’
Content-Typeapplication/json
AuthorizationBearer <token>

๋งค๊ฐœ๋ณ€์ˆ˜(Parameters)โ€‹

info

์ง€์›๋˜๋Š” ๋ฌธ์„œ ์ข…๋ฅ˜์˜ ์ „์ฒด ๋ชฉ๋ก๊ณผ ๊ฐ ์ข…๋ฅ˜๋ณ„ ํ•„์ˆ˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” Document Types ๊ฐ€์ด๋“œ๋ฅผ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”.

์ด๋ฆ„ํ˜•์‹ํ•„์ˆ˜์„ค๋ช…
documentTypestring์˜ˆ๋ฌธ์„œ ์ข…๋ฅ˜. ํ—ˆ์šฉ ๊ฐ’: CC, PEP, CE.
documentNumberstring์˜ˆ์กฐํšŒ ๋Œ€์ƒ์ž์˜ ๋ฌธ์„œ ๋ฒˆํ˜ธ. ๊ณต๋ฐฑ์ด๋‚˜ ์  ์—†์ด ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

์š”์ฒญ(Request)โ€‹

import axios from 'axios';

const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/co/procuraduria/antecedentes',
params: {documentType: 'CC', documentNumber: '123456789'},
headers: {
Accept: 'application/json',
Authorization: 'Bearer <your_token>'
}
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}

์‘๋‹ต(Response)โ€‹

{
"data": {
"documentType": "CC",
"documentNumber": "19592793",
"citizen": "JAIMER MARABITH PEREZ PEREZ",
"hasRecord": true,
"isRequired": false,
"legend": "Consulta en lรญnea de Antecedentes Disiplinarios, La Procuraduria General de la Nacion certifica Que siendo las 9:46:41 PM horas del 2/8/2022 el Seรฑor(a) JAIMER MARABITH PEREZ PEREZ identificado(a) con Cรฉdula de ciudadanรญa Nรบmero 19592793 El ciudadano si presenta antecedentes.",
"antecedentes": [
{
"sanciones": [
{
"Sancion": "PRISION",
"Termino": "78 MESES",
"Clase": "PRINCIPAL",
"Suspendida": ""
},
{
"Sancion": "INHABILIDAD PARA EL EJERCICIO DE DERECHOS Y FUNCIONES PUBLICAS",
"Termino": "78 MESES",
"Clase": "ACCESORIA",
"Suspendida": ""
}
],
"instancias": [
{
"Nombre": "PRIMERA",
"Autoridad": "JUZGADO 2 PENAL DEL CIRCUITO ESPECIALIZADO DE DESCONGESTION - SANTA MARTA (MAGDALENA)",
"Fecha providencia": "30/06/2015",
"fecha efecto Juridicos": "13/06/2016"
}
],
"delitos": [
{
"Descripcion del Delito": "HOMICIDIO (LEY 599 DE 2000)"
}
],
"inhabilidades": [
{
"Mรณdulo": "PENAL",
"Inhabilidad legal": "INHABILIDAD PARA DESEMPEร‘AR CARGOS PรšBLICO LEY 734 ART 38 NUM 1",
"Fecha de inicio": "13/06/2016",
"Fecha fin": "12/06/2026"
}
]
}
]
},
"signature": {
"dateTime": "August 2, 2022 4:46 PM",
"message": "Certified by Verifik.co"
}
}