Skip to main content

Quick Start

Welcome to AIECG’s ECG signal analysis cloud service! This guide helps you complete API integration in 3 minutes.

🎯 What is AIECG?

AIECG provides professional ECG (ECG) signal analysis API services, enabling your wearable devices and health applications with medical-grade ECG diagnostic capabilities.

Core capabilities:

  • 98.6% diagnostic accuracy
  • 3s average response time
  • ✅ Single-lead supports recognition of 20+ arrhythmia types, and 12-lead supports 43+ ECG conditions
  • ✅ Supports both single-lead and 12-lead analysis
  • ✅ Easy to integrate: 5 lines of code

📦 Step 1: Get an API Key

  1. Visit the Developer Console
  2. Copy your key from the API Keys page
sk-aiecg-xxxxxxxxxxxxxxxxxxxxxxxx
New user benefits

Register to get 100 free API calls right away—enough for development and testing!


🚀 Step 2: Call the API

Single-lead ECG analysis

curl -X POST "https://api.heartvoice.com.cn/v1/basic/ecg/1-lead/analyze" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ecgData": [512, 515, 520, 518, 525, 530, 528, 522, 515, 508, ...],
"ecgSampleRate": 500,
"adcGain": 1000.0,
"adcZero": 0.0
}'

📊 Response Example

{
"code": 200,
"message": "success",
"data": {
"isAbnormal": false,
"isReverse": false,
"sqGrade": "0.92",
"diagnosis": [
"SINUS_RHYTHM",
"NORMAL_ECG"
],
"possibleDiags": [],
"pacCount": 0,
"pvcCount": 1,
"avgHr": 72,
"avgQrs": 88,
"prInterval": 160,
"avgQt": 380,
"avgP": 100,
"avgQtc": 392
}
}

Key Fields

FieldDescription
isAbnormalWhether an abnormality is detected
isReverseWhether the lead is reversed/miswired
sqGradeSignal quality grade (numeric string, 0-1)
diagnosisArray of diagnosis label codes (returned tags)
possibleDiagsArray of possible diagnosis labels
avgHrAverage heart rate (bpm)
avgQrsAverage QRS width (ms)
prIntervalPR interval (ms)
avgQtAverage QT interval (ms)
avgQtcCorrected QT interval (ms)
pacCountCount of PAC (premature atrial contractions)
pvcCountCount of PVC (premature ventricular contractions)
Diagnosis label explanation

The diagnosis field returns diagnosis label codes (for example, SINUS_RHYTHM). Convert them to readable descriptions using the Diagnosis label reference table.


🎉 Completed!

Congratulations! You’ve successfully made your first call to the AIECG API.

Next Steps

📖 ECG Basic

Detailed docs for single-lead and 12-lead analysis

🔬 ECG Advanced

HRV, heart age, DeepLife, and more

🧪 Online Test

Use the Playground to test the API


📚 API Overview

ECG Signal Analysis

EndpointDescriptionPlan
POST /v1/basic/ecg/1-lead/analyzeSingle-lead ECG analysisBasic+
POST /v1/basic/ecg/12-lead/analyze12-lead ECG analysisBasic+
POST /v1/advanced/ecg/analyzeFull ECG analysis (includes HRV, heart age, etc.)Advanced+
POST /v1/advanced/ecg/heart-ageHeart age assessmentAdvanced+
POST /v1/advanced/ecg/mental-stateMental/emotional state assessmentAdvanced+
POST /v1/advanced/ecg/micro-examDeepLife micro health checkAdvanced+
POST /v1/advanced/ecg/holter/*Long-term ECG analysis (asynchronous)Advanced+

PPG Signal Analysis

EndpointDescriptionPlan
POST /v1/advanced/ppg/blood-pressureBlood pressure estimationAdvanced+
POST /v1/advanced/ppg/vascular-healthVascular health assessmentAdvanced+

💬 Need Help?

  • 📧 Technical support: contact@heartvoice.com.cn
  • ☎ Cooperation hotline: 400-0551-927
  • 📱 Phone: 18055165745 (Qi Manager)