An open API service indexing awesome lists of open source software.

https://github.com/sexfrance/cybertemp-wrapper

A Python client for interacting with the CyberTemp temporary email service API.
https://github.com/sexfrance/cybertemp-wrapper

cybertemp cybertemp-wrapper email free-temp mail python temp-email temp-mail tempemail tempmail tempmail-wrapper temporary-email wrapper

Last synced: about 2 months ago
JSON representation

A Python client for interacting with the CyberTemp temporary email service API.

Awesome Lists containing this project

README

          


CyberTemp API Client



A Python client for interacting with the CyberTemp temporary email service API.




🌐 Website
·
📜 ChangeLog
·
⚠️ Report Bug


---

#### Available Methods

1. **Get Email Content**
```python
emails = client.get_email_content("test@cybertemp.xyz", max_retries=3, delay_between_retries=2.0)
```

2. **Get Email by ID**
```python
email = client.get_email_content_by_id("test@cybertemp.xyz", "email_id_here")
```

3. **Get Available Domains**
```python
domains = client.get_domains()
```

4. **Search Email by Subject**
```python
mail_id = client.get_mail_by_subject(
email="test@cybertemp.xyz",
subject_contains="Verification",
max_attempts=5,
delay_between_retries=1.5
)
```

5. **Extract URL from Email**
```python
url = client.extract_url_from_message(
email="test@cybertemp.xyz",
subject_contains="Verification",
url_pattern=r'https://[^\s<>"']+',
max_attempts=5,
delay_between_retries=1.5
)
```

6. **Get Plan Info**
```python
plan = client.get_plan()
```

7. **Delete Email**
```python
success = client.delete_email("email_id_here")
```

8. **Delete Inbox**
```python
success = client.delete_inbox("test@cybertemp.xyz")
```

9. **List User Inboxes**
```python
inboxes = client.list_user_inboxes()
```

10. **Delete User Inbox**
```python
success = client.delete_user_inbox("test@cybertemp.xyz")
```

11. **Get Private Emails (Bearer Token)**
```python
private_emails = client.get_private_emails(bearer_token="your_bearer_token", email="test@cybertemp.xyz")
```
```

3. **Get Available Domains**

```python
domains = client.get_domains()
```

4. **Search Email by Subject**

```python
mail_id = client.get_mail_by_subject(
email="test@cybertemp.xyz",
subject_contains="Verification",
max_attempts=5, # Optional
delay_between_retries=1.5 # Optional
)
```

5. **Extract URL from Email**

```python
url = client.extract_url_from_message(
email="test@cybertemp.xyz",
subject_contains="Verification",
url_pattern=r'https://[^\s<>"']+',
max_attempts=5, # Optional
delay_between_retries=1.5 # Optional
)
```

6. **Check API Balance**

```python
balance = client.get_balance()
```

### 💳 Pricing & Plans

CyberTemp offers several subscription plans:

- **Free Tier**: No API key required, 2-second delay, 10 req/sec
- **Eco Plan**: €1.99/month, no delay, 20 req/sec
- **Core Plan**: €2.99/month, no delay, 50 req/sec
- **Elite Plan**: €4.99/month, no delay, unlimited requests

All paid plans require an API key. See [CyberTemp Pricing](https://cybertemp.xyz/pricing) for details and to purchase a key.

### ⚠️ Rate Limits

- All requests require an API key (except Free tier)
- Free tier: 2-second delay between requests, 10 req/sec
- Paid tiers: No delay, higher rate limits

### 📜 ChangeLog

```diff
v1.0.1 ⋮ 2025-03-05
+ Added configurable retry and delay options for email checking functions
+ Indicated optional parameters in documentation

v1.0.0 ⋮ 2025-02-14
! Initial release
```