- π OTP Retrieval β Fetch OTPs for any date or number range.
- π SMS Statistics β Get total, paid, and unpaid counts with revenue.
- π Cookie Auth β Secure sessions with cookie-based authentication.
- π§ Smart Query Engine β Retrieve OTPs by date, range, and limit.
- π§© Auto Session Handling β Detects expired cookies.
- π§° Error Debugging β Detailed logs for every failure.
- π¨ Response Compression β Handles gzip and brotli seamlessly.
- Valid
cookies.jsonwith IVAS authentication - Python 3.x
- Dependencies from
requirements.txt
git clone https://github.com/Arslan-MD/IvaSms-api.git
cd IvaSms-api
pip install -r requirements.txt
python app.py-
Fork the repository π΄
-
Add valid cookies in cookies.json
-
Deploy on Vercel β automatic build π
-
Access your live endpoint instantly π
-
Welcome Endpoint:
- URL:
/ - Method:
GET - Response Type:
application/json - Example Response:
{ "message": "Welcome to the IVAS SMS API", "status": "API is alive", "endpoints": { "/sms": "Get OTP messages for a specific date (format: DD/MM/YYYY) with optional limit. Example: /sms?date=01/05/2025&limit=10" } }
- URL:
-
SMS Retrieval Endpoint:
- URL:
/sms - Method:
GET - Query Parameters:
date(required): Date inDD/MM/YYYYformat.to_date(optional): End date inDD/MM/YYYYformat.limit(optional): Maximum number of OTP messages to return.
- Response Type:
application/json - Example Response:
{ "status": "success", "from_date": "01/05/2025", "to_date": "Not specified", "limit": "Not specified", "sms_stats": { "count_sms": "50", "paid_sms": "30", "unpaid_sms": "20", "revenue": "25.50" }, "otp_messages": [ { "range": "+1", "phone_number": "+1234567890", "otp_message": "Your OTP is 123456" } ] }
- URL:
- Do not re-upload this code to GitHub! If you must share or use it elsewhere, please provide proper credit to the original author, @ArslanMD Official. π«
- Forking Recommended: Instead of re-uploading, fork this repository to contribute or use it for your projects. This helps maintain the integrity of the original work. π
π« Do not re-upload this repository to GitHub! If you want to use it, please fork it and give credit to @ArslanMD Official.
π§ Respect the creator. Support the original work. πͺ
Want to improve it? Fork β Modify β Pull Request π We welcome all contributors π«
This project is open-source. Check the LICENSE file for terms π
π WhatsApp Group: Join Now π’ WhatsApp Channel: Follow Updates π¬ Contact Developer: Message Me

