SDK Quickstart

Python SDK Quickstart

Install khaleejiapi, configure your API key, and make your first authenticated API call.

1) Install

bash
pip install khaleejiapi

2) Environment variable setup

bash
export KHALEEJI_API_KEY=your_api_key_here

3) Minimal working example

python
from khaleejiapi import KhaleejiAPI
import os
api_key = os.getenv("KHALEEJI_API_KEY")
if not api_key:
raise ValueError("Missing KHALEEJI_API_KEY")
client = KhaleejiAPI(api_key=api_key)
result = client.validation.validate_email("[email protected]")
print(result["valid"])

Next steps

Test your key with a real endpoint from the API reference.

Use retries/rate-limit handling for production workloads.

Review authentication and rate limits before going live.