Skip to content

Commit c5ef878

Browse files
📝 docs: Add API examples, rate limits, prerequisites; restructure README
1 parent 5109538 commit c5ef878

2 files changed

Lines changed: 37 additions & 20 deletions

File tree

README.md

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,34 @@ The API was built and is maintained by Devanand Premkumar.
3636
[![Twitter](https://img.shields.io/badge/Twitter-blue?style=flat-square&logo=twitter&logoColor=white&url=https%3A%2F%2Ftwitter.com%2Fdevaonbreaches)](https://twitter.com/devaonbreaches)
3737
[![Mastodon](https://img.shields.io/badge/-Mastodon-blue?style=flat-square&logo=mastodon&logoColor=white&link=https://infosec.exchange/@DevaOnBreaches)](https://infosec.exchange/@DevaOnBreaches)
3838

39+
## Quick Example
3940

41+
Check if an email has been exposed in data breaches:
4042

41-
## Show Your Support!
43+
```bash
44+
curl https://api.xposedornot.com/v1/check-email/test@example.com
45+
```
4246

43-
🌟 Give us a star if you like what we're doing!
47+
Response:
48+
```json
49+
{
50+
"breaches": [["Adobe"], ["LinkedIn"]],
51+
"email": "test@example.com"
52+
}
53+
```
4454

45-
🍴 Fork it and make it your own!
55+
Get detailed breach analytics:
56+
```bash
57+
curl "https://api.xposedornot.com/v1/breach-analytics?email=test@example.com"
58+
```
4659

47-
🤝 And hey, why not contribute? We love seeing what you can add to the mix!
60+
## Rate Limits & API Access
4861

49-
## How to Use XposedOrNot API (documentation)
62+
- **No API key required** for basic endpoints (`/v1/check-email`, `/v1/breach-analytics`, `/v1/breaches`)
63+
- **Rate limits**: 2 requests/second, 100 requests/day per IP
64+
- **API key required** for domain breach monitoring (enterprise feature)
5065

51-
52-
If you want to get more details, you can check out our full [documentation](https://XposedOrNot.com/api_doc) and [API playground](https://xposedornot.docs.apiary.io/).
66+
For full documentation, see the [API docs](https://XposedOrNot.com/api_doc) and [API playground](https://xposedornot.docs.apiary.io/).
5367

5468
## Why use XposedOrNot API?
5569

@@ -64,23 +78,18 @@ This API is your go-to for all information related to data breaches that XposedO
6478
If you'd rather skip the API and check data breach info directly, you can do that on our website at : https://XposedOrNot.com.
6579

6680

67-
## How secure is XposedOrNot API?
68-
69-
Is XposedOrNot API safe to use? Absolutely.
70-
71-
You see, the whole issue of data breaches has come from places that aren't secure. So, we've made sure everything is open-source, including the API and all related files on Github. We trust in the power of open source tools to make our digital world safer.
72-
73-
Everything we run, from the app to the website, is built on open source - from the operating system (Linux) to the API script (Python), and even the web files (HTML). We believe in improving services through collaboration, and open source makes that possible.
81+
## Security
7482

75-
We've designed the XposedOrNot API with safety at its core because we're dealing with sensitive data breach information. Tools like Black, Pylint, and SonarQube Community Edition support the security of our code and design elements.
83+
This project is fully open-source and uses automated security tooling (Black, Pylint, CodeQL, OpenSSF Scorecard). For security details, see [SECURITY.md](SECURITY.md).
7684

77-
If you spot any problems or have suggestions for improvements, please raise an issue on GitHub.
85+
## Prerequisites
7886

79-
And if you want to contribute, we welcome your pull requests. We'll gladly consider any changes or fixes you suggest.
87+
- **Docker** (recommended): Docker 20.10+ and Docker Compose V2
88+
- **Local install**: Python 3.9+, Google Cloud SDK
8089

8190
## Quick Start for Local Development
8291

83-
### Using Docker-Compose
92+
### Using Docker Compose (Recommended)
8493

8594
1. **Clone the Repository:**
8695

@@ -162,3 +171,11 @@ Please do not report security vulnerabilities through public GitHub issues. Inst
162171

163172
* And a round of applause for everyone who's reviewed our code. Your eyes make all the difference.
164173
174+
## Show Your Support
175+
176+
If you find this project useful:
177+
178+
- Star the repository
179+
- Fork it and contribute
180+
- Share it with others
181+

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
## Reporting a Vulnerability
55

6-
If you happen to discover 🔍 a bug or security vulnerability, I would love 😍 to hear from you! I encourage you to disclose it using the **[responsible disclosure](https://beta.xposedornot.com/responsible-disclosure)** guidelines to support XposedOrNot.
6+
If you happen to discover 🔍 a bug or security vulnerability, I would love 😍 to hear from you! I encourage you to disclose it using the **[responsible disclosure](https://xposedornot.com/responsible-disclosure)** guidelines to support XposedOrNot.
77

88
You can report it via email at **deva @ xposedornot.com**.
99

10-
I want to make it clear that this is not a bug bounty program and we do not offer a monetary reward for submissions. However, I would be happy to feature your valid submissions on our **[Hall of Fame](https://beta.xposedornot.com/hof)** page, based on your preference. I believe in recognizing the positive contributions of reporters who have demonstrated a high level of dedication to our program.
10+
I want to make it clear that this is not a bug bounty program and we do not offer a monetary reward for submissions. However, I would be happy to feature your valid submissions on our **[Hall of Fame](https://xposedornot.com/hof)** page, based on your preference. I believe in recognizing the positive contributions of reporters who have demonstrated a high level of dedication to our program.

0 commit comments

Comments
 (0)