Overview
The Formula AI API gives you programmatic access to all of our platform's capabilities — from smart formula search to knowledge extraction from books and regulatory compliance checks — securely, quickly, and easily.
Base API URL:
https://api.jamilformula.com/v3
Authentication
All API requests require an API key sent in the header. Get your key from Dashboard → Settings → API Keys.
⚠️ Security: Never expose your key in frontend code. Always use environment variables.
Formula search
AI-powered smart search for any chemical formula using natural language.
/formulas/search
Parameters
| Field | Type | Description |
|---|---|---|
query | string | Product name to search for |
category | string | Category (cosmetics, detergents, ...) |
country | string | Country code for compliance check (ISO-2) |
language | string | Response language (ar, en, fr, ...) |
Example request
Example response
Regulatory compliance check
Verify that a formula complies with regulations in any country in the world.
/compliance/check
Extract from a book
Upload a book and extract formulas from it programmatically.
/books/extract
Official SDK packages
Use our official packages for better support and automatic error handling.
Node.js / TypeScript
npm install @formula-ai/sdk
Python
pip install formula-ai
Go
go get github.com/formula-ai/go
Java / Kotlin
implementation 'ai.formula:sdk:3.0'
Rate limits
Limits depend on your plan:
| Plan | Requests/day | Requests/minute | Max latency |
|---|---|---|---|
| Free | — | — | — |
| Professional | 1,000 | 30 | 30s |
| Business | 50,000 | 200 | 60s |
| Enterprise | Unlimited | 1,000 | 120s |
Error codes
| Code | Description | Solution |
|---|---|---|
401 | Unauthenticated | Check your API key |
403 | Plan does not allow | Upgrade your plan |
429 | Rate limit exceeded | Wait a minute and retry |
500 | Server error | Contact support |