Skip to content
Are you a product supplier? Contact us.
M Mall of Accs

API documentation

Buy Mall of Accs products automatically from your own site, bot or panel. Every response is JSON.

1. Get a key

First sign up for free, then create your key on the My account → API page. The key is shown once; store it safely and never share it.

Base URL

https://mallofaccs.com/api/v1

Authentication

X-API-Key: YOUR_KEY

Example request

curl -X GET "https://mallofaccs.com/api/v1/products?in_stock=1" \
  -H "X-API-Key: ANAHTARINIZ"

Purchase

curl -X POST "https://mallofaccs.com/api/v1/buy" \
  -H "X-API-Key: ANAHTARINIZ" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "gmail-7-gun", "quantity": 2}'

2. Endpoints

GET /profile Account details and balance

Example response

{"success":true,"data":{"username":"bayi","email":"…","balance":125.4,"currency":"USD"}}
GET /balance Balance only

Example response

{"success":true,"data":{"balance":125.4}}
GET /categories Category list

Example response

{"success":true,"data":[{"id":1,"name":"Gmail Accounts","slug":"gmail-hesaplari","products":12}]}
GET /products Product list (paginated, 50 per page)

Parameters

category (slug) · q (arama) · in_stock (1/0) · sort (cheap/expensive/new/popular) · page

Example response

{"success":true,"data":{"products":[{"id":12,"slug":"gmail-7-gun","name":"Gmail 7-day","category":"Gmail Accounts","price":0.2,"stock":80040,"format":"email|password","delivery_time":"Instant","warranty_hours":24,"min":1,"max":100}],"pagination":{"page":1,"per_page":50,"total_page":1,"total":12}}}
GET /products/{slug} Single product details (description and usage instructions included)

Example response

{"success":true,"data":{"id":12,"name":"Gmail 7-day","price":0.2,"stock":80040,"description":"…","usage":"…"}}
POST /buy Purchase — charged to your balance, the product is returned instantly

Parameters

product_id (id veya slug) · quantity

Example response

{"success":true,"data":{"order_id":"AL2609A1B2C3","status":"completed","quantity":2,"total":0.4,"balance":125.0,"items":["[email protected]|password1","[email protected]|password2"],"usage":"…"}}
GET /orders Order history

Parameters

page

Example response

{"success":true,"data":{"orders":[…],"pagination":{…}}}
GET /orders/{order_id} Single order + delivered details

Example response

{"success":true,"data":{"order_id":"AL2609A1B2C3","status":"completed","items":["[email protected]|password1"]}}

Gmail Checker API

Check the status of the email addresses you send, in bulk. Pricing is the same as on the site; with an "API included" plan it uses your plan's daily allowance, otherwise each address is charged from your balance. Only the email is sent to the service.

POST /gmail-check Bulk-check email statuses

Body (JSON)

emails: [ "[email protected]", … ] · request_id (optional, retry-safe)

Example response

{"success":true,"data":{
  "checked":2,
  "results":[{"email":"[email protected]","status":"live"},{"email":"[email protected]","status":"notexists"}],
  "billing":{"free_used":0,"plan_used":2,"billable":0,"cost":0,"balance":10.5}
}}

Example request

curl -X POST "https://mallofaccs.com/api/v1/gmail-check" \
  -H "X-API-Key: ANAHTARINIZ" \
  -H "Content-Type: application/json" \
  -d '{"emails": ["[email protected]", "[email protected]"]}'

Up to 1000 addresses per request. Statuses: live, verified (needs verification), disabled, notexists, unknown. Sending the same request_id again returns the same result and is not charged twice.

3. Order statuses

The status field in /buy and /orders responses. Products are almost always delivered instantly; in rare cases an order is being prepared.

completed
Delivered; the product details are in the items field.
pending
Being prepared. The amount has been taken from your balance and the products will be added to this same order once ready — poll /orders/{order_id} again after a few minutes. Do not create a new order.
failed
Could not be delivered; the amount was refunded to your balance automatically.
refunded
The order was refunded; the amount is in your balance.

4. Connecting a Telegram bot

Your Telegram bot is a program running on your own server and uses this API like any other software; no separate API is needed.

  • Keep the API key only on the bot's server (e.g. an environment variable); never show it to bot users.
  • If your bot's server has a fixed IP address, lock the key to that IP on the My account → API page.
  • Call /buy only after you have received your own customer's payment; the amount is taken from your balance.
  • If an order returns "pending", do not place a new order; query /orders/{order_id} every few minutes.
  • Fetch the product list every few minutes rather than on every message, so you stay within the rate limits.
Example bot (Python)
# pip install python-telegram-bot
import os
import httpx
from telegram import Update
from telegram.ext import Application, CommandHandler, ContextTypes

API = "https://mallofaccs.com/api/v1"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}  # keep the key on the server only
OWNER_ID = int(os.environ["OWNER_ID"])          # your own Telegram user id


async def call(method, path, **kwargs):
    async with httpx.AsyncClient(headers=HEADERS, timeout=60) as client:
        return (await client.request(method, API + path, **kwargs)).json()


async def products(update: Update, context: ContextTypes.DEFAULT_TYPE):
    res = await call("GET", "/products", params={"in_stock": 1})
    rows = [f"{p['slug']} | {p['name']} | ${p['price']}" for p in res["data"]["products"][:20]]
    await update.message.reply_text("\n".join(rows) or "No products in stock")


async def buy(update: Update, context: ContextTypes.DEFAULT_TYPE):
    # Demo: only the owner can buy. In a real bot, call /buy after your customer has paid you.
    if update.effective_user.id != OWNER_ID or not context.args:
        return
    qty = int(context.args[1]) if len(context.args) > 1 else 1
    res = await call("POST", "/buy", json={"product_id": context.args[0], "quantity": qty})
    if not res["success"]:
        return await update.message.reply_text(res["message"])
    order = res["data"]
    if order["status"] == "pending":
        return await update.message.reply_text(f"Preparing - check later: /order {order['order_id']}")
    await update.message.reply_text("\n".join(order["items"]))


async def order(update: Update, context: ContextTypes.DEFAULT_TYPE):
    if update.effective_user.id != OWNER_ID or not context.args:
        return
    res = await call("GET", f"/orders/{context.args[0]}")
    data = res.get("data", {})
    await update.message.reply_text("\n".join(data.get("items", [])) or data.get("status", res.get("message", "")))


app = Application.builder().token(os.environ["BOT_TOKEN"]).build()
app.add_handler(CommandHandler("products", products))
app.add_handler(CommandHandler("buy", buy))
app.add_handler(CommandHandler("order", order))
app.run_polling()

To run it, set the API_KEY, BOT_TOKEN (from BotFather) and OWNER_ID environment variables. Commands: /products, /buy <product> <quantity>, /order <order id>.

Rate limits

Data endpoints
120 requests / minute
Purchase
60 requests / minute

Applied per key. You can also lock a key to specific IP addresses.

Error codes

200
Successful
401
Missing or invalid key
402
Insufficient balance
403
IP not allowed / account suspended
404
Product or order not found
409
The supplier could not deliver; the amount was refunded
429
Rate limit exceeded
Note: The purchase is taken from your balance. If delivery fails, the order is marked failed and the amount returns to your balance automatically — you don't have to do anything. If an order comes back as "pending", delivery is being prepared: do not buy the same product again, check the status with the order id.