Quick start
Create an application in the Developer Dashboard. A sandbox key is issued instantly after account verification. Live or sensitive scopes can be separately controlled.
curl -H "Authorization: Bearer aa_test_your_key" https://analysisafrica.com/api/v1/tests.php?page=1Authentication
Send your secret API key as a Bearer token. Never place secret keys in browser JavaScript or public repositories. Keys can be regenerated or revoked from your dashboard.
Tests API
Search approved laboratory tests and providers.
Products API
Retrieve approved marketplace products, prices and availability.
Emergency Services API
Access approved ambulance and emergency-service listings.
Orders & Webhooks
Integrate status workflows with scoped credentials.
Tests
/api/v1/tests.phpParameters: q, category, page, per_page (maximum 100).
Products
/api/v1/products.phpParameters: q, category_id, page, per_page.
Emergency Services
/api/v1/emergency-services.phpRetrieve approved emergency listings. Filter with subcategory or retrieve a single listing with slug.
Webhooks
Register webhook destinations in your dashboard. Supported event families are designed for payment, order, booking and tracking updates. Each webhook has its own signing secret.
Expanded API v1
/labs.php, /blood-bank.php, /bookings.php, /orders.php, /blood-requests.php, /tracking.php, /payments.php, /results.php and /webhooks.php.
Write requests support scoped credentials; order/booking creation supports idempotency. Sensitive result content remains protected behind separately approved authorization.
SDKs & specification
Downloadable examples are provided for PHP, Python, Node.js and WordPress. The machine-readable OpenAPI description is available at /docs/openapi.json.
Errors & rate limits
Responses are JSON. Standard statuses include 400 invalid request, 401 invalid/missing key, 403 insufficient scope, 404 resource not found and 429 rate limit exceeded. Default sandbox allowance is 1,000 requests per hour per application.