🇨🇴 哥伦比亚 — 国民身份证(扩展信息)
端点
GET https://api.verifik.co/v2/co/cedula/extra
documentType=CC、documentNumber、签发日 date(DD/MM/YYYY)。也可用 POST JSON。
标头
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
参数
| name | type | required | description |
|---|---|---|---|
documentType | string | yes | 仅 CC。 |
documentNumber | string | yes | 无空格号码。 |
date | string | yes | 证件 签发日期 DD/MM/YYYY。 |
请求
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/co/cedula/extra", {
params: { documentType: "CC", documentNumber: "123456789", date: "10/10/2020" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/co/cedula/extra"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "CC", "documentNumber": "123456789", "date": "10/10/2020"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
响应
- 200
- 404
- 409
{
"data": {
"documentType": "CC",
"documentNumber": "123456789",
"fullName": "MATEO VERIFIK",
"gender": "HOMBRE",
"isAlive": true
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "August 23, 2022 11:42 AM"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "date format required: DD/MM/YYYY\n"
}
备注
date为 签发日期,非出生日期。- 可能包含敏感个人信息。