Unified API gateway for Indonesian data: regions, holidays, prayer times, and more.
Authorization: Bearer YOUR_API_KEY header.curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.apihub.co.id/v1/regions/provinces"
import { ApiHubClient } from "@apihub/sdk";
const client = new ApiHubClient({ apiKey: "YOUR_API_KEY" });
const provinces = await client.listProvinces();
console.log(provinces);
All endpoints return a consistent envelope:
{
"success": true,
"data": { ... },
"meta": { "request_id": "...", "credits_used": 1 }
}
{
"success": false,
"error": { "code": "INVALID_API_KEY", "message": "..." },
"meta": { "request_id": "..." }
}
Default: 10 requests per second per API key. Upgrade your plan for higher limits.