简介
对接18国政府数据库,验证身份证/CPF/CURP等号码真伪,1x1验证$0.05起,2x2交叉验证$0.30起,精准防范合成身份欺诈
原始描述
Integrate Didit Database Validation API to verify personal data against government databases. Use when the user wants to validate identity against government...
通过你的 Agent 添加
安装目录:didit-database-validation/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Didit Database Validation API 是一项面向拉丁美洲及西班牙市场的政府数据库身份验证服务。开发者通过 RESTful API 将用户提供的身份证信息(如秘鲁 DNI、巴西 CPF、墨西哥 CURP、西班牙 DNI 等)与官方政府及金融数据库进行实时比对,返回 full_match/partial_match/no_match 三级验证结果。
关键集成要点
- 必传字段:
id_number(自动映射各国字段)、issuing_state(ISO 3166-1 alpha-3 国家码) - 可选增强:
first_name、last_name、date_of_birth(部分国家强制要求) - 双重验证模式:1x1 单源验证($0.05 起) vs 2x2 双源交叉验证($0.30, Ecuador/Peru 支持)
- 计费机制:仅成功查询收费,数据不足时不扣费
匹配逻辑
- 姓名匹配:Levenshtein 算法,全名拼接 85% 相似度为 Full Match,单组件 70% 阈值
- ID/出生日期:精确匹配,无模糊容忍
显著优点
| 维度 | 优势 |
|---|---|
| 覆盖广度 | 18 国支持,拉美核心市场 95%+ 覆盖率 |
| 成本透明 | 阶梯定价,失败不收费,企业级成本可控 |
| 开发友好 | 统一 id_number 字段自动映射各国格式,降低多市场接入复杂度 |
| 安全合规 | 直连政府/金融数据库,非第三方缓存数据,合规基础扎实 |
| 弹性机制 | 数据缺失触发 COULD_NOT_PERFORM_DATABASE_VALIDATION 标签,补全后自动重试 |
潜在缺点与局限性
- 地理局限:仅限拉美+西班牙,亚太、北美、非洲等其他区域无覆盖
- 字段碎片化:各国
Required Input差异大(如 Brazil 仅需 CPF,Spain 需附加文档类型+有效期),需维护国家级配置表 - 2x2 覆盖窄:仅 Ecuador、Peru 支持双源交叉验证,高阶验证能力未全面铺开
- API 依赖风险:政府数据库可用性、响应延迟不可控,高峰期可能影响业务流程
- 隐私合规:处理政府级身份数据需满足各国数据本地化要求(如巴西 LGPD、墨西哥 LFPDPPP),平台方需自行评估
适合人群
- 金融科技/信贷机构:拉美市场放贷前的 KYC/身份核验
- 跨境电商平台:卖家/买家实名认证,防范虚假账户
- 共享经济服务:司机、房东等高信任场景的身份背调
- 政府及公共事业:社保、税务系统的辅助核验入口
常规风险
| 风险类型 | 说明 | 缓释建议 |
|---|---|---|
| API 密钥泄露 | x-api-key 泄露可能导致额度盗刷 |
启用 IP 白名单,轮换密钥,监控异常调用模式 |
| 数据输入错误 | 格式不符触发 400 错误,影响用户体验 | 前端强校验各国 ID 格式(如 CPF 11 位、CURP 18 位) |
| 部分匹配误判 | partial_match 需人工复核,自动化流程可能误拒 |
建立二次确认机制,结合活体检测等辅助手段 |
| 合规审查 | 政府数据库查询可能涉及敏感数据处理备案 | 事前咨询当地法律顾问,签署 DPA 协议 |
| 供应商锁定 | 深度集成后切换成本高 | 抽象验证层,保留多供应商接入能力 |
综合评价
Didit Database Validation 是拉美市场身份验证的高性价比基础设施,在政府直连数据源、失败不计费的定价策略上具有竞争力。但开发者需投入精力处理各国字段差异与合规要求,且非拉美业务需另寻替代方案。
技能正文
name: didit-database-validation description: > Integrate Didit Database Validation API to verify personal data against government databases. Use when the user wants to validate identity against government records, verify national ID numbers, check CPF/CURP/DNI/cedula numbers, perform identity database lookups, validate identity documents against official sources, or implement database verification for Latin American or Spanish identity documents using Didit. Supports 18 countries with 1x1 and 2x2 matching methods. version: 1.0.0 metadata: openclaw: requires: env: - DIDIT_API_KEY primaryEnv: DIDIT_API_KEY emoji: "🗄️" homepage: https://docs.didit.me
Didit Database Validation API
Overview
Verifies personal data and identity documents against trusted government and financial databases. Prevents synthetic identity fraud and ensures identity authenticity.
Key constraints:
- Requires at least the national ID/document number for the target country
- Coverage: 18 countries (primarily Latin America + Spain)
- Results:
full_match,partial_match, orno_match - Only charged per successful query — no charge if insufficient data
Matching methods:
| Method | Description | Starting Price |
|---|---|---|
| 1x1 | Single data source validation | $0.05 |
| 2x2 | Two data sources cross-validation | $0.30 |
API Reference: https://docs.didit.me/reference/database-validation-api
Authentication
All requests require x-api-key header. Get your key from Didit Business Console → API & Webhooks.
Endpoint
POST https://verification.didit.me/v3/database-validation/
Headers
| Header | Value | Required |
|---|---|---|
x-api-key |
Your API key | Yes |
Content-Type |
application/json |
Yes |
Body (JSON)
| Parameter | Type | Required | Description |
|---|---|---|---|
id_number |
string | Yes | Universal ID number — auto-maps to correct country field |
first_name |
string | No | First name for matching |
last_name |
string | No | Last name for matching |
date_of_birth |
string | No | DOB in YYYY-MM-DD (required for some countries) |
issuing_state |
string | No | ISO 3166-1 alpha-3 country code |
save_api_request |
boolean | No | Save in Business Console |
vendor_data |
string | No | Your identifier for session tracking |
The id_number field auto-maps to the correct country-specific field:
| Country | Mapped Field | Document | Format |
|---|---|---|---|
| ARG | document_number |
DNI | — |
| BOL | document_number |
CI | — |
| BRA | tax_number |
CPF | 11 digits |
| CHL | personal_number |
RUT | — |
| COL | personal_number |
Cedula | — |
| CRI | personal_number |
Cedula | — |
| DOM | personal_number |
Cedula | 11 digits |
| ECU | personal_number |
Cedula | 10 digits |
| ESP | personal_number |
DNI/NIE | — |
| GTM | document_number |
DPI | — |
| HND | document_number |
DNI | — |
| MEX | personal_number |
CURP | 18 chars |
| PAN | document_number |
Cedula | — |
| PER | personal_number |
DNI | 8 digits |
| PRY | document_number |
CI | — |
| SLV | document_number |
DUI | — |
| URY | personal_number |
CI | — |
| VEN | document_number |
Cedula | — |
Example
import requests
response = requests.post(
"https://verification.didit.me/v3/database-validation/",
headers={"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"id_number": "12345678",
"first_name": "Carlos",
"last_name": "Garcia",
"issuing_state": "PER",
},
)
print(response.json())
const response = await fetch("https://verification.didit.me/v3/database-validation/", {
method: "POST",
headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
id_number: "12345678",
first_name: "Carlos",
last_name: "Garcia",
issuing_state: "PER",
}),
});
Response (200 OK)
{
"request_id": "a1b2c3d4-...",
"database_validation": {
"status": "Approved",
"match_type": "full_match",
"issuing_state": "PER",
"validation_type": "1x1",
"screened_data": {
"personal_number": "12345678",
"first_name": "Carlos",
"last_name": "Garcia"
},
"validations": {
"full_name": "full_match",
"identification_number": "full_match"
}
}
}
Status Values & Handling
| Status | Meaning | Action |
|---|---|---|
"Approved" |
Full match against government records | Identity confirmed |
"Declined" |
No match found | Identity could not be verified |
"In Review" |
Partial match or insufficient data | Review screened_data and validations |
Error Responses
| Code | Meaning | Action |
|---|---|---|
400 |
Invalid request | Check ID number format for target country |
401 |
Invalid API key | Verify x-api-key header |
403 |
Insufficient credits | Top up at business.didit.me |
Matching Logic
Name Matching
| Result | Criteria |
|---|---|
| Full Match | Full name concatenation at 85% similarity (Levenshtein), OR First + Last both full match |
| Partial Match | Any single name component full match |
| No Match | No component reaches 70% similarity |
Individual name components use 70% Levenshtein threshold. Example: "Christophel" vs "Christopher" = Full Match; "Chris" vs "Christopher" = No Match.
1x1 Decision
| Match Type | Name | ID Number |
|---|---|---|
full_match |
Full Match | Full Match |
partial_match |
Partial Match | Full Match |
no_match |
All other combinations | — |
2x2 Decision
Requires matching against 2 independent data sources:
| Match Type | Condition |
|---|---|
full_match |
Both sources confirm name + ID |
partial_match |
One source confirms |
no_match |
Neither source confirms |
DOB and ID number matching is exact only — no fuzzy matching.
Warning Tags
| Tag | Description |
|---|---|
COULD_NOT_PERFORM_DATABASE_VALIDATION |
Missing required data — provide ID number, name, and country |
DATABASE_VALIDATION_PARTIAL_MATCH |
Partial match found — requires investigation |
DATABASE_VALIDATION_NO_MATCH |
No match found in government records |
When
COULD_NOT_PERFORM_DATABASE_VALIDATIONfires, session goes to "In Review". Validation auto-retriggers once missing data is provided.
Supported Countries
| Country | Method | Coverage | Required Input |
|---|---|---|---|
| Argentina | 1x1 | 95% | Document number |
| Bolivia | 1x1 | 95% | Document number + DOB |
| Brazil | 1x1 | 95% | Tax number (CPF) |
| Chile | 1x1 | 95% | Personal number (RUT) |
| Colombia | 1x1 | 95% | Document number + type |
| Costa Rica | 1x1 | 95% | Personal number |
| Dominican Republic | 1x1 | 95% | Personal number |
| Ecuador | 1x1 / 2x2 | 90-96% | Personal number |
| El Salvador | 1x1 | 95% | Document number + DOB |
| Guatemala | 1x1 | 95% | Document number |
| Honduras | 1x1 | 95% | Document number |
| Mexico | 1x1 | 95% | Personal number (CURP) |
| Panama | 1x1 | 95% | Document number + DOB |
| Paraguay | 1x1 | 95% | Document number |
| Peru | 1x1 / 2x2 | 95-99% | Personal number |
| Spain | 1x1 | 95% | Personal number + doc type + expiry |
| Uruguay | 1x1 | 95% | Personal number + DOB |
| Venezuela | 1x1 | 95% | Document number |
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。