Quick Start

Get Started in 5 Minutes

Follow these simple steps to start using KhaleejiAPI in your applications.

1

Create an Account & Get Your API Key

Sign up for a free account to get your API key. You'll get 1,000 free requests per month to start.

2

Make Your First API Call

Use our official SDKs or call the REST API directly. All endpoints are available at https://khaleejiapi.dev/api/v1/

Install an SDK (recommended)

bash
# JavaScript / TypeScript
npm install @khaleejiapi/sdk
# Python
pip install khaleejiapi

cURL

bash
curl -X GET "https://khaleejiapi.dev/api/v1/email/validate?email=user@example.com" \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json"

JavaScript / TypeScript

javascript
// Using fetch (Node.js 18+, Deno, Bun, browsers)
const response = await fetch(
'https://khaleejiapi.dev/api/v1/email/validate?email=user@example.com',
{
headers: {
'x-api-key': 'your_api_key_here',
'Content-Type': 'application/json',
},
}
);
const data = await response.json();
console.log(data);
// {
// success: true,
// data: {
// email: "user@example.com",
// is_valid: true,
// is_disposable: false,
// mx_found: true,
// score: 0.95
// }
// }

Python

python
import requests
response = requests.get(
"https://khaleejiapi.dev/api/v1/email/validate",
params={"email": "user@example.com"},
headers={"x-api-key": "your_api_key_here"}
)
data = response.json()
print(data["data"]["is_valid"]) # True
3

Explore Available APIs

We offer 26+ APIs for the Middle East — email validation, IP geolocation, VAT calculation, exchange rates, Islamic finance, and more. Browse the full catalog to find what you need.

Tip: Never expose your API key in client-side code. Always keep it on the server or use environment variables.

Next Steps