Looha API Documentation
Welcome to Looha API documentation! Programmatic access to profit analytics and insights.
✅ Who Can Use the API?
::alert{type="warning"} ⚠️ Pro Plan Only - API is exclusively available for Pro plan subscribers. Free users cannot access the API. ::
Core Features
::card-group ::card
title: '💰 Profit Analytics' icon: i-heroicons-currency-dollar to: /profit
Get accurate profit and cost data for any time period ::
::card
title: '📊 Ad Performance' icon: i-heroicons-chart-bar to: /analytics
Analyze ROAS and ad campaign performance tied to actual profits ::
::card
title: '🤖 AI Recommendations' icon: i-heroicons-light-bulb to: /recommendations
Smart recommendations to improve your profits and campaign performance ::
::card
title: '🔔 Alerts' icon: i-heroicons-bell to: /alerts
Manage custom alerts and rules, get alert data ::
::card
title: '📄 Reports' icon: i-heroicons-document-text to: /reports
Export profit reports in PDF, CSV, and JSON formats ::
::card
title: '🔗 Funnel Analysis' icon: i-heroicons-funnel to: /analytics
Analyze conversion funnel from ad click to final order :: ::
Base URL
https://api.looha.app/v1Authentication
All requests require a valid API key in the request header:
curl -H "Authorization: Bearer looha_your_api_key" \
https://api.looha.app/v1/profit/overview?period=30d::alert{type="info"} Get your API key from Settings → API ::
Rate Limits
| Plan | Requests/Hour | Requests/Day |
|---|---|---|
| Free | ❌ No Access | ❌ |
| Pro | 1,000 | 20,000 |
::alert{type="danger"} Exceeding the limit will result in 429 Rate Limit Exceeded response ::
Upgrade to Pro
If you're on the free plan and want to use the API:
- Go to Settings → Billing
- Choose Pro Plan (249 SAR/month)
- You'll automatically get API access
- Create an API key from Settings
::button{to="https://app.looha.app/settings/billing" icon="i-heroicons-arrow-right"} Upgrade to Pro Now ::
Quick Start
- Make sure you're on Pro plan ✅
- Get your API key from Settings page
- Read the quick start guide Getting Started →
- Try your first request using the examples
Support
Need help?
- 📧 Email: support@looha.app
- 💬 Chat: Inside the dashboard at the bottom of the page
- 📚 Documentation: Browse the sections on the left
::button{to="/getting-started" icon="i-heroicons-rocket-launch" size="lg"} Get Started ::