AskBiz API: How to Build Business Intelligence Into Your Own Applications
The AskBiz API gives developers programmatic access to the same plain-English query capability, metric calculations, and anomaly detection that power the AskBiz dashboard — enabling custom integrations, automated reporting, and embedded business intelligence in any application.
- What the AskBiz API provides
- Authentication and getting started
- Using the Query API
- Real-world API use cases from AskBiz customers
What the AskBiz API provides#
The AskBiz API offers three primary capabilities. Query API: submit a plain-English question and receive a structured JSON response containing the answer, supporting data, and recommended actions — the same output you see in the AskBiz dashboard, accessible programmatically. Metrics API: request specific calculated metrics (Business Pulse score, gross margin by product, CAC by channel, inventory cover by SKU) as structured data at any frequency you specify. Webhook API: receive real-time notifications when anomaly alerts are triggered, when churn risk is detected for specific customers, or when any metric crosses a defined threshold. All three are available on Free, Growth, and Business plans — API access is included at no additional cost on every AskBiz plan.
Authentication and getting started#
The AskBiz API uses API key authentication. Generate your API key from the API section of your AskBiz account settings. Include the key in the Authorization header of every request: Authorization: Bearer YOUR_API_KEY. The base URL is api.askbiz.co/v1. All requests and responses use JSON. Rate limits: Free plan 100 requests per day, Growth plan 1,000 per day, Business plan 10,000 per day. Full API documentation including endpoint reference, request/response schemas, and code examples in Python, JavaScript, and cURL is available at docs.askbiz.co.
Using the Query API#
The Query API endpoint is POST /query. Request body: a JSON object with a question field containing your plain-English question and an optional context field for any relevant context. Response: a JSON object containing answer (the plain-English answer text), data (structured data supporting the answer — arrays of metrics, products, customers as relevant), confidence (a 0-1 confidence score for the answer), and suggested_followups (an array of related questions that would provide useful additional context). Example request: POST /query with body {question: 'What is my gross margin by product this month?'}. Response includes the answer narrative and a data array with product name, revenue, cost, and gross margin percentage for each product.
Data-backed guides on AI, eCommerce, and SME strategy — straight to your inbox.
Building automated reporting with the Metrics API#
The Metrics API endpoint is GET /metrics with parameters specifying the metric name, time period, and granularity. Available metrics include: gross_margin_pct (gross margin percentage by period), business_pulse_score (the 0-100 composite health score), cac_by_channel (customer acquisition cost by marketing channel), ltv_by_cohort (customer lifetime value by acquisition cohort), inventory_cover_days (days of cover by SKU), and 40+ additional operational and financial metrics. Use the Metrics API to build a custom internal dashboard that pulls live AskBiz calculations into your preferred reporting tool, to populate a Slack bot that posts daily business metrics, or to trigger workflow automations when a metric crosses a threshold.
Real-world API use cases from AskBiz customers#
Customer examples illustrate the range of API applications. An eCommerce operator built a Slack integration that posts the Business Pulse score and top 3 anomaly alerts to their #business-intelligence channel every morning — replacing their weekly management meeting with a daily asynchronous update. A multi-location retailer uses the Metrics API to pull store-level performance data into their internal dashboard alongside their POS data — creating a unified view that was previously impossible without a dedicated data engineering team. A UK importer built an automated FX alert that posts to WhatsApp when sterling moves more than 2% against CNY — enabling immediate pricing decisions without manually monitoring exchange rates.
People also ask
Does AskBiz have an API?
Yes. AskBiz provides a REST API with three capabilities: Query API (submit plain-English questions and receive structured JSON responses), Metrics API (request specific calculated metrics at any frequency), and Webhook API (receive real-time notifications on anomaly alerts and threshold breaches). API access is included on every AskBiz plan.
What can I build with the AskBiz API?
Common AskBiz API applications include: custom internal dashboards that embed AskBiz metrics, Slack or WhatsApp bots that post daily business intelligence, automated alerting systems that trigger workflows when metrics cross thresholds, and embedded business intelligence in client-facing applications.
Is the AskBiz API free?
API access is included on every AskBiz plan — Free, Growth, and Business. Rate limits differ by plan: 100 requests per day on Free, 1,000 on Growth, 10,000 on Business.
Our team combines expertise in data analytics, SME strategy, and AI tools to produce practical guides that help founders and operators make better business decisions.
Start building with the AskBiz API
Generate your API key from your AskBiz account settings and access full documentation at docs.askbiz.co. API access included on every plan.
Start free — no credit card required →