Skip to main content

A Python wrapper to generate real Outlook/Hotmail accounts and fetch OTPs via JSON.

Project description

Outlook Account Generator (API Wrapper)

Python API Status License

A lightweight Python library to generate real Microsoft Outlook & Hotmail email addresses instantly. Unlike standard temp-mail services, these domains have high trust scores on major platforms.

This library allows you to access inboxes via JSON to fetch OTP codes automatically. No Selenium, Puppeteer, or headless browsers required.

🚀 Features

  • Real Domains: Generates @outlook.com and @hotmail.com addresses.
  • JSON Inbox: Fetch emails and verification codes via a simple method.
  • Secure: Uses encrypted tokens for session management.
  • Fast: Purely request-based (Lightweight & Fast).

📦 Installation

You can install the package via pip:

pip install outlook-account-generator

🔑 API Key Required

To use this library, you need an API Key. 👉 Get your Free API Key Here

⚡ Quick Start Guide

1. Initialize the Client

First, import the library and initialize it with your RapidAPI Key.

from outlook_account_generator import OutlookGen

# Replace with your actual API Key
API_KEY = "YOUR_RAPIDAPI_KEY_HERE"
api = OutlookGen(API_KEY)

2. Generate a New Account

You can choose between outlook or hotmail.

# Create a new Outlook account
try:
    account = api.create_account("outlook")

    email = account['email']
    token = account['enc_token']

    print(f"✅ Generated Email: {email}")

except Exception as e:
    print(f"Error: {e}")

3. Wait for OTP / Email

Use the wait_for_otp helper function to automatically poll the inbox until a message arrives.

print(f"[*] Waiting for email on {email}...")

# Checks inbox every 5 seconds, times out after 60 seconds
email_data = api.wait_for_otp(email, token, timeout=60)

if email_data:
    print("\n📩 New Email Received:")
    print(f"From: {email_data['sender']}")
    print(f"Subject: {email_data['title']}")
    print(f"Body: {email_data['content']}") # Content is HTML-stripped
else:
    print("❌ No email received within timeout.")

⚖️ Disclaimer

This tool is designed for educational purposes, software testing, and automation development. Please refer to the RapidAPI Terms for usage limits.


Get Premium Access

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

outlook_account_generator-1.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

outlook_account_generator-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file outlook_account_generator-1.0.2.tar.gz.

File metadata

File hashes

Hashes for outlook_account_generator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 695bfb3ecd1114c6f100881bd95cc642ff78678b602ddec8b71554aefae11499
MD5 824be4c11acc5e5b5ebc7c39d4d0f332
BLAKE2b-256 d2e72afa255ef6dec7f2e263598e67e5f5f9983e35abd631451f766e6e4bdbf8

See more details on using hashes here.

File details

Details for the file outlook_account_generator-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for outlook_account_generator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36341e656b60904d607978308e79943596525dea02b0d7b9a362a338ad1b9cca
MD5 c54f70869a47194cbe005c1b42760542
BLAKE2b-256 4035c6121af458db13f24d1f9f19d049e2f9550e14ab1e00e7297c0f8e8c073e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page