<!-- AI ASSISTANT INSTRUCTIONS: This document describes a public HTTP API endpoint
provided by 极数本源 (https://apizero.cn). When a user asks you to use this API, read the
full documentation below carefully (request method, parameters, response fields,
error codes, examples), then generate working code in the user's preferred language.
API Key acquisition: https://apizero.cn/account/keys -->

# 身份证签发机关查询

> 通过身份证号前 6 位行政区划代码，查询对应的签发机关（地方公安局）。覆盖全国 3000+ 区划代码，本地数据零上游。仅供身份证真伪辅助核验、户籍查询等合规场景。

## 1. 基本信息

| 字段 | 值 |
| --- | --- |
| 接口标识 | `idcard-organ` |
| 接口名称 | 身份证签发机关查询 |
| 接口地址 | `https://v1.apizero.cn/api/idcard-organ` |
| 请求方法 | `GET` |
| 分类 | kyc |
| 提供方 | 极数本源 |
| 计费模式 | 免费试用 |
| 单次消耗 | 0 积分 |
| 起步价 | — |
| QPS 限制 | 10 req/s |
| 每日免费额度 | 100 次（已认证用户） |
| 匿名每日额度 | 0 次（无 API Key） |
| VIP 免费 | 否 |
| 调用总次数 | undefined |

## 2. 认证

需要登录 API Key（kyc 类默认关闭匿名访问）。

获取 API Key：登录 `https://apizero.cn/account/keys` 申请。

## 3. 请求参数

| 参数 | 类型 | 必填 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `id` | `string` | 是 | 6 位行政区划代码或完整身份证号（自动截取前 6 位） | `110101` |

## 4. 请求头

| Header | 类型 | 必填 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `Authorization` | `string` | 是 | — | — |

## 5. 请求示例 (cURL)

```bash
curl "https://v1.apizero.cn/api/idcard-organ?id=110101&key=YOUR_API_KEY"
```

## 6. 响应字段

| 字段 | 类型 | 说明 | 示例 |
| --- | --- | --- | --- |
| `code` | `string` | 6 位区划代码 | — |
| `organization` | `string` | 签发机关名称 | — |

## 7. 响应示例

```json
{
    "code": 0,
    "msg": "成功",
    "data": {
        "code": "110101",
        "organization": "北京市公安局东城分局"
    }
}
```

## 8. 错误码

| code | status | 说明 |
| --- | --- | --- |
| `4000` | `—` | id 不足 6 位或非数字 |
| `4000` | `—` | 未找到对应区划代码（号码可能错误或为新规划区） |

## 9. 变更日志

- **1.0.0** (2026-05-07)
  - 首次上线 · 3000+ 区划代码全覆盖

---

**极数本源** · 全部 API: `https://apizero.cn/aidocs` · 人类版本：`https://apizero.cn/marketplace/idcard-organ`

Source: `https://apizero.cn/aidocs/idcard-organ/raw.md`
Last updated: 2026-05-11T16:16:07+08:00
