Africa Health Facilities API
收藏Africa Health Facilities API 数据集概述
数据集简介
这是一个提供非洲官方政府验证的医疗机构数据的API。数据集包含30,000多家经过许可验证的医院、诊所和药房,涵盖许可证信息、监管状态、机构代码和其他元数据。
当前覆盖范围
| 国家 | 设施数量 | 行政区划数量 | 数据来源 |
|---|---|---|---|
| 肯尼亚 | 24,000+ | 47个县 | 卫生部(MOH)、药房与毒药委员会(PPB) |
| 乌干达 | 6000+ | 146个区 | 卫生部 |
即将推出: 坦桑尼亚、卢旺达、埃塞俄比亚、尼日利亚、加纳、南非
核心特性
- 官方政府数据:由卫生部和监管委员会验证。
- 许可证信息:包含机构代码、许可证号码、监管状态。
- 完整元数据:包含所有权、机构类型、服务、位置详情。
- 高性能:亚秒级响应,使用Redis缓存。
- 模糊搜索:搜索词可以按任意顺序排列。
- 定期更新:每周与官方数据源同步。
API端点
1. 搜索机构
GET /api/v1/search
按国家、县/区以及名称搜索医疗机构。
查询参数:
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
country |
string | 是 | 国家代码(kenya, uganda) |
county |
string | 否 | 县或区名称 |
name |
string | 否 | 机构名称(模糊搜索 - 词序任意) |
limit |
integer | 否 | 返回的最大结果数(默认:20,最大:100) |
示例请求: bash curl --request GET --url https://africa-health-facilities-api1.p.rapidapi.com/api/v1/search?country=kenya&county=Nairobi&name=clinic&limit=20 --header x-rapidapi-host: africa-health-facilities-api1.p.rapidapi.com --header x-rapidapi-key: YOUR_API_KEY
响应字段(顶层):
total(integer) - 匹配的设施总数。results(array) - 设施对象数组(受limit参数限制)。country(string) - 被搜索的国家。filters(object) - 应用的搜索过滤器。
设施对象字段:
id(integer) - 内部数据库ID。code(string) - 官方设施代码(用于设施标识)。country(string) - 国家代码。name(string) - 官方设施名称。county(string) - 县/区名称。data(object) - 元数据(结构因国家和数据源而异)。last_synced_at(datetime) - 上次数据同步时间戳。created_at(datetime) - 记录创建时间戳。updated_at(datetime) - 最后更新时间戳。
元数据字段(data对象):
注意:可用字段因国家和数据源而异。常见字段包括:
ward_name- 区/子县名称。constituency- 选区名称。owner_name- 设施所有权(例如,“Ministry of Health”, “Private Practice”)。facility_type_name- 设施类型(例如,“Medical Clinic”, “Hospital”)。operation_status_name- 运营状态(例如,“Operational”, “Non-Operational”)。regulatory_status_name- 监管状态(例如,“Licensed”, “Pending License”)。keph_level_name- KEPH级别(肯尼亚基本卫生服务包)。license_no- 许可证号码(适用于PPB注册的药房)。source- 数据源(例如,“MOH”, “PPB”)。original_id- 源数据库中的原始ID。
2. 获取县/区列表
GET /api/v1/counties/{country}
获取一个国家内所有行政区划(县/区)的完整列表。
路径参数:
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
country |
string | 是 | 国家代码(kenya, uganda) |
示例请求: bash curl --request GET --url https://africa-health-facilities-api1.p.rapidapi.com/api/v1/counties/kenya --header x-rapidapi-host: africa-health-facilities-api1.p.rapidapi.com --header x-rapidapi-key: YOUR_API_KEY
响应字段:
country(string) - 国家代码。counties(array) - 排序后的县/区名称列表。total(integer) - 县/区的总数。
3. 获取机构详情
GET /api/v1/facility/{code}
通过官方设施代码获取特定医疗机构的完整详情。
路径参数:
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
code |
string | 是 | 官方设施代码(例如,“20830”, “PPB-A-1234”) |
示例请求: bash curl --request GET --url https://africa-health-facilities-api1.p.rapidapi.com/api/v1/facility/20830 --header x-rapidapi-host: africa-health-facilities-api1.p.rapidapi.com --header x-rapidapi-key: YOUR_API_KEY
响应字段: 结构与搜索结果中的单个设施对象相同。
错误响应(如果未找到设施): json { "error": "Facility not found" }
使用场景
- 医疗应用:远程医疗平台、健康保险、医疗旅游、医疗招聘网站。
- 数据与分析:研究、政府规划、非政府组织项目。
- 集成示例:患者记录系统、预约预订、导航应用、短信/USSD服务。
认证
所有请求都需要RapidAPI认证头: bash --header x-rapidapi-host: africa-health-facilities-api1.p.rapidapi.com --header x-rapidapi-key: YOUR_API_KEY
数据质量与更新
- 数据源:肯尼亚卫生部、肯尼亚药房与毒药委员会、乌干达卫生部。
- 更新频率:每月与官方政府数据库同步;关键监管变更实时更新。
- 数据验证:所有设施均包含官方设施代码、监管状态、上次同步时间戳、原始源ID。
定价计划
- BASIC: $0.00 / 月
- PRO: $9.99 / 月
- ULTRA: $49.99 / 月
- MEGA: $199.99 / 月




