Haobo API Documentation - /api/v1/process (CID 双通道接口)

Welcome to the Haobo API documentation. This guide will help you integrate with our services using POST requests and Python.

Authentication

All API requests require authentication using an API key. Include your API key in the request header.

// Example Authorization Header
Authorization: Bearer YOUR_API_KEY

API Endpoints

POST
/api/v1/process

Process data with the Haobo engine and return results.

Parameters

Parameter Type Required Description
data String Yes The input data to be processed
mode String No Processing mode (default: standard)
options Object No Additional processing options

Request Example

# Dual channel POST example # 双通道 POST 示例 import requests # Define API URL # 定义接口地址 url1 = "https://api.getcid.vip/api_get" # Define request parameters (form-data) # 定义请求参数(表单) data = { 'id': '0846745 7132553 1721515 3171960 5430120 791 14336516350 3029014 0046161', 'tid': 'you_tel_id', 'tuser': 'you_tel_user', 'api': 'you_api' } # Send POST request (form-encoded) # 发送 POST 请求(表单) k = requests.post(url1, data=data) # Print response JSON # 打印返回结果 print(k.json())
# Dual channel POST example # 双通道 POST 示例 curl -X POST \ -d 'id=0846745 7132553 1721515 3171960 5430120 791 14336516350 3029014 0046161&tid=you_tel_id&tuser=you_tel_user&api=you_api' \ https://api.getcid.vip/api_get
// Dual channel POST example // 双通道 POST 示例 const data = { id: '0846745 7132553 1721515 3171960 5430120 791 14336516350 3029014 0046161', tid: 'you_tel_id', tuser: 'you_tel_user', api: 'you_api' }; // Convert to FormData // 转换为 FormData 格式 const formData = new FormData(); Object.keys(data).forEach(key => formData.append(key, data[key])); // Send POST request // 发送 POST 请求 const response = await fetch('https://api.getcid.vip/api_get', { method: 'POST', body: formData }); // Print result // 打印返回结果 const result = await response.json(); console.log(result);

Response

The API returns a JSON object with the processed data and metadata.

{ "Status": "Success", "CID": "00596-12345-67890-11111", "Used": 1 }
POST
/api/v1/analyze

Analyze data and return insights.

Parameters

Parameter Type Required Description
input Array Yes Array of data points to analyze
analysis_type String Yes Type of analysis to perform

Request Example

import requests url = "https://api.haobo.com/v1/analyze" headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" } data = { "input": ["data1", "data2", "data3"], "analysis_type": "trend" } response = requests.post(url, json=data, headers=headers) print(response.json())

Error Handling

The API uses standard HTTP status codes to indicate success or failure.

Code Meaning
200 Success
400 Bad Request -- Invalid parameters
401 Unauthorized -- Invalid API key
403 Forbidden -- API key doesn't have permission
429 Too Many Requests -- Rate limit exceeded
500 Internal Server Error

Rate Limiting

API requests are limited to 1000 requests per hour per API key. Exceeding this limit will result in a 429 error.