# Mercado Livre & Amazon BR Coupon Code Checker (`pomlabs/mercadolivre-coupon-checker`) Actor

Check if Mercado Livre or Amazon Brazil coupon codes really work: valid, expired, invalid or not applicable, plus discount, minimum purchase, max discount, expiry date and eligible products (Mercado Livre). Checked live on a real account. $0.01 per code.

- **URL**: https://apify.com/pomlabs/mercadolivre-coupon-checker.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 code checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Mercado Livre & Amazon Brazil Coupon Code Checker (Cupom Validator)

Coupon sites list hundreds of Mercado Livre and Amazon Brazil codes, and many of them are dead, expired or just "click the link" bait. **This Actor checks each code live on a real account**, the same way you would type it in the store's coupon box ("Inserir código" on Mercado Livre, "Cupom de desconto" at the Amazon checkout), and tells you if it works.

**$0.01 per code checked.** No store account needed on your side. Pick the store with the `store` field.

### What you get for each code

| Field | Example |
|---|---|
| `status` | `valid`, `expired`, `invalid`, `exists_not_applicable` (Amazon: the code exists but does not apply to our test item, so it is real but restricted to some products). `error`, `rate_limited`, `validator_offline` and `invalid_input` are never charged |
| `valid` | `true` / `false` |
| `storeMessage` | The exact message Mercado Livre shows ("Pronto! Você já adicionou seu cupom.", "O cupom não está mais disponível.", "Confira se o cupom está correto") |
| `discount` | `30% OFF` |
| `discountPercent` / `discountAmountBRL` | `30` / `null` |
| `minimumPurchaseBRL`, `minimumPurchaseText` | `0`, "Sem compra mínima." |
| `maxDiscountBRL`, `maxDiscountText` | `500`, "Limite de R$ 500" |
| `startsAt`, `expiresAt` | `2026-11-10T03:00Z`, `2026-12-11T02:59:59Z` |
| `appliesTo` | "Em produtos selecionados" |
| `eligibleProductsUrl` | Link to the products the coupon applies to |
| `campaignId` | Mercado Livre campaign id |

Terms (discount, limits and dates) are returned for working Mercado Livre codes. For Amazon you get the status and the store message.

### Use cases

- **Coupon and deal sites, Telegram and WhatsApp deal groups:** post only codes that work today, and remove dead ones automatically.
- **Affiliates and influencers:** check the codes you share before a campaign.
- **Price and promotion monitoring:** track which campaigns are live, their caps and end dates.

### Input

```json
{
  "store": "mercadolivre",
  "codes": ["OFERTAJA30", "CUPOMDEHOJE25", "MELIGAMER", "NAOEXISTE123"]
}
```

For Amazon Brazil: `{"store": "amazon", "codes": ["BF30", "NAOEXISTE123"]}`.

### Output (example)

```json
{
  "code": "OFERTAJA30",
  "store": "mercadolivre",
  "status": "valid",
  "valid": true,
  "storeMessage": "Pronto! Você já adicionou seu cupom.",
  "discount": "30% OFF",
  "discountPercent": 30,
  "minimumPurchaseBRL": 0,
  "maxDiscountBRL": 500,
  "expiresAt": "2026-12-11T02:59:59Z",
  "eligibleProductsUrl": "https://lista.mercadolivre.com.br/_Container_aff-list-1?coupon_campaign_id=14695524",
  "checkedAt": "2026-11-23T15:40:00Z"
}
```

### Notes

- `valid` means the code is accepted by Mercado Livre right now. Some coupons are limited per customer or to selected products; the terms fields show those limits.
- Codes that don't look like a coupon code are listed as `invalid_input` and not charged. Store errors are not charged.
- **Speed and limits:** checks run at a human pace on a real account, about 5 to 15 seconds per code, and up to 40 codes per hour per store (250 per day). Larger lists wait in line inside the run.
- **Checker offline:** the checking account runs on our own machine. If it is offline, the run waits about 60 seconds and then returns `validator_offline` for each code, **not charged**. Just run again later.

### Pricing

| Event | Price |
|---|---|
| Code checked | $0.01 |

# Actor input Schema

## `store` (type: `string`):

Which store the codes belong to.

## `codes` (type: `array`):

Coupon codes to check, one per line. Case and spaces don't matter. Letters and digits only, 3 to 30 characters.

## `maxCodes` (type: `integer`):

Safety limit for one run. Checks run on a real account, so they go at a human pace (about 5 to 15 seconds per code; up to 40 codes per hour per store).

## Actor input object example

```json
{
  "store": "mercadolivre",
  "codes": [
    "MELIACHA30",
    "MELIGAMER",
    "NAOEXISTE123"
  ],
  "maxCodes": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "codes": [
        "MELIACHA30",
        "MELIGAMER",
        "NAOEXISTE123"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/mercadolivre-coupon-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "codes": [
        "MELIACHA30",
        "MELIGAMER",
        "NAOEXISTE123",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/mercadolivre-coupon-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "codes": [
    "MELIACHA30",
    "MELIGAMER",
    "NAOEXISTE123"
  ]
}' |
apify call pomlabs/mercadolivre-coupon-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/mercadolivre-coupon-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rOg8tYctORYOJxPe6/builds/oQL8sD2gIEqQTVu55/openapi.json
